Hello community,

here is the log from the commit of package sshfs for openSUSE:Factory checked 
in at 2016-10-19 13:14:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sshfs (Old)
 and      /work/SRC/openSUSE:Factory/.sshfs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sshfs"

Changes:
--------
--- /work/SRC/openSUSE:Factory/sshfs/sshfs.changes      2016-03-21 
12:45:11.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.sshfs.new/sshfs.changes 2016-10-19 
13:15:01.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Oct 18 11:18:29 UTC 2016 - [email protected]
+
+- update to 2.8
+- Added support for the "fsync" extension
+
+-------------------------------------------------------------------

Old:
----
  sshfs-2.7.tar.gz

New:
----
  sshfs-2.8.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sshfs.spec ++++++
--- /var/tmp/diff_new_pack.2TwkWz/_old  2016-10-19 13:15:02.000000000 +0200
+++ /var/tmp/diff_new_pack.2TwkWz/_new  2016-10-19 13:15:02.000000000 +0200
@@ -17,13 +17,13 @@
 
 
 Name:           sshfs
-Version:        2.7
+Version:        2.8
 Release:        0
 Summary:        Filesystem client based on SSH file transfer protocol
 License:        GPL-2.0+
 Group:          System/Filesystems
 Url:            http://fuse.sourceforge.net/sshfs.html
-Source:         
https://github.com/libfuse/sshfs/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
+Source:         
https://github.com/libfuse/sshfs/releases/download/%{name}_%{version}/%{name}-%{version}.tar.gz
 BuildRequires:  automake
 BuildRequires:  fuse-devel
 BuildRequires:  glib2-devel

++++++ sshfs-2.7.tar.gz -> sshfs-2.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sshfs-2.7/AUTHORS new/sshfs-2.8/AUTHORS
--- old/sshfs-2.7/AUTHORS       2016-03-01 17:46:23.000000000 +0100
+++ new/sshfs-2.8/AUTHORS       2016-06-22 20:36:52.000000000 +0200
@@ -27,3 +27,4 @@
 Nikolaus Rath <[email protected]>
 Percy Jahn <[email protected]>
 Qais Patankar <[email protected]>
+Rian Hunter <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sshfs-2.7/ChangeLog new/sshfs-2.8/ChangeLog
--- old/sshfs-2.7/ChangeLog     2016-03-01 17:48:17.000000000 +0100
+++ new/sshfs-2.8/ChangeLog     2016-06-22 20:38:01.000000000 +0200
@@ -1,4 +1,10 @@
-Release 2.6 (2015-03-01)
+Release 2.7 (2016-06-22)
+------------------------
+
+* Added support for the "fsync" extension.
+* Fixed a build problem with bitbake   
+
+Release 2.6 (2016-03-01)
 ------------------------
 
 * Integrated osxfuse's copy of sshfs, which means that sshfs now works
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sshfs-2.7/cache.c new/sshfs-2.8/cache.c
--- old/sshfs-2.7/cache.c       2016-03-01 17:42:57.000000000 +0100
+++ new/sshfs-2.8/cache.c       2016-06-08 17:42:11.000000000 +0200
@@ -523,6 +523,10 @@
        cache_oper->ftruncate   = oper->oper.ftruncate;
        cache_oper->fgetattr    = oper->oper.fgetattr;
 #endif
+#if FUSE_VERSION >= 29
+       cache_oper->flag_nullpath_ok = oper->oper.flag_nullpath_ok;
+       cache_oper->flag_nopath  = oper->oper.flag_nopath;
+#endif
 }
 
 static void cache_fill(struct fuse_cache_operations *oper,
@@ -548,6 +552,10 @@
        cache_oper->ftruncate = oper->oper.ftruncate ? cache_ftruncate : NULL;
        cache_oper->fgetattr = oper->oper.fgetattr ? cache_fgetattr : NULL;
 #endif
+#if FUSE_VERSION >= 29
+       cache_oper->flag_nullpath_ok = 0;
+       cache_oper->flag_nopath = 0;
+#endif
 
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sshfs-2.7/configure new/sshfs-2.8/configure
--- old/sshfs-2.7/configure     2016-03-01 17:48:27.000000000 +0100
+++ new/sshfs-2.8/configure     2016-06-22 20:38:27.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for sshfs 2.7.
+# Generated by GNU Autoconf 2.69 for sshfs 2.8.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -576,8 +576,8 @@
 # Identity of this package.
 PACKAGE_NAME='sshfs'
 PACKAGE_TARNAME='sshfs'
-PACKAGE_VERSION='2.7'
-PACKAGE_STRING='sshfs 2.7'
+PACKAGE_VERSION='2.8'
+PACKAGE_STRING='sshfs 2.8'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1253,7 +1253,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures sshfs 2.7 to adapt to many kinds of systems.
+\`configure' configures sshfs 2.8 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1324,7 +1324,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of sshfs 2.7:";;
+     short | recursive ) echo "Configuration of sshfs 2.8:";;
    esac
   cat <<\_ACEOF
 
@@ -1423,7 +1423,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-sshfs configure 2.7
+sshfs configure 2.8
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1591,7 +1591,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by sshfs $as_me 2.7, which was
+It was created by sshfs $as_me 2.8, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2564,7 +2564,7 @@
 
 # Define the identity of the package.
  PACKAGE='sshfs'
- VERSION='2.7'
+ VERSION='2.8'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -4642,7 +4642,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by sshfs $as_me 2.7, which was
+This file was extended by sshfs $as_me 2.8, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -4708,7 +4708,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-sshfs config.status 2.7
+sshfs config.status 2.8
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sshfs-2.7/configure.ac new/sshfs-2.8/configure.ac
--- old/sshfs-2.7/configure.ac  2016-03-01 17:48:03.000000000 +0100
+++ new/sshfs-2.8/configure.ac  2016-06-22 20:38:21.000000000 +0200
@@ -1,4 +1,4 @@
-AC_INIT(sshfs, 2.7)
+AC_INIT(sshfs, 2.8)
 AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE([foreign subdir-objects])
 AM_CONFIG_HEADER(config.h)
@@ -44,7 +44,7 @@
 AM_CONDITIONAL(SSH_NODELAY_SO, test "$enable_sshnodelay" = "yes")
 
 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
-PKG_CHECK_MODULES(SSHFS, [fuse >= 2.3 glib-2.0 gthread-2.0])
+PKG_CHECK_MODULES([SSHFS], [fuse >= 2.3 glib-2.0 gthread-2.0])
 have_fuse_opt_parse=no
 oldlibs="$LIBS"
 LIBS="$LIBS $SSHFS_LIBS"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sshfs-2.7/sshfs.c new/sshfs-2.8/sshfs.c
--- old/sshfs-2.7/sshfs.c       2016-03-01 17:42:57.000000000 +0100
+++ new/sshfs-2.8/sshfs.c       2016-06-08 17:42:12.000000000 +0200
@@ -118,6 +118,7 @@
 #define SFTP_EXT_POSIX_RENAME "[email protected]"
 #define SFTP_EXT_STATVFS "[email protected]"
 #define SFTP_EXT_HARDLINK "[email protected]"
+#define SFTP_EXT_FSYNC "[email protected]"
 
 #define PROTO_VERSION 3
 
@@ -273,6 +274,7 @@
        int ext_posix_rename;
        int ext_statvfs;
        int ext_hardlink;
+       int ext_fsync;
        mode_t mnt_mode;
        struct fuse_operations *op;
 
@@ -1548,6 +1550,9 @@
                        if (strcmp(ext, SFTP_EXT_HARDLINK) == 0 &&
                            strcmp(extdata, "1") == 0)
                                sshfs.ext_hardlink = 1;
+                       if (strcmp(ext, SFTP_EXT_FSYNC) == 0 &&
+                           strcmp(extdata, "1") == 0)
+                               sshfs.ext_fsync = 1;
                } while (buf2.len < buf2.size);
                buf_free(&buf2);
        }
@@ -2632,8 +2637,25 @@
 static int sshfs_fsync(const char *path, int isdatasync,
                        struct fuse_file_info *fi)
 {
+       int err;
        (void) isdatasync;
-       return sshfs_flush(path, fi);
+
+       if (err = sshfs_flush(path, fi))
+               return err;
+
+       if (!sshfs.ext_fsync)
+               return err;
+
+       {
+               struct buffer buf;
+               struct sshfs_file *sf = get_sshfs_file(fi);
+               buf_init(&buf, 0);
+               buf_add_string(&buf, SFTP_EXT_FSYNC);
+               buf_add_buf(&buf, &sf->handle);
+               err = sftp_request(SSH_FXP_EXTENDED, &buf, SSH_FXP_STATUS, 
NULL);
+               buf_free(&buf);
+               return err;
+       }
 }
 
 static void sshfs_file_put(struct sshfs_file *sf)
@@ -3351,6 +3373,10 @@
                .ftruncate  = sshfs_ftruncate,
                .fgetattr   = sshfs_fgetattr,
 #endif
+#if FUSE_VERSION >= 29
+               .flag_nullpath_ok = 1,
+               .flag_nopath = 1,
+#endif
        },
        .cache_getdir = sshfs_getdir,
 };


Reply via email to