still don't know if the methods used on linux also works on
DARWIN/FreeBSD
Signed-off-by: Yan, Zheng <zyan@redhat.com>
}
virtual ~RemountTest() {}
virtual void *entry() {
+#if defined(__linux__)
int ver = get_linux_version();
assert(ver != 0);
bool can_invalidate_dentries = g_conf->client_try_dentry_invalidate &&
}
}
return reinterpret_cast<void*>(tr);
+#else
+ return reinterpret_cast<void*>(0);
+#endif
}
} tester;
ino_cb: client->cct->_conf->fuse_use_invalidate_cb ? ino_invalidate_cb : NULL,
dentry_cb: dentry_invalidate_cb,
switch_intr_cb: switch_interrupt_cb,
+#if defined(__linux__)
remount_cb: remount_cb,
+#endif
/*
* this is broken:
*