On Thu, Apr 25, 2024 at 07:26:41AM +0200, Peter J. Philipp wrote: > On Thu, Apr 25, 2024 at 12:45:29AM -0300, Gustavo Rios wrote: > > Hi folks! > > > > What is the maximum file size in OpenBSD ? > > > > Thanks a lot. > > > > -- > > The lion and the tiger may be more powerful, but the wolves do not perform > > in the circus > > There is this comment in /usr/include/ufs/ffs/fs.h: > > /* Maximum file size the kernel allows. > * Even though ffs can handle files up to 16TB, we do limit the max file > * to 2^31 pages to prevent overflow of a 32-bit unsigned int. The buffer > * cache has its own checks but a little added paranoia never hurts. > */ > #define FS_KERNMAXFILESIZE(pgsiz, fs) ((u_int64_t)0x80000000 * \ > MIN((pgsiz), (fs)->fs_bsize) - 1) > > > Now page sizes differ within OpenBSD, so then it depends between 8 TB (4096 > bytes page size) and higher perhaps? > > Best Regards, > -pjp > > -- > my associated domains: callpeter.tel|centroid.eu|dtschland.eu|mainrechner.de >
dumpfs /dev/rsd0a | grep maxfilesize tells you the answer for a specific filesystem. A mentiomned in the code commment, it depends on the blocksize used by the filesystem and the page size of the platform. -Otto