linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* UFS s_maxbytes bogosity
@ 2017-06-04 19:31 Linus Torvalds
  2017-06-04 21:37 ` Al Viro
  2017-06-04 23:23 ` [PATCH 1/1] fs/ufs: Set UFS default maximum bytes per file Richard Narron
  0 siblings, 2 replies; 21+ messages in thread
From: Linus Torvalds @ 2017-06-04 19:31 UTC (permalink / raw)
  To: Al Viro, Richard Narron, Will B; +Cc: linux-fsdevel

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-06-10  0:09 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-04 19:31 UFS s_maxbytes bogosity Linus Torvalds
2017-06-04 21:37 ` Al Viro
2017-06-04 21:58   ` Al Viro
2017-06-04 22:06     ` Al Viro
2017-06-04 23:26       ` Linus Torvalds
2017-06-05  0:11         ` Al Viro
2017-06-05  3:00           ` Linus Torvalds
2017-06-05  3:49             ` Al Viro
2017-06-07 23:48               ` Al Viro
2017-06-08  0:35                 ` Richard Narron
2017-06-08  2:20                   ` Al Viro
2017-06-08 22:15                     ` Al Viro
2017-06-08 22:36                       ` Linus Torvalds
2017-06-09  0:11                     ` Richard Narron
2017-06-09  3:35                       ` Al Viro
2017-06-09 17:34                         ` Al Viro
2017-06-09 21:55                         ` Richard Narron
2017-06-10  0:09                         ` Richard Narron
2017-06-04 22:32     ` Theodore Ts'o
2017-06-05  0:02       ` Al Viro
2017-06-04 23:23 ` [PATCH 1/1] fs/ufs: Set UFS default maximum bytes per file Richard Narron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).