Date: Thu, 01 Sep 2011 12:04:15 +0800 From: gnehzuil <gnehzuil@gmail.com> To: freebsd-fs@freebsd.org Subject: Re: SEEK_DATA/SEEK_HOLE on UFS/EXT2FS Message-ID: <4E5F043F.2010303@gmail.com> In-Reply-To: <1314806200.14687.YahooMailClassic@web113507.mail.gq1.yahoo.com> References: <1314806200.14687.YahooMailClassic@web113507.mail.gq1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Pedro, Actually, in linux, it doesn't really support SEEK_DATA/SEEK_HOLE. The patches related don't be merged into mainline. At present, when lseek(2) is called with SEEK_DATA, the entire file is as data, as long as offset is smaller than the end of the file. Meanwhile, a virtual hole is at the end of the file. So lseek(2) is called with SEEK_HOLE, i_size in linux is returned. Best regards, lz On 08/31/2011 11:56 PM, Pedro F. Giffuni wrote: > Hi; > > Just FYI, after reconsidering their position wrt NIH, the > linux guys now think SEEK_DATA/SEEK_HOLE is wonderful: > > http://lwn.net/Articles/440255/ > > and NetBSD is known to be working on it too (latest patch): > > http://mail-index.netbsd.org/tech-kern/2011/08/17/msg011231.html > > I hope our own developers haven't forgotten that this > is indeed a desired feature and that we get it for 10.0 > or, if possible, 9.1. > > cheers, > > Pedro. > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E5F043F.2010303>