make sure we dont do NfsFileSystem on win32

This commit is contained in:
Doug MacEachern 2005-03-15 21:40:36 +00:00
parent 4324529c7e
commit 9abeb7ef2b
1 changed files with 4 additions and 0 deletions

View File

@ -306,6 +306,9 @@ JNIEXPORT jobjectArray SIGAR_JNI(Sigar_getFileSystemList)
jobject fsobj;
jclass obj_cls;
#ifdef WIN32
obj_cls = cls;
#else
if ((fs->type == SIGAR_FSTYPE_NETWORK) &&
(strcmp(fs->sys_type_name, "nfs") == 0) &&
strstr(fs->dev_name, ":/"))
@ -318,6 +321,7 @@ JNIEXPORT jobjectArray SIGAR_JNI(Sigar_getFileSystemList)
else {
obj_cls = cls;
}
#endif
fsobj = JENV->AllocObject(env, obj_cls);