After talk with FEN dev, we dicide simply disable monitor function if

the current filesystem doesn't suport FEN.
This commit is contained in:
Lin Ma 2010-05-28 16:57:10 +08:00
parent 8e41be13ef
commit c874a76a8b

View 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));
}