VirtualBox

Changeset 32834 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 29, 2010 10:05:49 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66293
Message:

Runtime/fs-posix.cpp: Implement RTFsQueryType() for FreeBSD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/fs-posix.cpp

    r30365 r32834  
    3636# include <mntent.h>
    3737#endif
    38 #ifdef RT_OS_DARWIN
     38#if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
    3939# include <sys/mount.h>
    4040#endif
     
    269269                *penmType = RTFSTYPE_NFS;
    270270
    271 #elif defined(RT_OS_DARWIN)
     271#elif defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
    272272            struct statfs statfsBuf;
    273273            if (!statfs(pszNativeFsPath, &statfsBuf))
     
    286286                else if (!strcmp("nfs", statfsBuf.f_fstypename))
    287287                    *penmType = RTFSTYPE_NFS;
     288                else if (!strcmp("ufs", statfsBuf.f_fstypename))
     289                    *penmType = RTFSTYPE_UFS;
     290                else if (!strcmp("zfs", statfsBuf.f_fstypename))
     291                    *penmType = RTFSTYPE_ZFS;
    288292            }
    289293            else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette