- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-1-30 15:42:41
ODM Test:- -bash-3.00$ touch a
- -bash-3.00$ stat a
- File: `a'
- Size: % llu Blocks: 0 IO Block: 4096 regular empty file
- Device: 8000000ch/-2147483636d Inode: 55463108 Links: 1
- Access: (0644/-rw-r--r--) Uid: (24471/ MACLEAN) Gid: ( 1001/ member)
- Access: 2012-01-30 15:37:07.000000000 +0800
- Modify: 2012-01-30 15:37:07.000000000 +0800
- Change: 2012-01-30 15:37:07.000000000 +0800
- -bash-3.00$ ls -l a
- -rw-r--r-- 1 MACLEAN member 0 2012-01-30 15:37 a
- -bash-3.00$ echo s > a
- -bash-3.00$ stat a
- File: `a'
- Size: % llu Blocks: 8 IO Block: 4096 regular file
- Device: 8000000ch/-2147483636d Inode: 55463108 Links: 1
- Access: (0644/-rw-r--r--) Uid: (24471/ MACLEAN) Gid: ( 1001/ member)
- Access: 2012-01-30 15:37:18.000000000 +0800
- Modify: 2012-01-30 15:38:13.000000000 +0800
- Change: 2012-01-30 15:38:13.000000000 +0800
- -bash-3.00$ ls -l a
- -rw-r--r-- 1 MACLEAN member 2 2012-01-30 15:38 a
- -bash-3.00$ mount
- node mounted mounted over vfs date options
- -------- --------------- --------------- ------ ------------ ---------------
- /dev/hd4 / jfs2 Jan 03 11:56 rw,log=/dev/hd8
- /dev/hd2 /usr jfs2 Jan 03 11:56 rw,log=/dev/hd8
- /dev/hd9var /var jfs2 Jan 03 11:56 rw,log=/dev/hd8
- /dev/hd3 /tmp jfs2 Jan 03 11:56 rw,log=/dev/hd8
- /dev/fwdump /var/adm/ras/platform jfs2 Jan 03 11:56 rw,log=/dev/hd8
- /dev/hd1 /home0 jfs2 Jan 03 11:57 rw,log=/dev/hd8
- /proc /proc procfs Jan 03 11:57 rw
- /dev/hd10opt /opt jfs2 Jan 03 11:57 rw,log=/dev/hd8
- 192.168.2.5 /store/home /home nfs3 Jan 03 12:04 rw,bg,soft,intr,nosuid,sec=sys
- /dev/hd10opt /opt jfs2 Jan 03 11:57 rw,log=/dev/hd8 => mounted from Jan 03
- -bash-3.00$ oslevel -s
- 5300-07-10-0943
- -bash-3.00$ stat /dev/rhd10opt
- File: `/dev/rhd10opt'
- Size: % llu Blocks: 0 IO Block: 4096 character special file
- Device: a0004h/655364d Inode: 299 Links: 1 Device type: a,9
- Access: (0660/crw-rw----) Uid: ( 0/ root) Gid: ( 0/ UNKNOWN)
- Access: 2008-07-28 15:22:49.000000000 +0800
- Modify: 2008-07-28 15:22:49.000000000 +0800
- Change: 2008-07-28 15:22:49.000000000 +0800
- -bash-3.00$ ls -l /dev/rhd10opt
- crw-rw---- 1 root 0 10, 9 2008-07-28 15:22 /dev/rhd10opt
复制代码 可以看到 裸设备的 modify time 并不会像 普通文件系统上的文件那样 改变, 而总是等于其 创建时间 |
|