do_init(): print missing capabilities if there are any.
authorNikolaus Rath <Nikolaus@rath.org>
Fri, 25 Aug 2017 08:38:43 +0000 (10:38 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 25 Aug 2017 08:38:43 +0000 (10:38 +0200)
lib/fuse_lowlevel.c

index 3d78d9ec7ec033281bdea451c8d76cd8464d0ea1..031793ada395b9f1400984e54170ae26fee8f25d 100644 (file)
@@ -1937,7 +1937,8 @@ static void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
 
        if (se->conn.want & (~se->conn.capable)) {
                fprintf(stderr, "fuse: error: filesystem requested capabilites "
-                       "that are not supported by kernel, aborting.\n");
+                       "0x%x that are not supported by kernel, aborting.\n",
+                       se->conn.want & (~se->conn.capable));
                fuse_reply_err(req, EPROTO);
                se->error = -EPROTO;
                fuse_session_exit(se);