Lines 1-16
Link Here
|
1 |
--- unionfs.c.orig Sun Jul 16 19:02:07 2006 |
1 |
--- unionfs.c.orig Mon Aug 7 07:20:13 2006 |
2 |
+++ unionfs.c Sun Jul 16 19:05:45 2006 |
2 |
+++ unionfs.c Tue Aug 8 13:53:17 2006 |
3 |
@@ -189,9 +189,13 @@ |
3 |
@@ -188,12 +188,7 @@ |
|
|
4 |
|
4 |
if (stats_enabled && strcmp(path, STATS_FILENAME) == 0) return 0; |
5 |
if (stats_enabled && strcmp(path, STATS_FILENAME) == 0) return 0; |
5 |
|
6 |
|
6 |
int res; |
7 |
- int res; |
7 |
+#if FUSE_USE_VERSION >= 26 |
8 |
- if (isdatasync) { |
8 |
if (isdatasync) { |
9 |
- res = fdatasync(fi->fh); |
9 |
res = fdatasync(fi->fh); |
10 |
- } else { |
10 |
} else { |
11 |
- res = fsync(fi->fh); |
11 |
+#else |
12 |
- } |
12 |
+ { |
13 |
+ int res = fsync(fi->fh); |
13 |
+#endif |
14 |
|
14 |
res = fsync(fi->fh); |
15 |
if (res == -1) return -errno; |
|
|
16 |
|
17 |
@@ -928,5 +923,5 @@ |
15 |
} |
18 |
} |
16 |
|
19 |
|
|
|
20 |
umask(0); |
21 |
- return fuse_main(args.argc, args.argv, &unionfs_oper, NULL); |
22 |
+ return fuse_main(args.argc, args.argv, &unionfs_oper); |
23 |
} |