diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-02-04 04:27:19 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-02-04 04:27:19 +0000 |
commit | 0c64b9c04ed93cfd7623f8492aafaec5e223ae87 (patch) | |
tree | eaeeeb51e6a3a61a31c95b5c668914e9f83664ee /sysutils/fusefs-mhddfs/files | |
parent | 031bdf702b2399ffe645d37258de6474a8be152b (diff) | |
download | ports-0c64b9c04ed93cfd7623f8492aafaec5e223ae87.tar.gz ports-0c64b9c04ed93cfd7623f8492aafaec5e223ae87.zip |
Notes
Diffstat (limited to 'sysutils/fusefs-mhddfs/files')
-rw-r--r-- | sysutils/fusefs-mhddfs/files/patch-src-main.c | 11 | ||||
-rw-r--r-- | sysutils/fusefs-mhddfs/files/patch-src-tools.c | 57 |
2 files changed, 57 insertions, 11 deletions
diff --git a/sysutils/fusefs-mhddfs/files/patch-src-main.c b/sysutils/fusefs-mhddfs/files/patch-src-main.c deleted file mode 100644 index e08626f567fc..000000000000 --- a/sysutils/fusefs-mhddfs/files/patch-src-main.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/main.c.orig 2009-06-25 05:11:08.000000000 +0400 -+++ src/main.c 2009-06-25 05:23:57.000000000 +0400 -@@ -755,7 +755,7 @@ - return -errno; - } - --#if _POSIX_SYNCHRONIZED_IO + 0 > 0 -+#if _POSIX_SYNCHRONIZED_IO + 0 > 0 || defined(__FreeBSD__) - #undef HAVE_FDATASYNC - #else - #define HAVE_FDATASYNC 1 diff --git a/sysutils/fusefs-mhddfs/files/patch-src-tools.c b/sysutils/fusefs-mhddfs/files/patch-src-tools.c new file mode 100644 index 000000000000..86f4a184205f --- /dev/null +++ b/sysutils/fusefs-mhddfs/files/patch-src-tools.c @@ -0,0 +1,57 @@ +--- src/tools.c.orig 2010-01-11 15:48:46.000000000 +0300 ++++ src/tools.c 2010-01-11 15:53:42.000000000 +0300 +@@ -30,7 +30,10 @@ + #include <fcntl.h> + #include <sys/types.h> + #include <dirent.h> ++ ++#ifndef WITHOUT_XATTR + #include <attr/xattr.h> ++#endif + + #include "tools.h" + #include "debug.h" +@@ -262,11 +265,13 @@ + ftime.modtime = st.st_mtime; + utime(to, &ftime); + ++#ifndef WITHOUT_XATTR + // extended attributes + if (copy_xattrs(from, to) == -1) + mhdd_debug(MHDD_MSG, + "copy_xattrs: error copying xattrs from %s to %s\n", + from, to); ++#endif + + + from = strdup(from); +@@ -282,6 +287,7 @@ + return ret; + } + ++#ifndef WITHOUT_XATTR + int copy_xattrs(const char *from, const char *to) + { + int listsize=0, attrvalsize=0; +@@ -350,6 +356,7 @@ + free(listbuf); + return 0; + } ++#endif + + char * create_path(const char *dir, const char * file) + { +@@ -465,11 +472,13 @@ + strerror(errno)); + } + ++#ifndef WITHOUT_XATTR + // copy extended attributes of parent dir + if (copy_xattrs(exists, path_parent) == -1) + mhdd_debug(MHDD_MSG, + "copy_xattrs: error copying xattrs from %s to %s\n", + exists, path_parent); ++#endif + + free(exists); + free(path_parent); |