btrfs-progs: allow device deletion using 'missing' keyword again
PATCH 1/1 btrfs-progs: allow device deletion using 'missing' keyword again
Device deletion procedures ensures the device is a block device. This patch introduces 'missing' as keyword again, correctly passing it on to the kernel instead of complaining about 'missing' not being a block device.
Signed-off-by Alexander Fougner <[email protected]>
--- cmds-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmds-device.c +1 -1
@@ -161,7 +161,7 @@ static int _cmd_device_remove(int argc, char **argv,struct btrfs_ioctl_vol_args arg;int res; -if (is_block_device (argv[i]) !=1 ) { +if (is_block_device (argv[i]) !=1 &&strcmp (argv[i],"missing" )) {fprintf (stderr,"ERROR: %s is not a block device\n" , argv[i]); ret++;
Signature · 1 line
2.6.2
David Sterba
AppliedQuoted 6 lines · Alexander Fougner
Device deletion procedures ensures the device is a block device. This patch introduces 'missing' as keyword again, correctly passing it on to the kernel instead of complaining about 'missing' not being a block device.
Signed-off-by Alexander Fougner <[email protected]>
Applied, thanks. Scheduled for 4.3.1.