跳转到主内容

如何从文件句柄上的数据包跟踪中查找卷 FSID 、目录 ID 、 inode 和文件名

Views:
10
Visibility:
Public
Votes:
0
Category:
data-ontap-8
Specialty:
nfs
Last Updated:

适用于

集群模式 Data ONTAP 8

说明

本文介绍了从文件句柄上的数据包跟踪中查找卷 fsid, 目录 id, inode 和文件名的过程。

  • Linux 文件句柄

Length  Bytes     Field Name     Meaning                       Typical Values

1     1         fb_version      NFS version                    Always 1

1     2      fb_auth_type    Authentication  method          Always 0

1       3         fb_fsid_type   File system ID encoding method      Always 0

1       4      fb_fileid_type  File ID encoding method               Always either 0, 1, or 2

4       5-8     xdev        Major/Minor number of exported device Major number 3 (IDE), 8 (SCSI)

4       9-12     xino        Export inode number           Almost always 2

4       13-16    ino             Inode number                          2 for /, 19 for /home/foo

4       17-20    gen_no          Generation number                     0xFF16DDF1, 0x3F6AE3C0

4       21-24    par_ino_no      Parent's inode number          2 for /, 19 for /home

8       25-32                     Padding for NFSv2                     Always 0

32      33-64             Unused by Linux 

  • FreeBSD 文件句柄 

Length  Bytes  Field Name    Meaning                        Typical Values

8     1-8    fsid          File system                         ID 0x3F607F14 1C47F86E

2     9-10   fid_len       Length of the rest of the structure Always 12

2       11-12  fid_reserved  Word alignment             Always 0

4       13-16  ufid_ino      Inode Number              3, 47

4       17-20  ufid_gen      Inode Generation Number        0x0C8F960C, 0x9CFF85C7

12      21-32                Padding for NFSv2           Always 0

32      33-64                Unused by FreeBSD 

CUSTOMER EXCLUSIVE CONTENT

Registered NetApp customers get unlimited access to our dynamic Knowledge Base.

New authoritative content is published and updated each day by our team of experts.

Current Customer or Partner?

Sign In for unlimited access

New to NetApp?

Learn more about our award-winning Support