summaryrefslogtreecommitdiff
path: root/btrfs-vol.c
diff options
context:
space:
mode:
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);