From owner-freebsd-questions@FreeBSD.ORG Wed Sep 21 16:11:54 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEA0416A41F for ; Wed, 21 Sep 2005 16:11:54 +0000 (GMT) (envelope-from adam.welch@epok.net) Received: from mail.epokinc.com (mail.epokinc.com [208.253.87.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A04C43D46 for ; Wed, 21 Sep 2005 16:11:54 +0000 (GMT) (envelope-from adam.welch@epok.net) Received: from styrofoam.dyn.epokinc.com (styrofoam.dyn.epokinc.com [10.1.2.128]) (authenticated bits=0) by mail.epokinc.com (8.12.8/8.12.8) with ESMTP id j8LGDiGS010503 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Wed, 21 Sep 2005 12:13:44 -0400 From: Adam Welch To: "N.J. Thomas" In-Reply-To: <20050921150025.GC17377@ayvali.org> References: <20050921150025.GC17377@ayvali.org> Content-Type: text/plain Date: Wed, 21 Sep 2005 12:12:47 -0400 Message-Id: <1127319167.2740.5.camel@styrofoam.dyn.epokinc.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.86.2/1096/Wed Sep 21 03:08:33 2005 on nsint.epokinc.com X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: programmatically getting mounts? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2005 16:11:54 -0000 On Wed, 2005-09-21 at 11:00 -0400, N.J. Thomas wrote: > Short of grepping the output of mount or df, what is the best way to > programmatically get a list of mounted filesystems? > > I glance at sysctl shows nothing, and mounting linprocfs doesn't give a > very "Linux-esque" listing -- just processes. > > thanks, > Thomas > Try "man -S3 getmntinfo", because you said "programmatically". ,Adam