Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 27 Feb 2003 03:02:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 27 Feb 2003 03:02:20 -0500 Received: from daimi.au.dk ([130.225.16.1]:54185 "EHLO daimi.au.dk") by vger.kernel.org with ESMTP id ; Thu, 27 Feb 2003 03:02:19 -0500 Message-ID: <3E5DC86C.93AFA6CB@daimi.au.dk> Date: Thu, 27 Feb 2003 09:12:28 +0100 From: Kasper Dupont Organization: daimi.au.dk X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.18-19.7.xsmp i686) X-Accept-Language: en MIME-Version: 1.0 To: Dominik Kubla CC: Miles Bader , DervishD , Linux-kernel Subject: Re: About /etc/mtab and /proc/mounts References: <20030219112111.GD130@DervishD> <3E5DB2CA.32539D41@daimi.au.dk> <200302270808.21035.dominik@kubla.de> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1443 Lines: 37 Dominik Kubla wrote: > > I would recommend to replace /etc/mtab with a pseudo-FS like Sun did > for /etc/mnttab: > > # uname -rs > SunOS 5.8 > # mount -p > ... > mnttab - /etc/mnttab mntfs - no dev=39c0000 > ... How does that thing behave? I have considered a /proc/mtab implementation, that might be slightly similar. It would have to be like /proc/mounts, but differ in a few fields. The mountpoint and filesystem fields should be exactly like /proc/mounts, while the device and options fields should be strings initialized with the same values as /proc/mounts, but otherwise writable from userspace. Every line written to /proc/mtab should be parsed into the fields, and the mountpoints should be searched for a match, if a match is found, the device and options fields are updated, otherwise the write is simply ignored. How does people like this idea? Should something more be done about the options field? Should they be checked for obvious inconsistencies, or should a write attempt to remount the filesystem with the new options? -- Kasper Dupont -- der bruger for meget tid p? usenet. For sending spam use mailto:aaarep@daimi.au.dk for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_); - 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/