From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: hugetlbfs not working Date: Thu, 27 Mar 2008 18:09:56 +0200 Message-ID: <47EBC6D4.3070803@qumranet.com> References: <47EBBB1A.30109@qumranet.com> <80C24060-EF44-44C5-96E2-C629F0A52EBD@csgraf.de> <47EBC626.4010801@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , Alexander Graf To: Anthony Liguori Return-path: In-Reply-To: <47EBC626.4010801@codemonkey.ws> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org 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. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace