首页 > *nix技术, 文件系统 > Xfs文件系统磁盘布局之九:inode节点管理

Xfs文件系统磁盘布局之九:inode节点管理

2012年1月4日 发表评论 阅读评论 4,371 次浏览

作为标记一个文件的inode号,对于它的管理当然也是十分重要的。inode的分配与释放总是以64为单位组成chunk块来进行,那么一个AG对于inode整体的管理也就是对这些chunk块的管理,AG仍然还是使用B+tree这个数据结构来管理这些chunk块的分配与释放。这个B+tree的类型(指人为的对其所占用的block块进行magic标记和区分)为IABT,和ABTB/ABTC类似。
IABT类型的B+tree的根节点所在block块号由xfs_agi指定,xfs_agi存储在第0块block的第2块sector内,一块新建立的Xfs文件系统的AG的agi如下:
[root@localhost xfsprogs]# ./db/xfs_db /dev/loop0
xfs_db> agi 0
xfs_db> p
magicnum = 0x58414749
魔术数,即是‘XAGI’。
versionnum = 1
版本号,由XFS_AGI_VERSION定义,值为1。
seqno = 0
agi的序号,第0块AG内的agi序号为0,第1块AG内的agi序号为2,类此。
length = 32768
本AG内的block块数,其值=磁盘总大小/block块大小/AG数目,这里loop0磁盘大小为512M,即是:512*1024*1024/4096/4=32768。
count = 64
已分配的inode数目,这是一块新建立的primary AG,所以其一开始就分配了一个inode chunk,即是64个inode。如果是其它AG,一开始是没有分配inode chunk的:

xfs_db> agi 1
xfs_db> p
magicnum = 0x58414749
versionnum = 1
seqno = 1
length = 32768
count = 0
root = 3
level = 1
freecount = 0
newino = null
dirino = null
unlinked[0-63] = 
xfs_db> 

root = 3
指定IABT类型的B+tree的根节点所在block块号,一开始就是第3块,后续随着分区的使用,inode的分配与释放,B+tree发生变化,随之根节点也会变到其它block块上。
level = 1
指定IABT类型的B+tree的树深度。
freecount = 61
当前可用的inode数,即是已经分配但尚未被使用的inode。新分区为什么只剩下了61个空闲inode?不是64个么?事实上,是因为1个(inode号为128)被用来作为了根节点,另外两个(inode号分别为129和130)被用来作为实时设备空间(real-time device’s space)的管理节点,即是位图节点和综述节点(the Bitmap Inode and the Summary Inode),关于这两个节点后续再讨论。这三个inode节点在代码路径(main(xfs_mkfs.c:2631)-> parse_proto(proto.c:592) -> parseproto(proto.c:564) -> rtinit(proto.c:645) -> …)里被使用掉,可以ls命令看一下根节点:

[root@localhost loop]# mount /dev/loop0 xfs
[root@localhost loop]# cd xfs
[root@localhost xfs]# ls -lia
total 4
   128 drwxr-xr-x. 2 root root    6 Dec 31 06:22 .
524142 drwxr-xr-x. 5 root root 4096 Dec 31 02:32 ..
[root@localhost xfs]# 

newino = 128
新分配的inode chunk块内的起始inode号。
dirino = null
最后一个目录inode chunk块号。
unlinked[0-63] =
该字段后续会讲到。
xfs_db>
前面已经详细讲解了ABTB/ABTC类型B+tree的组织与结构,与此类似的IABT类型B+tree也差不多,只是B+tree里具体的数据字段以及含义有点变化而已。先来看深度为1的IABT类型B+tree,在此之前先弄点数据上去:

[root@localhost loop]# mount /dev/loop0 xfs
[root@localhost loop]# cd xfs
[root@localhost xfs]# for((i=1;i<=897;i++)); do touch "$i"; done
[root@localhost xfs]# ls | wc -w
897
[root@localhost xfs]# rm -f 234  271  308  345  382  419  456  493  53   567  603  640  678
[root@localhost xfs]# ls | wc -w
884
[root@localhost xfs]# cd ..
[root@localhost loop]# umount xfs

再看agi和IABT:

[root@localhost xfsprogs]# ./db/xfs_db /dev/loop0
xfs_db> agi
xfs_db> p
magicnum = 0x58414749
versionnum = 1
seqno = 0
length = 32768
count = 960
root = 3
level = 1
freecount = 73
newino = 1184
dirino = null
unlinked[0-63] = 
xfs_db> fsblock 3
xfs_db> type inobt
xfs_db> p
magic = 0x49414254
level = 0
numrecs = 15
leftsib = null
rightsib = null
recs[1-15] = [startino,freecount,free] 1:[128,1,0x80000000000000] 2:[224,0,0] 3:[288,0,0] 4:[352,1,0x100000000000] 5:[416,2,0x40000000020000] 6:[512,1,0x8000000] 7:[576,2,0x2000000001] 8:[640,2,0x800000000400] 9:[768,1,0x200000000000000] 10:[832,1,0x20000000] 11:[896,2,0x10000000004] 12:[960,0,0] 13:[1056,0,0] 14:[1120,0,0] 15:[1184,60,0xfffffffffffffff0]
xfs_db>

上面的agi信息给出:IABT的根节点在第3块block,树深度为1,当前空闲的inode数为73,最新分配的inode chunk块内的起始inode号为1184;而从第3块block里的信息可以看出一些inode的分布,比如从[128,1,0×80000000000000]可以看出第8(起始inode号是128,那么推算出该inode chunk所在的block号为128/16=8,其中16是指1块block可以存放16个inode,当然是指默认配置下)块block被用来作为inode chunk,并且还有一个inode处于空闲状态,该空闲inode通过0x80000000000000掩码来标识出。

看实际数据验证我们的分析,注意inode的魔术数,即‘IN’:

xfs_db> fsblock 14
xfs_db> type text
xfs_db> p
000:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
010:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
020:  4e ff 06 27 26 df 24 32 4e ff 06 27 26 df 24 32  N......2N......2
030:  4e ff 06 27 26 df 24 32 00 00 00 00 00 00 00 00  N......2........
040:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
050:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
060:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
070:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
080:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
090:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
0c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
0d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
0e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
0f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
100:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
110:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
120:  4e ff 06 27 27 e2 8a 71 4e ff 06 27 27 e2 8a 71  N......qN......q
130:  4e ff 06 27 27 e2 8a 71 00 00 00 00 00 00 00 00  N......q........
140:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
150:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
160:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
170:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
180:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
190:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
1c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
1d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
1e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
1f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
200:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
210:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
220:  4e ff 06 27 28 c7 6c 31 4e ff 06 27 28 c7 6c 31  N.....l1N.....l1
230:  4e ff 06 27 28 c7 6c 31 00 00 00 00 00 00 00 00  N.....l1........
240:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
250:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
260:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
270:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
280:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
290:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
2c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
2d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
2e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
2f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
300:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
310:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
320:  4e ff 06 27 29 8d c9 71 4e ff 06 27 29 8d c9 71  N......qN......q
330:  4e ff 06 27 29 8d c9 71 00 00 00 00 00 00 00 00  N......q........
340:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
350:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
360:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
370:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
380:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
390:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
3c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
3d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
3e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
3f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
400:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
410:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
420:  4e ff 06 27 2a 54 26 b1 4e ff 06 27 2a 54 26 b1  N....T..N....T..
430:  4e ff 06 27 2a 54 26 b1 00 00 00 00 00 00 00 00  N....T..........
440:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
450:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
460:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
470:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
480:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
490:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
4a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
4b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
4c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
4d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
4e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
4f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
500:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
510:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
520:  4e ff 06 27 2b 1a 83 f1 4e ff 06 27 2b 1a 83 f1  N.......N.......
530:  4e ff 06 27 2b 1a 83 f1 00 00 00 00 00 00 00 00  N...............
540:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
550:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
560:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
570:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
580:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
590:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
5a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
5b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
5c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
5d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
5e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
5f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
600:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
610:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
620:  4e ff 06 27 2b d1 9e f1 4e ff 06 27 2b d1 9e f1  N.......N.......
630:  4e ff 06 27 2b d1 9e f1 00 00 00 00 00 00 00 00  N...............
640:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
650:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
660:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
670:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
680:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
690:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
6a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
6b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
6c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
6d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
6e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
6f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
700:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
710:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
720:  4e ff 06 27 2c 97 fc 31 4e ff 06 27 2c 97 fc 31  N......1N......1
730:  4e ff 06 27 2c 97 fc 31 00 00 00 00 00 00 00 00  N......1........
740:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
750:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
760:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
770:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
780:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
790:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
7a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
7b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
7c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
7d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
7e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
7f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
800:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
810:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
820:  4e ff 06 27 2d 5e 59 71 4e ff 06 27 2d 5e 59 71  N.....YqN.....Yq
830:  4e ff 06 27 2d 5e 59 71 00 00 00 00 00 00 00 00  N.....Yq........
840:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
850:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
860:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
870:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
880:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
890:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
8a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
8b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
8c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
8d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
8e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
8f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
900:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
910:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
920:  4e ff 06 27 2e 9e c8 b2 4e ff 06 27 2e 9e c8 b2  N.......N.......
930:  4e ff 06 27 2e 9e c8 b2 00 00 00 00 00 00 00 00  N...............
940:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
950:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
960:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
970:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
980:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
990:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
9a0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
9b0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
9c0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
9d0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
9e0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
9f0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
a00:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
a10:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
a20:  4e ff 06 27 2f 92 ec b2 4e ff 06 27 2f 92 ec b2  N.......N.......
a30:  4e ff 06 27 2f 92 ec b2 00 00 00 00 00 00 00 00  N...............
a40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
a50:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
a60:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
a70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
a80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
a90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
aa0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
ab0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
ac0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
ad0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
ae0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
af0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
b00:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
b10:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
b20:  4e ff 06 27 30 4a 07 b2 4e ff 06 27 30 4a 07 b2  N...0J..N...0J..
b30:  4e ff 06 27 30 4a 07 b2 00 00 00 00 00 00 00 00  N...0J..........
b40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
b50:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
b60:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
b70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
b80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
b90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
ba0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
bb0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
bc0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
bd0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
be0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
bf0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
c00:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
c10:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
c20:  4e ff 06 27 31 01 22 b2 4e ff 06 27 31 01 22 b2  N...1...N...1...
c30:  4e ff 06 27 31 01 22 b2 00 00 00 00 00 00 00 00  N...1...........
c40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
c50:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
c60:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
c70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
c80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
c90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
ca0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
cb0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
cc0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
cd0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
ce0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
cf0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
d00:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
d10:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
d20:  4e ff 06 27 31 c7 7f f2 4e ff 06 27 31 c7 7f f2  N...1...N...1...
d30:  4e ff 06 27 31 c7 7f f2 00 00 00 00 00 00 00 00  N...1...........
d40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
d50:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
d60:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
d70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
d80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
d90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
da0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
db0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
dc0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
dd0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
de0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
df0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
e00:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
e10:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
e20:  4e ff 06 27 32 ac 61 b1 4e ff 06 27 32 ac 61 b1  N...2.a.N...2.a.
e30:  4e ff 06 27 32 ac 61 b1 00 00 00 00 00 00 00 00  N...2.a.........
e40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
e50:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
e60:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
e70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
e80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
e90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
ea0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
eb0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
ec0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
ed0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
ee0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
ef0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
f00:  49 4e 81 a4 02 02 00 00 00 00 00 00 00 00 00 00  IN..............
f10:  00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01  ................
f20:  4e ff 06 27 33 72 be f1 4e ff 06 27 33 72 be f1  N...3r..N...3r..
f30:  4e ff 06 27 33 72 be f1 00 00 00 00 00 00 00 00  N...3r..........
f40:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
f50:  00 00 0d 01 00 00 00 00 00 00 00 00 c9 8b c4 a0  ................
f60:  ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00  ................
f70:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
f80:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
f90:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
fa0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
fb0:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
fc0:  00 00 00 00 00 00 00 00 00 00 00 00 00 2e 01 00  ................
fd0:  07 20 04 73 65 6c 69 6e 75 78 75 6e 63 6f 6e 66  ...selinuxunconf
fe0:  69 6e 65 64 5f 75 3a 6f 62 6a 65 63 74 5f 72 3a  ined.u.object.r.
ff0:  66 69 6c 65 5f 74 3a 73 30 00 00 00 00 00 00 00  file.t.s0.......
xfs_db>

转载请保留地址:http://www.lenky.info/archives/2012/01/786http://lenky.info/?p=786


备注:如无特殊说明,文章内容均出自Lenky个人的真实理解而并非存心妄自揣测来故意愚人耳目。由于个人水平有限,虽力求内容正确无误,但仍然难免出错,请勿见怪,如果可以则请留言告之,并欢迎来讨论。另外值得说明的是,Lenky的部分文章以及部分内容参考借鉴了网络上各位网友的热心分享,特别是一些带有完全参考的文章,其后附带的链接内容也许更直接、更丰富,而我只是做了一下归纳&转述,在此也一并表示感谢。关于本站的所有技术文章,欢迎转载,但请遵从CC创作共享协议,而一些私人性质较强的心情随笔,建议不要转载。

法律:根据最新颁布的《信息网络传播权保护条例》,如果您认为本文章的任何内容侵犯了您的权利,请以Email或书面等方式告知,本站将及时删除相关内容或链接。

  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.