]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: only try BTRFS_IOC_SUBVOL_CREATE on btrfs
authorSage Weil <sage@inktank.com>
Fri, 16 Nov 2012 00:50:39 +0000 (16:50 -0800)
committerSage Weil <sage@inktank.com>
Fri, 16 Nov 2012 00:50:55 +0000 (16:50 -0800)
commit71cfaf1cc5b1d77676aaf0be6daa15d4ab303386
tree96af945e37132a4406f923a6446c9d696be4400a
parent918c58c85ec5cfe6f6de7f0ac6d949c3dcd08cbe
os/FileStore: only try BTRFS_IOC_SUBVOL_CREATE on btrfs

Only try to create a btrfs subvolume if the fs is btrfs.  Otherwise, just
create a directory.  Then we can error out on *any* ioctl error, and not
rely on the ioctl error code to determine if we failed because we are on
a non-btrfs or a real error.

Fixes: #3052
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/os/FileStore.cc