Changeset 97685 in vbox
- Timestamp:
- Nov 25, 2022 5:58:01 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/fs-posix.cpp
r96407 r97685 295 295 296 296 #elif defined(RT_OS_SOLARIS) 297 if (!strcmp("zfs", Stat.st_fstype)) 298 *penmType = RTFSTYPE_ZFS; 299 else if (!strcmp("ufs", Stat.st_fstype)) 300 *penmType = RTFSTYPE_UFS; 301 else if (!strcmp("nfs", Stat.st_fstype)) 302 *penmType = RTFSTYPE_NFS; 297 /* 298 * Home directories are normally loopback mounted in Solaris 11 (st_fstype=="lofs") 299 * so statvfs(2) is needed to get the underlying file system information. 300 */ 301 struct statvfs statvfsBuf; 302 if (!statvfs(pszNativeFsPath, &statvfsBuf)) 303 { 304 if (!strcmp("zfs", statvfsBuf.f_basetype)) 305 *penmType = RTFSTYPE_ZFS; 306 else if (!strcmp("ufs", statvfsBuf.f_basetype)) 307 *penmType = RTFSTYPE_UFS; 308 else if (!strcmp("nfs", statvfsBuf.f_basetype)) 309 *penmType = RTFSTYPE_NFS; 310 } 303 311 304 312 #elif defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
Note:
See TracChangeset
for help on using the changeset viewer.