From owner-freebsd-fs Thu Aug 24 11:39:13 2000 Delivered-To: freebsd-fs@freebsd.org Received: from wally.eecs.harvard.edu (wally.eecs.harvard.edu [140.247.60.30]) by hub.freebsd.org (Postfix) with ESMTP id 5C0EA37B422 for ; Thu, 24 Aug 2000 11:39:11 -0700 (PDT) Received: from localhost (stein@localhost) by wally.eecs.harvard.edu (8.10.0/8.10.0) with ESMTP id e7OIdAx25881 for ; Thu, 24 Aug 2000 14:39:10 -0400 (EDT) Date: Thu, 24 Aug 2000 14:39:10 -0400 (EDT) From: Christopher Stein X-Sender: stein@wally To: freebsd-fs@freebsd.org Subject: file system type Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, It seems to me there are 2 ways to discover the file system type from the mount structure. Both involve accessing the vfsconf substructure (mp->mnt_vfc). The first is a numeric identifier mp->mnt_vfc->vfc_typenum and the second is a string vfc_name, also in vfsconf. Which is the preferred way to identify the fs type? Some comments indicate that the vfc_typenum is deprecated, but for ops that require frequent identification a strcmp call will begin to be expensive. -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message