Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266457AbUITMOV (ORCPT ); Mon, 20 Sep 2004 08:14:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266391AbUITMOV (ORCPT ); Mon, 20 Sep 2004 08:14:21 -0400 Received: from cantor.suse.de ([195.135.220.2]:1510 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S266459AbUITMOM (ORCPT ); Mon, 20 Sep 2004 08:14:12 -0400 To: Paulo Marques Cc: Olaf Hering , Andries.Brouwer@cwi.nl, linux-kernel@vger.kernel.org Subject: Re: OOM & [OT] util-linux-2.12e References: <20040920094602.GA24466@suse.de> <20040920105409.GH5482@DervishD> <414EC43B.8040507@grupopie.com> From: Andreas Schwab X-Yow: YOW!! Date: Mon, 20 Sep 2004 14:14:09 +0200 In-Reply-To: <414EC43B.8040507@grupopie.com> (Paulo Marques's message of "Mon, 20 Sep 2004 12:51:23 +0100") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 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: 1350 Lines: 40 Paulo Marques writes: > Andreas Schwab wrote: >> DervishD writes: >> >>> Hi Andreas :) >>> >>> * Andreas Schwab dixit: >>> >>>>>- fix all broken apps that still rely on mtab. like GNU df(1) >>>> >>>>df does not rely on /etc/mtab. It relies on getmntent. >>> >>> Then my GNU df has any problem :??? >> No, if any then getmntent. > > I don't get this. From "man getmntent" it seems that getmntent is just a > parser for /etc/mtab, and that you must call "setmntent" with the filename > you want to parse. > > So if you do "setmntent("/etc/mtab",...)" you're explicitly saying that > you want getmntent to use /etc/mtab. This is just a open/read in disguise. > > Am I missing something? No. You are of course right, but the df sources don't reference /etc/mtab directly, but use _PATH_MOUNTED from . Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra?e 5, 90409 N?rnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - 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/