From c874a76a8bf4f3b31e480a9184983cd5e85aeb4c Mon Sep 17 00:00:00 2001 From: Lin Ma Date: Fri, 28 May 2010 16:57:10 +0800 Subject: [PATCH] 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 file changed, 8 insertions(+) diff --git a/gio/fen/fen-kernel.c b/gio/fen/fen-kernel.c index 64ec910db..8b9c58b0d 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)); }