- Timestamp:
- Jun 17, 2010 10:25:10 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62807
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/fs.h
r30278 r30281 194 194 #define RTFS_FS_TYPE_NTFS 11 195 195 #define RTFS_FS_TYPE_ZFS 12 196 #define RTFS_FS_TYPE_XFS 13 197 #define RTFS_FS_TYPE_AUTOFS 14 198 #define RTFS_FS_TYPE_DEVFS 15 196 199 197 200 -
trunk/src/VBox/Runtime/r3/posix/fs-posix.cpp
r30254 r30281 35 35 #ifdef RT_OS_LINUX 36 36 # include <mntent.h> 37 #endif 38 #ifdef RT_OS_DARWIN 39 # include <sys/mount.h> 37 40 #endif 38 41 … … 228 231 if (!strcmp("zfs", Stat.st_fstype)) 229 232 *pu32Type = RTFS_FS_TYPE_ZFS; 233 #elif defined(RT_OS_DARWIN) 234 struct statfs statfsBuf; 235 if (!statfs(pszNativeFsPath, &statfsBuf)) 236 { 237 if (!strcmp("hfs", statfsBuf.f_fstypename)) 238 *pu32Type = RTFS_FS_TYPE_HFS; 239 else if ( !strcmp("fat", statfsBuf.f_fstypename) 240 || !strcmp("msdos", statfsBuf.f_fstypename)) 241 *pu32Type = RTFS_FS_TYPE_FAT; 242 else if (!strcmp("ntfs", statfsBuf.f_fstypename)) 243 *pu32Type = RTFS_FS_TYPE_NTFS; 244 else if (!strcmp("autofs", statfsBuf.f_fstypename)) 245 *pu32Type = RTFS_FS_TYPE_AUTOFS; 246 else if (!strcmp("devfs", statfsBuf.f_fstypename)) 247 *pu32Type = RTFS_FS_TYPE_DEVFS; 248 else if (!strcmp("nfs", statfsBuf.f_fstypename)) 249 *pu32Type = RTFS_FS_TYPE_NFS; 250 } 230 251 #endif 231 252 } -
trunk/src/VBox/Runtime/testcase/tstRTFsQueries.cpp
r30274 r30281 99 99 "cifs", 100 100 "fat", 101 "ntfs" 101 "ntfs", 102 "zfs", 103 "xfs", 104 "autofs", 105 "devfs" 102 106 }; 103 107
Note:
See TracChangeset
for help on using the changeset viewer.