summaryrefslogtreecommitdiff
path: root/btrfs-vol.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-13 13:48:58 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-05-13 13:48:58 -0400
commit351d17fca2cf8063f323a060cd3c4af62ef58d15 (patch)
treed91b63f25ae45260b9b89f7c70b6af7c34bede79 /btrfs-vol.c
parent9a9bdd6047a378dbe5a65a79cb8537f797d4fd5c (diff)
Verify parent generation number on btree reads
Diffstat (limited to 'btrfs-vol.c')
-rw-r--r--btrfs-vol.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/btrfs-vol.c b/btrfs-vol.c
index 9eddd782..80697783 100644
--- a/btrfs-vol.c
+++ b/btrfs-vol.c
@@ -105,7 +105,10 @@ int main(int ac, char **av)
print_usage();
mnt = av[optind];
- if (device) {
+ if (device && strcmp(device, "missing") == 0 &&
+ cmd == BTRFS_IOC_RM_DEV) {
+ fprintf(stderr, "removing missing devices from %s\n", mnt);
+ } else if (device) {
devfd = open(device, O_RDWR);
if (!devfd) {
fprintf(stderr, "Unable to open device %s\n", device);