Thread (19 messages) 19 messages, 4 authors, 2021-07-28

Re: [RFC 1/6] genhd: update docs for GENHD_FL_UP

From: Christoph Hellwig <hch@infradead.org>
Date: 2021-07-19 09:55:45
Also in: lkml

On Thu, Jul 15, 2021 at 01:23:36PM -0700, Luis Chamberlain wrote:
The GENHD_FL_UP is used internally so we can know when we can add and
remove partitions, so just clarify that. Right now it has this 1980's
description comparing it to network drivers "ifconfig up" idea, and
that can easily lead to invalid uses.
GENHD_FL_UP actually is pretty horrible - it uses a value used for
something that should be mostly read only at device runtime for
state an does so badly.  I actually have a patch to kill it, as we can
just check if the inode for the whole device blockdev is hashed instead.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help