extra nfs sanity check
This commit is contained in:
parent
99edef1178
commit
208e0c449e
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue