QNX: Limit maximum largefile size
Pick-to: 6.2 Change-Id: I4e43eaea98e893453c8c1356da63edb0c059f896 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
578f7d56eb
commit
d500fc5580
@ -62,12 +62,17 @@ public:
|
||||
, fd_(-1)
|
||||
, stream_(0)
|
||||
{
|
||||
#if defined(QT_LARGEFILE_SUPPORT) && !defined(Q_OS_MAC)
|
||||
#if defined(QT_LARGEFILE_SUPPORT) && !defined(Q_OS_MAC) && !defined(Q_OS_QNX)
|
||||
maxSizeBits = 36; // 64 GiB
|
||||
#elif defined(Q_OS_MAC)
|
||||
// HFS+ does not support sparse files, so we limit file size for the test
|
||||
// on Mac OS.
|
||||
maxSizeBits = 24; // 16 MiB
|
||||
#elif defined(Q_OS_QNX)
|
||||
// Many of the filesystems that QNX supports use a 32-bit format.
|
||||
// This means that files are limited to 2 GB − 1 bytes.
|
||||
// Limit max size to 256MB
|
||||
maxSizeBits = 28; // 256 MiB
|
||||
#else
|
||||
maxSizeBits = 24; // 16 MiB
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user