check slash in deleting subvolumes
commit48f16a69d76b2a9c946e2f3648b9f896ce8de3e7
authorTARUISI Hiroaki <taruishi.hiroak@jp.fujitsu.com>
Thu, 9 Sep 2010 03:19:25 +0000 (9 11:19 +0800)
committerChris Mason <chris.mason@oracle.com>
Fri, 24 Sep 2010 00:26:49 +0000 (23 20:26 -0400)
treed2125cb7f1544a6ecf126fb37f88c3c3b39ec33c
parent34915ad27b7db0336560350fa89e340cdb4b8663
check slash in deleting subvolumes

For now, btrfsctl does not check whether subvolume name contains slash
or not. If someone specify subvolume with trailing slash (in case
using shell completion), ioctl returns with EINVAL and this error
may confuse some careless users like me. So, this patch adds check
slashes in subvolume name in deletion same as snapshot/subvolume
creating. But considering shell completion, this fix allows trailing
slash.

Signed-off-by: TARUISI Hiroaki <taruishi.hiroak@jp.fujitsu.com>
btrfsctl.c