Re: [PATCH] hugetlbfs read() support

dean gaudet
2007-07-31T05:57:03Z

On Thu, 19 Jul 2007, Bill Irwin wrote:

> On Thu, Jul 19, 2007 at 10:07:59AM -0700, Nishanth Aravamudan wrote:
> > But I do think a second reason to do this is to make hugetlbfs behave
> > like a normal fs -- that is read(), write(), etc. work on files in the
> > mountpoint. But that is simply my opinion.
>
> Mine as well.

ditto. here's a few other things i've run into recently:

it should be possible to use cp(1) to load large datasets into a
hugetlbfs.

it should be possible to use ftruncate() on hugetlbfs files. (on a tmpfs
it's req'd to extend the file before mmaping... on hugetlbfs it returns
EINVAL or somesuch and mmap just magically extends files.)

it should be possible to statfs() and get usage info... this works only if
you mount with size=N.

-dean