summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorGoffredo Baroncelli <kreijack@inwind.it>2011-06-15 21:55:25 +0200
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:19:00 -0400
commit0dbd99fb3e117cd5f87eda492b6b4fab1b5bea23 (patch)
tree2eac9041b342d4f120e7578db697b368e20fc5b2 /utils.h
parent521770b7a9bef17dcbcee514da5052b3e06120d2 (diff)
Scan the devices listed in /proc/partitions
During the commands: - btrfs filesystem show - btrfs device scan the devices "scanned" are extracted from /proc/partitions. This should avoid to scan devices not suitable for a btrfs filesystem like cdrom and floppy or to scan not existant devices. The old behavior (scan all the block devices under /dev) may be forced passing the "--all-devices" switch.
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 02b3fe90..c5f55e15 100644
--- a/utils.h
+++ b/utils.h
@@ -44,4 +44,6 @@ int btrfs_device_already_in_root(struct btrfs_root *root, int fd,
char *pretty_sizes(u64 size);
int check_label(char *input);
int get_mountpt(char *dev, char *mntpt, size_t size);
+
+int btrfs_scan_block_devices(int run_ioctl);
#endif