extra nfs sanity check

This commit is contained in:
Doug MacEachern 2005-02-21 04:05:23 +00:00
parent 99edef1178
commit 208e0c449e
1 changed files with 2 additions and 1 deletions

View File

@ -307,7 +307,8 @@ JNIEXPORT jobjectArray SIGAR_JNI(Sigar_getFileSystemList)
jclass obj_cls; jclass obj_cls;
if ((fs->type == SIGAR_FSTYPE_NETWORK) && if ((fs->type == SIGAR_FSTYPE_NETWORK) &&
(strcmp(fs->sys_type_name, "nfs") == 0)) (strcmp(fs->sys_type_name, "nfs") == 0) &&
strstr(fs->dev_name, ":/"))
{ {
if (!nfs_cls) { if (!nfs_cls) {
nfs_cls = SIGAR_FIND_CLASS("NfsFileSystem"); nfs_cls = SIGAR_FIND_CLASS("NfsFileSystem");