|
最初由 chao_ping 发布
[B]谢谢 yong huang .
在Linux下面,已经圆满解决问题。
通过stat /mount_point,可以看出block大小。
但是在freebsd下面,有个Linux的兼容软件,也是stat,可以查出,不知道512是不是就是Block大小,好像是:
gate# /usr/compat/linux/usr/bin/stat /exports
File: "/exports"
Size: 512 Filetype: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ wheel)
Device: 116,5 Inode: 2 Links: 3
Access: Mon Oct 22 23:44:10 2001(00000.00:00:44)
Modify: Sun Oct 21 21:46:10 2001(00001.01:58:44)
Change: Sun Oct 21 21:46:10 2001(00001.01:58:44)
gate# /usr/compat/linux/usr/bin/stat /usr
File: "/usr"
Size: 512 Filetype: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ wheel)
Device: 116,4 Inode: 1600 Links: 17
Access: Mon Oct 22 23:44:02 2001(00000.00:01:40)
Modify: Thu Oct 11 18:40:04 2001(00011.05:05:38)
Change: Thu Oct 11 18:40:04 2001(00011.05:05:38)
gate# /usr/compat/linux/usr/bin/stat /
File: "/"
Size: 512 Filetype: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ wheel)
Device: 116,0 Inode: 2 Links: 19
Access: Mon Oct 22 23:41:12 2001(00000.00:05:22)
Modify: Fri Oct 12 17:23:56 2001(00010.06:22:38)
Change: Fri Oct 12 17:23:56 2001(00010.06:22:38)
gate# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 992239 56490 856370 6% /
/dev/ad0s1e 1984479 1688583 137138 92% /usr
/dev/ad0s1f 35491653 3 32652318 0% /exports
procfs 4 4 0 100% /proc
AIX下面也没有相应的命令。
不知道别的Unix如何。 [/B] |
|