[glib] After talk with FEN dev, we dicide simply disable monitor function if the current filesystem doesn't



commit c874a76a8bf4f3b31e480a9184983cd5e85aeb4c
Author: Lin Ma <lin ma sun com>
Date:   Fri May 28 16:57:10 2010 +0800

    After talk with FEN dev, we dicide simply disable monitor function if
    the current filesystem doesn't suport FEN.

 gio/fen/fen-kernel.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gio/fen/fen-kernel.c b/gio/fen/fen-kernel.c
index 64ec910..8b9c58b 100644
--- a/gio/fen/fen-kernel.c
+++ b/gio/fen/fen-kernel.c
@@ -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));
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]