} else {
dout(0) << "mount syncfs(2) syscall supported by glibc BUT NOT the kernel" << dendl;
}
-#else
+#endif
#ifdef SYS_syncfs
if (syscall(SYS_syncfs, fd) == 0) {
dout(0) << "mount syscall(SYS_syncfs, fd) fully supported" << dendl;
} else {
dout(0) << "mount syscall(SYS_syncfs, fd) supported by libc BUT NOT the kernel" << dendl;
}
-#else
- dout(0) << "mount syncfs(2) syscall not support by glibc" << dendl;
#endif
+#ifdef __NR_syncfs
+ if (syscall(__NR_syncfs, fd) == 0) {
+ dout(0) << "mount syscall(__NR_syncfs, fd) fully supported" << dendl;
+ have_syncfs = true;
+ } else {
+ dout(0) << "mount syscall(__NR_syncfs, fd) supported by libc BUT NOT the kernel" << dendl;
+ }
#endif
if (!have_syncfs) {
+ dout(0) << "mount syncfs(2) syscall not supported" << dendl;
if (btrfs) {
dout(0) << "mount no syncfs(2), but the btrfs SYNC ioctl will suffice" << dendl;
} else if (m_filestore_fsync_flushes_journal_data) {