Re: RFC: lseek() extensions: SEEK_HOLE / SEEK_DATA with patch

2011-08-08 Thread David Laight
On Sun, Aug 07, 2011 at 02:14:50PM +, David Holland wrote: On Sun, Aug 07, 2011 at 09:52:11AM +0200, Reinoud Zandijk wrote: i've implemented the SEEK_HOLE / SEEK_DATA additions to lseek() as introduced by Solaris for ZFS. What does this operation have to do with seeking? And why

Re: autoclean mode for tmpfs

2011-08-08 Thread Iain Hibbert
On Sun, 7 Aug 2011, David Holland wrote: On Sun, Aug 07, 2011 at 06:29:01PM +0200, Marc Balmer wrote: And what is auto-erasing files good for in the first place? I don't get the point, for me it's calling for trouble. Traditionally, it's so /tmp doesn't grow without bound, which once

Re: merging bits of [cherry-xenmp]

2011-08-08 Thread Hugo Silva
On 08/07/11 15:56, Cherry G. Mathew wrote: Hi, I'd like to start merging in bits of the cherry-xenmp branch into -current over the coming week. The changes should be transparent, and shouldn't change any behaviour of -current. These include a few cleanups of MD code and some MP related

Re: autoclean mode for tmpfs

2011-08-08 Thread Brian Buhrow
Hello. I don't know about others, but I rely heavily on the daily and weekly scripts to clean out /tmp and /var/tmp, and have done so for many years. I'm always creating temporary files I don't need for long periods of time, but don't want them to necessarily disappear immediately. The

Re: RFC: lseek() extensions: SEEK_HOLE / SEEK_DATA with patch

2011-08-08 Thread Reinoud Zandijk
On Mon, Aug 08, 2011 at 12:15:03AM +, David Holland wrote: struct range range; while (pos len) { fgetrange(fd, pos, range); if (range.r_type == RANGE_DATA) { amount = range.r_end - pos; if (amount sizeof(buf)) {