lkml.org 
[lkml]   [2003]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectmd/raid devices don't show up in /proc/partitions in 2.6 :-(

I just noticed that md devices do not show up in /proc/partitions in
2.6.

I realise that they don't actually have partitions and are just 'whole
devices', but other whole devices do appear in /proc/partitions (Along
with their partitions if any).

This seems to be a regression from 2.4 where md devices do appear in
/proc/partitions.

The cause appears to be a patch from 'torvalds' some 15 months ago
(in version 1.36 for drivers/block/genhd.c) which has the comment:

Avoid confusion "mount" and "fsck" - don't show things like
floppies and CD's in /proc/partitions.

It excluded devices that cannot be partitioned, and devices with zero
size from /proc/partitions.

The 'zero size' possibly makes sense (2.4 excludes those), but I would
like to register a vote against excluding devices without partitions,
as this excluded 'md' devices and I would really like them to be
included.


Is there really a good reason for this? How badly does mount get
confused? and is that not the fault of mount?

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.027 / U:5.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site