From mboxrd@z Thu Jan 1 00:00:00 1970 From: Goffredo Baroncelli Subject: [RFC][BTRFS-PROG] Avoid to scan cdrom and floppy Date: Wed, 15 Jun 2011 22:28:58 +0200 Message-ID: <4DF9160A.4020102@libero.it> Reply-To: kreijack@inwind.it Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Hugo Mills To: linux-btrfs@vger.kernel.org Return-path: List-ID: Hi all, thanks to the last Hugo's email, I restart to work on the patch which avoid to scan cdrom and floppy during a "btrfs filesystem show" and a "btrfs device scan". Comparing to my previous patch I modified the strategy, and now the scan of the devices is based on the content of the file /proc/partitions. The old behavior may be set passing the "--all-devices" options. I resend as RFC, because this change may be incompatible with the old behavior. Frankly speaking I don't see any problem, but I think that it is better to discuss in the mailing list. You can pull the patch also from http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git branch scan-proc-partitions Comment are welcome The diff is computed against the Hugo's repository btrfs.c | 4 +- btrfs_cmds.c | 47 ++++++++++++++++++++++++++++++++++++++++---- man/btrfs.8.in | 26 +++++++++++++++--------- utils.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ utils.h | 2 + 5 files changed, 120 insertions(+), 17 deletions(-) diff --git a/btrfs.c b/btrfs.c index 87cc680..c6ae692 100644 --- a/btrfs.c +++ b/btrfs.c @@ -104,7 +104,7 @@ static struct Command commands[] = { NULL }, { do_show_filesystem, 999, - "filesystem show", "[||