From: Steven Whitehouse Subject: Re: File perforation. Date: Wed, 8 Jan 2003 23:17:47 +0000 (GMT) Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <200301082317.XAA16132@gw.chygwyn.com> References: <22288.1042065284@passion.cambridge.redhat.com> Reply-To: Steve Whitehouse Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: To: dwmw2@infradead.org (David Woodhouse) In-Reply-To: <22288.1042065284@passion.cambridge.redhat.com> from "David Woodhouse" at Jan 08, 2003 10:34:44 PM List-Id: linux-fsdevel.vger.kernel.org Hi, I would have thought it was the kind of thing that HSM people might be interested in, perhaps they have some ideas for interfaces ? Also I thought of an interface like madvise() but for files: fadvise() and then discovered that it already exists :-) http://www.opengroup.org/onlinepubs/007904975/functions/posix_fadvise.html So presumably a suitable advice value FADV_CLEAR (for example) could be used as an addition to the POSIX values ? unless there is a reason not to overload it ? I guess preallocation could be done through the same mechanism too if it was required. Also I found a thread about fadvise here: http://www.cs.helsinki.fi/linux/linux-kernel/2002-11/0031.html Steve.