Alexander Pyhalov wrote:
On 08/26/16 09:52 AM, Jean-Pierre André wrote:

What is the need ? AKAIK gvfs is related to Gnome and
is not supported on Linux any more.

I see the following fuse-related errors, trying to compile gvfs with
fuse support


error: 'struct fuse_conn_info' has no member named 'want'

This field exists in fuse 2.7, it is declared in the fuse-lite
library used by ntfs-3g.

error: 'FUSE_CAP_ATOMIC_O_TRUNC' undeclared

This is one of the bits going into the field "want". Is is
about the file system telling it supports the O_TRUNC as an
argument of open()... which current fuse expects anyway.

Both can be easily added to fuse_common.h, but this will
not make libfuse to 2.8.

Patch proposal attached.

By the way, I sent several patches to libfuse to Adam
last may. Did you take them into account ?

Jean-Pierre


As I see, gvfs is still supported:
http://ftp.gnome.org/pub/GNOME/sources/gvfs/




--- fuse_common.h.old	2010-06-15 16:46:54.000000000 +0200
+++ fuse_common.h.new	2016-08-26 10:11:15.146085700 +0200
@@ -110,11 +110,23 @@
     unsigned max_readahead;
 
     /**
+     * Capability flags, that the filesystem wants to enable
+     */
+    unsigned int want;
+    /**
      * For future use.
      */
-    unsigned reserved[27];
+    unsigned reserved[26];
 };
 
+/**
+ * Capability bits for 'fuse_conn_info.capable' and 'fuse_conn_info.want'
+ *
+ * FUSE_CAP_ATOMIC_O_TRUNC: filesystem handles the O_TRUNC open flag
+ */
+#define FUSE_CAP_ATOMIC_O_TRUNC	(1 << 3)
+
+
 struct fuse_session;
 struct fuse_chan;
 
_______________________________________________
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev

Reply via email to