search for: device_checklist

Displaying 1 result from an estimated 1 matches for "device_checklist".

2010 Dec 05
1
[PATCH 4/5][REPOST][BTRFS-PROGS] Avoid to scan cdrom and floppy
...<ctype.h> +#include <fnmatch.h> #include "kerncompat.h" #include "radix-tree.h" #include "ctree.h" @@ -833,7 +835,185 @@ void btrfs_register_one_device(char *fname) close(fd); } -int btrfs_scan_one_dir(char *dirname, int run_ioctl) + +static char **device_checklist = 0; +static int device_checklist_count = 0; +/* + * Default device black list: + * If the line starts with a "!" the device has to be skipped + * otherwise the device is OK + */ +static char *default_checklist[] = { + "!/dev/fd*", + "!/dev/sr*", + 0 +}; +/* add an en...