Large files in UNIX
This problem can be solved by the following: ll = ((unsigned long long) l
Line ll = (unsigned long long) (l does not give the correct decision, as a
result of the operation (l is still remembered in the temporary 32 - variable bit.
You can also use the flag when calling O_LARGEFILE open (), which will provide 64 - bit
access to the file. An alternative solution is a direct challenge API interface that
supports work with large files, rather than hold on the renaming functions _FILE_OFFSET_BITS
(details can be obtained by a team man-k # 64).
Restrictions on the size of a file from the command line canceled
ulimit-f unlimited,
While ksh would disclose the amount of 4194303 bytes in the file. Restrictions on the size of a file can be checked by team
ulimit-for
getrlimit ().
To work with large file systems do not require tuning the operating system kernel - domestic support parameter
VXFS manages large files. There are restrictions on the size of the file to a user instant command idtune ().
If parameters SFSZLIM and HFSZLIM installed at the maximum value (0x7FFFFFFF, defined as RLIM_INFINITY),
the user is allowed to create large files. Otherwise, large files can create only a privileged user (superuser).
To sum up, it is possible to identify a set of actions required to work with large files.
1. Set for the file system (for example, vxfs) the option of working with large files.
2. Set a limit to the size of the file ulimit, specifying "infinity" (infinity).
3. Use the 64 - bit API interfaces or asking _FILE_OFFSET_BITS = 64, causing a 64 - bit functions such open64 ().
|