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:
Sage Weil 2010-12-01 10:03:19 -08:00
parent 15c272e8df
commit bde0c72193

View File

@ -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) {