Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-26 Thread Anand Jain
On 21/08/2014 22:29, Eric Sandeen wrote: On 8/21/14, 3:44 AM, Anand Jain wrote: A long time back there was an attempt to remove it but this avoided it. Pls ref to the link in this discussion. https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg27272.html Hm, I guess I don't

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-26 Thread Anand Jain
Apparently we don't need -d option at all. The libblkid does cover both udev and /proc/partitions. EVALUATE=methods Defines LABEL and UUID evaluation method(s). Currently, the libblkid library supports udev and scan methods. More than one methods may be specified in a comma

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-26 Thread David Sterba
On Thu, Aug 21, 2014 at 08:08:57PM +0200, Goffredo Baroncelli wrote: Of course I (we) don't care cdrom and/or floppy, but this raises the question: are there other block devices which aren't showed in proc/partitions ? cdrom appears as /dev/sr0, floppy is /dev/fd0 if the respective modules

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-26 Thread David Sterba
On Thu, Aug 21, 2014 at 09:29:56AM -0500, Eric Sandeen wrote: On 8/21/14, 3:44 AM, Anand Jain wrote: A long time back there was an attempt to remove it but this avoided it. Pls ref to the link in this discussion.

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-26 Thread Eric Sandeen
On 8/26/14, 5:55 AM, David Sterba wrote: On Thu, Aug 21, 2014 at 08:08:57PM +0200, Goffredo Baroncelli wrote: Of course I (we) don't care cdrom and/or floppy, but this raises the question: are there other block devices which aren't showed in proc/partitions ? cdrom appears as /dev/sr0,

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-26 Thread Chris Mason
On 08/26/2014 10:51 AM, Eric Sandeen wrote: On 8/26/14, 5:55 AM, David Sterba wrote: On Thu, Aug 21, 2014 at 08:08:57PM +0200, Goffredo Baroncelli wrote: Of course I (we) don't care cdrom and/or floppy, but this raises the question: are there other block devices which aren't showed in

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-26 Thread Anand Jain
On 26/08/2014 22:53, Chris Mason wrote: On 08/26/2014 10:51 AM, Eric Sandeen wrote: On 8/26/14, 5:55 AM, David Sterba wrote: On Thu, Aug 21, 2014 at 08:08:57PM +0200, Goffredo Baroncelli wrote: Of course I (we) don't care cdrom and/or floppy, but this raises the question: are there other

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-21 Thread Anand Jain
A long time back there was an attempt to remove it but this avoided it. Pls ref to the link in this discussion. https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg27272.html Thanks, Anand On 08/21/2014 06:21 AM, Eric Sandeen wrote: btrfs fileystem show and btrfs device scan

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-21 Thread Eric Sandeen
On 8/21/14, 3:44 AM, Anand Jain wrote: A long time back there was an attempt to remove it but this avoided it. Pls ref to the link in this discussion. https://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg27272.html Hm, I guess I don't understand this. How is udev related to

Re: [PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-21 Thread Goffredo Baroncelli
On 08/21/2014 12:21 AM, Eric Sandeen wrote: btrfs fileystem show and btrfs device scan today both have the -d option to scan everything under /dev. But we also have a mechanism to scan everything in /proc/partitions, which should always be sufficient. If anyone knows why we'd find

[PATCH 0/3] btrfs-progs: remove full /dev scanning

2014-08-20 Thread Eric Sandeen
btrfs fileystem show and btrfs device scan today both have the -d option to scan everything under /dev. But we also have a mechanism to scan everything in /proc/partitions, which should always be sufficient. If anyone knows why we'd find something deep under /dev but not in /proc/partitions,