Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266832AbUFYTJT (ORCPT ); Fri, 25 Jun 2004 15:09:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266838AbUFYTJT (ORCPT ); Fri, 25 Jun 2004 15:09:19 -0400 Received: from chnmfw01.eth.net ([202.9.145.21]:59147 "EHLO ETH.NET") by vger.kernel.org with ESMTP id S266832AbUFYTJM (ORCPT ); Fri, 25 Jun 2004 15:09:12 -0400 Message-ID: <40DC7859.6070102@eth.net> Date: Sat, 26 Jun 2004 00:39:13 +0530 From: Amit Gud User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Horst von Brand CC: Pavel Machek , alan , Timothy Miller , linux-kernel@vger.kernel.org Subject: Re: Elastic Quota File System (EQFS) References: <20040624220318.GE20649@elf.ucw.cz> <20040625001545.GI20649@elf.ucw.cz> <40DC62BD.3010607@techsource.com> In-Reply-To: <40DC62BD.3010607@techsource.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jun 2004 19:01:29.0687 (UTC) FILETIME=[D2AEDE70:01C45AE6] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1978 Lines: 65 Horst von Brand wrote: > Pavel Machek said: > > >> Hi! >> >> >> >>> Case closed, anyway. It belongs in the kernel only if there is no >>> reasonable way to do it in userspace. >>> >> >> But... there's no reasonable way to do this in userspace. >> > > > Let's see... > > > >> Two pieces of kernel support are needed: >> >> 1) some way to indicate "this file is elastic" (okay perhaps xattrs >> can do this already) >> > > > Or just a list of elastic files in ~/.elastic. Even better, could mark > them > as "Just delete", "compress"; could go as far as giving (fallback?) globs > to select files for each treatment ("If space gets tight, delete *~ > files, > and compress *.tex that haven't been read in a week"). Sounds like a fun > Perl project... > > > .elastic is a file or directory? If its file, daemon has to do the ugly insertion deletion of the file enteries. If its a directory, daemon has to do the updating of the files in case of mv, plus follow the links for unlink, chown if we are storing the files as symlinks and we will be wasting the inodes. Just think of the load on the system if we run a daemon, which sleeps for a time depending on the data transfer rate and the amount of free space left, and if the free space left is very close to the margin... the system might even freeze. The primary intention of taking filesystems into kernel is the speed and the security that we get, otherwise we do have userspace filesystems! What we need is an application-transparent system which of course should be plugable within a system and which also shouldn't hamper the system throughput in a major way. I really don't see user space implementation in the picture. AG - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/