/etc/filesystems 存放这许多文件系统的所有信息,许多维护文件系统的命令都是从这个文件中获取的文件系统的默认属性。此文件的格式是stanza 格式的。包含文件系统的名字和属性。
ufserver[/]#cat /etc/filesystems
* @(#)filesystems @(#)29 1.22 src/bos/etc/filesystems/filesystems, cmdfs, bos530 9/8/00 13:57:45
* IBM_PROLOG_BEGIN_TAG
* This is an automatically generated prolog.
* bos530 src/bos/etc/filesystems/filesystems 1.22
* IBM_PROLOG_END_TAG
* COMPONENT_NAME: CMDFS
* FUNCTIONS: none
* ORIGINS: 27
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
* This version of /etc/filesystems assumes that only the root file system
* is created and ready. As new file systems are added, change the check,
* mount, free, log, vol and vfs entries for the appropriate stanza.
*
/:
dev = /dev/hd4 --文件对应的逻辑设备,逻辑卷
vfs = jfs2 -- mount的类型
log = /dev/hd8 ---文件系统的日志设备。该项只对jfs 和jfs2 有用。
mount = automatic --文件系统默认安装方式
1 automatic
2 true 用mount all 命令安装,用unmount all 卸载文件,系统初始化时自动执行 mount all。
3 false 文件系统不会自动安装,必须手动安装(用mount 命令单独安装)
4 readonly 文件系统以只读的方式安装
check = false --文件系统是否由fsck 命令在默认情况下检查。
type = bootfs --文件系统类型,用于按类型分组安装文件系统。mount -t type
vol = root --文件系统的卷标
free = true --
/home:
dev = /dev/hd1
vfs = jfs2
log = /dev/hd8
mount = true
check = true
vol = /home
free = false
/usr:
dev = /dev/hd2
vfs = jfs2
log = /dev/hd8
mount = automatic
check = false
type = bootfs
vol = /usr
free = false
/var:
dev = /dev/hd9var
vfs = jfs2
log = /dev/hd8
mount = automatic
check = false
type = bootfs
vol = /var
free = false
/opt:
dev = /dev/hd10opt
vfs = jfs2
log = /dev/hd8
mount = true
check = true
vol = /opt
free = false
/ora10g:
dev = /dev/ora10g
vfs = jfs2
log = /dev/loglv00
mount = true
options = rw
account = false
/db2data:
dev = /dev/db2data
vfs = jfs2
log = /dev/loglv00
mount = true
options = rw
account = false
ufserver[/]#cat /etc/vfs
# @(#)vfs @(#)77 1.30 src/bos/etc/vfs/vfs, cmdfs, bos530 2/26/04 10:48:56
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
# bos530 src/bos/etc/vfs/vfs 1.30
# IBM_PROLOG_END_TAG
# COMPONENT_NAME: CFGETC
# FUNCTIONS:
# ORIGINS: 27
# this file describes the known virtual file system implementations.
# format: (the name and vfs_number should match what is in )
# The standard helper directory is /etc/helpers
# name vfs_number mount_helper filsys_helper
# Uncomment the following line to specify the local or remote default vfs.
%defaultvfs jfs2 nfs
#
#名称 虚拟文件 vfs类型的安装助手 vfs类型的文件系统助手
系统类型 程序路径 程序路径名
代码
cdrfs 5 none none
procfs 6 none none
jfs 3 none /sbin/helpers/v3fshelper
jfs2 0 /sbin/helpers/jfs2 none
nfs 2 /sbin/helpers/nfsmnthelp none remote
sfs 16 none none
nfs3 18 /sbin/helpers/nfsmnthelp none remote
nfs4 35 /sbin/helpers/nfsmnthelp none remote
cachefs 17 /sbin/helpers/cfsmnthelp none remote
udfs 34 /sbin/helpers/udfmnthelp none
cifs 37 /sbin/helpers/mount_cifs none
autofs 19 /sbin/helpers/aufsmnthelp none
ufserver[/]#
%defaultvfs --控制标识
jfs2 --默认的本地虚拟文件系统的类型
nfs --默认的远程虚拟文件系统类型