After talk with FEN dev, we dicide simply disable monitor function if
authorLin Ma <lin.ma@sun.com>
Fri, 28 May 2010 08:57:10 +0000 (16:57 +0800)
committerLin Ma <lin.ma@sun.com>
Fri, 28 May 2010 08:58:56 +0000 (16:58 +0800)
the current filesystem doesn't suport FEN.

gio/fen/fen-kernel.c

index 64ec910..8b9c58b 100644 (file)
@@ -357,6 +357,14 @@ start_over:
 
     } else if (errno == ENOENT) {
         /* File is not exist */
+    } else if (errno == ENOTSUP) {
+        /* FS is not supported. Currently we think it no longer make sense to
+         * monitor it, so clean the stat info and return 0 to ignore this
+         * node. If there are requirement, we can consider to add polling
+         * method.
+         */
+        NODE_CLE_FLAG(f, NODE_FLAG_STAT_UPDATED);
+        return 0;
     } else {
         FK_W ("PORT_ASSOCIATE 0x%p %s\n", f, g_strerror (errno));
     }