Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305363

Re: [PATCH] add support for larger files in minix filesystem

From One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] add support for larger files in minix filesystem
Date 2016-01-09 22:40 +0100
Message-ID <qP9oR-2Xj-5@gated-at.bofh.it> (permalink)
References <qqeL8-I4-3@gated-at.bofh.it> <qOSxH-84G-17@gated-at.bofh.it> <qP6Kl-Zs-5@gated-at.bofh.it>
Organization Intel Corporation

Show all headers | View raw


> I accessed the minix code at
> http://users.sosdg.org/~qiyong/mxr/source/minix/fs/mfs/read.c
> and they use unsigned for the block variables so the kernel would be
> fine with it; except for super.c truncates the cap at 2GB, so they
> simply won't be able to open large files.

The question is what users in general (notably Minix) do with that. As I
read it both Minix and ELKS will get mightily upset by files over 2GB
long. It would be bad if Linux allowed a user to corrupt their minixfs
images as seen by the normal users of Minix fs.

> Maybe we'd be happier if I limited this to a new superblock magic value;
> and their code won't even mount it.

Yep. That would be sensible. You might also want to pick a fixed
endianness and also decide the bit-endianness of the file system. Minixfs
proper made rather a mess of that.

If your physical media does not suffer from needing to keep blocks on the
same disk cylinder (ie rotating rust) then the V7 file system is even
smaller than the Minix one but also has the 2GB limit.

Alan

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] add support for larger files in minix filesystem Al Viro <viro@ZenIV.linux.org.uk> - 2016-01-09 04:40 +0100
  Re: [PATCH] add support for larger files in minix filesystem Joshua Hudson <joshudson@gmail.com> - 2016-01-09 19:50 +0100
    Re: [PATCH] add support for larger files in minix filesystem One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk> - 2016-01-09 22:40 +0100
      Re: [PATCH] add support for larger files in minix filesystem Al Viro <viro@ZenIV.linux.org.uk> - 2016-01-10 00:20 +0100
      Re: [PATCH] add support for larger files in minix filesystem Joshua Hudson <joshudson@gmail.com> - 2016-01-10 00:50 +0100

csiph-web