From owner-freebsd-questions@FreeBSD.ORG Wed Aug 17 20:09:18 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 DE81C16A41F for ; Wed, 17 Aug 2005 20:09:18 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from zhonka1.zhonka.net (zhonka1.zhonka.net [66.228.195.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E99043D49 for ; Wed, 17 Aug 2005 20:09:18 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from wolf.pjkh.com ([66.228.196.74]) by zhonka1.zhonka.net (Post.Office MTA v3.5.3 release 223 ID# 0-58414U4500L450S0V35) with ESMTP id net; Wed, 17 Aug 2005 13:09:17 -0700 Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id 09316584D; Wed, 17 Aug 2005 13:09:12 -0700 (PDT) Received: from wolf.pjkh.com ([127.0.0.1]) by localhost (wolf.pjkh.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51620-02; Wed, 17 Aug 2005 13:09:11 -0700 (PDT) Received: by wolf.pjkh.com (Postfix, from userid 1000) id C4EDA584B; Wed, 17 Aug 2005 13:09:11 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id BF7CD5849; Wed, 17 Aug 2005 13:09:11 -0700 (PDT) Date: Wed, 17 Aug 2005 13:09:11 -0700 (PDT) From: Philip Hallstrom To: "Jorge Mario G. Mazo" In-Reply-To: <20050817195522.28381.qmail@web50101.mail.yahoo.com> Message-ID: <20050817130850.C51922@wolf.pjkh.com> References: <20050817195522.28381.qmail@web50101.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at pjkh.com Cc: freebsd-questions@freebsd.org Subject: Re: how to know the file system type [programming] 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, 17 Aug 2005 20:09:19 -0000 > hi there > I've been looking for a way to check the fs type > I need to do something like this > > if NTFS do this > if msdis do that > if ufs2 do that > if ext2 do this other stuff Parse /etc/fstab? I'm sure there are lots of other ways too...