search for: btrfs_scan_one_dir_checklist

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

2010 Dec 05
1
[PATCH 4/5][REPOST][BTRFS-PROGS] Avoid to scan cdrom and floppy
...inue; + } + ret = btrfs_scan_one_device(fd, fullpath, &tmp_devices, + &num_devices, + BTRFS_SUPER_INFO_OFFSET); + if (ret == 0 && run_ioctl > 0) { + btrfs_register_one_device(fullpath); + } + close(fd); + } + + fclose(proc_partitions); + return 0; +} + +int btrfs_scan_one_dir_checklist(char *dirname, int run_ioctl, int checklist) { DIR *dirp = NULL; struct dirent *dirent; @@ -848,6 +1028,9 @@ int btrfs_scan_one_dir(char *dirname, int run_ioctl) struct btrfs_fs_devices *tmp_devices; u64 num_devices; + if(checklist) + init_device_checklist(BTRFSDEVICELIST); + INIT_LIS...