mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
filestore: do not autodetect BTRFS_IOC_SNAP_CREATE_ASYNC until interface is finalized
Li has proposed an alternative V2 ioctl that looks nicer, so wait until that is finalized. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
15c272e8df
commit
bde0c72193
@ -800,6 +800,10 @@ int FileStore::_detect_fs()
|
||||
dout(0) << "mount failed to remove old async_snap_test: " << strerror_r(-r, buf, sizeof(buf)) << dendl;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
do not autodetect this yet until the btrfs ioctl interface is finalized!
|
||||
|
||||
r = ::ioctl(fd, BTRFS_IOC_SNAP_CREATE_ASYNC, &async_args);
|
||||
dout(0) << "mount btrfs SNAP_CREATE_ASYNC got " << r << " " << strerror_r(-r, buf, sizeof(buf)) << dendl;
|
||||
if (r == 0 || errno == EEXIST) {
|
||||
@ -815,6 +819,7 @@ int FileStore::_detect_fs()
|
||||
dout(0) << "mount btrfs SNAP_CREATE_ASYNC is NOT supported: "
|
||||
<< strerror_r(-r, buf, sizeof(buf)) << dendl;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
if (g_conf.filestore_btrfs_snap && !btrfs_snap_create_async) {
|
||||
|
Loading…
Reference in New Issue
Block a user