diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-18 04:55:44 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-18 04:55:44 -0800 |
| commit | 0c39a2fa0c7cf6b60c6b78ab7c4934ef1ca3318d (patch) | |
| tree | caf3baf1f1db891c48fc4181bacc1480cfcf5858 /include/linux | |
| parent | 0b9ce3ae5d378c02e6d3fb53fa6c6a51c38ac8ba (diff) | |
[PATCH] fix display of NBD in /proc/partitions
The recent change to /proc/partitions which prevents it from displaying
removeable media accidentally caused 128 NBD and 16 ramdisk partitions to
appear in /proc/partitions instead.
So add a specific gendisk flag which says "don't show me in /proc/partitions"
and use that.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/genhd.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 14e79799fbd5..91443522b9d8 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -64,10 +64,11 @@ struct hd_struct { int policy, partno; }; -#define GENHD_FL_REMOVABLE 1 -#define GENHD_FL_DRIVERFS 2 -#define GENHD_FL_CD 8 -#define GENHD_FL_UP 16 +#define GENHD_FL_REMOVABLE 1 +#define GENHD_FL_DRIVERFS 2 +#define GENHD_FL_CD 8 +#define GENHD_FL_UP 16 +#define GENHD_FL_SUPPRESS_PARTITION_INFO 32 struct disk_stats { unsigned read_sectors, write_sectors; |
