UFS s_maxbytes bogosity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Al (or anybody else),
 any comments on

    https://bugzilla.kernel.org/show_bug.cgi?id=195721

and in particular the patch in there that just makes UFS use MAX_LFS_FILESIZE:

    https://bugzilla.kernel.org/attachment.cgi?id=256853&action=diff

I'm inclined to just apply it, since clearly the default 2G limit
isn't appropriate for UFS, although it would perhaps be a good idea to
figure out just what the true UFS maximum file size can be.. The
on-disk "ui_size" field seems to be a 64-bit entity, so
MAX_LFS_FILESIZE is certainly better, but there's probably some index
tree limit that depends on the block size or whatever.

Googling ufs file size limits shows that (a) Solaris at some point
also had that same 2GB file size limit for ufs, and (b) finds this:

  "Maximum UFS File and File System Size

    The maximum size of a UFS file system is about 16 TB of usable
space, minus about one percent overhead. A sparse file can have a
logical size of one terabyte. However, the actual amount of data that
can be stored in a file is approximately one percent less than 1 TB
because of the file system overhead."

So 1TB might be the right number, but the default MAX_NON_LFS limit
definitely is not.

Richard - I'd really like to get a sign-off for that patch, even if
it's a trivial one-liner (and even if we might end up using a
different limit in the end).

Afaik, we haven't had a UFS maintainer for a long while, the last
commit from Evgeniy seems to be from 2015, and the last one to UFS
with anything but a cc was in 2010.

               Linus



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux