Re: hugetlbfs not working

Marcelo Tosatti
2008-03-27T16:35:42Z

On Thu, Mar 27, 2008 at 06:09:56PM +0200, Avi Kivity wrote:
> Anthony Liguori wrote:
> >
> > If you don't bail when ftruncate fails, does it work as expected for
> > you? Perhaps older versions of hugetlbfs didn't support truncate.
>
> If you don't truncate, how can you change the file size? hugetlbfs
> doesn't support write().
>
> I vaugely recall using ftruncate() on 2.4.

hugetlbfs will automatically adjust the file size on mmap().