Set the file system type to unknown initially. The proper type

will be determined on the call to sigar_fs_type_get(fsp).
This commit is contained in:
Ryan Morgan 2004-09-26 21:07:26 +00:00
parent a467383f27
commit 79f6f36447
1 changed files with 1 additions and 0 deletions

View File

@ -934,6 +934,7 @@ int sigar_file_system_list_get(sigar_t *sigar,
fsp = &fslist->data[fslist->number++];
fsp->type = SIGAR_FSTYPE_UNKNOWN; /* unknown, will be set later */
SIGAR_SSTRCPY(fsp->dir_name, ent.mnt_dir);
SIGAR_SSTRCPY(fsp->dev_name, ent.mnt_fsname);
SIGAR_SSTRCPY(fsp->sys_type_name, ent.mnt_type);