Use BSD-style statfs members for INTEGRITY.
Change-Id: I898f3c026923536f74a467564c204db837efbcd7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
d05673ac20
commit
5323ffed64
@ -513,7 +513,7 @@ void QStorageInfoPrivate::retrieveVolumeInfo()
|
|||||||
valid = true;
|
valid = true;
|
||||||
ready = true;
|
ready = true;
|
||||||
|
|
||||||
#if defined(Q_OS_BSD4) && !defined(Q_OS_NETBSD)
|
#if defined(Q_OS_INTEGRITY) || (defined(Q_OS_BSD4) && !defined(Q_OS_NETBSD))
|
||||||
bytesTotal = statfs_buf.f_blocks * statfs_buf.f_bsize;
|
bytesTotal = statfs_buf.f_blocks * statfs_buf.f_bsize;
|
||||||
bytesFree = statfs_buf.f_bfree * statfs_buf.f_bsize;
|
bytesFree = statfs_buf.f_bfree * statfs_buf.f_bsize;
|
||||||
bytesAvailable = statfs_buf.f_bavail * statfs_buf.f_bsize;
|
bytesAvailable = statfs_buf.f_bavail * statfs_buf.f_bsize;
|
||||||
@ -523,7 +523,7 @@ void QStorageInfoPrivate::retrieveVolumeInfo()
|
|||||||
bytesAvailable = statfs_buf.f_bavail * statfs_buf.f_frsize;
|
bytesAvailable = statfs_buf.f_bavail * statfs_buf.f_frsize;
|
||||||
#endif
|
#endif
|
||||||
blockSize = statfs_buf.f_bsize;
|
blockSize = statfs_buf.f_bsize;
|
||||||
#if defined(Q_OS_ANDROID) || defined (Q_OS_BSD4)
|
#if defined(Q_OS_ANDROID) || defined(Q_OS_BSD4) || defined(Q_OS_INTEGRITY)
|
||||||
#if defined(_STATFS_F_FLAGS)
|
#if defined(_STATFS_F_FLAGS)
|
||||||
readOnly = (statfs_buf.f_flags & ST_RDONLY) != 0;
|
readOnly = (statfs_buf.f_flags & ST_RDONLY) != 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user