diff options
author | avg <avg@FreeBSD.org> | 2013-02-08 07:44:15 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-02-08 07:44:15 +0000 |
commit | 8d86758ed0b3b27a9909f0b85ac5b6b6f2d173d4 (patch) | |
tree | 74b0d9cbd46081cd8395c3383f63abcddce0651b | |
parent | ce73fe0e978453dce99555cea3e42b111ab3bb45 (diff) | |
download | FreeBSD-src-8d86758ed0b3b27a9909f0b85ac5b6b6f2d173d4.zip FreeBSD-src-8d86758ed0b3b27a9909f0b85ac5b6b6f2d173d4.tar.gz |
zfs: update comments about zfid_long_t to match the FreeBSD definitions
MFC after: 1 week
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h index 63cfb00..3559f0d 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h @@ -110,7 +110,7 @@ typedef struct zfid_short { } zfid_short_t; /* - * Filesystems under .zfs/snapshot have a total file ID size of 22 bytes + * Filesystems under .zfs/snapshot have a total file ID size of 22[*] bytes * (including the length field). This makes files under .zfs/snapshot * accessible by NFSv3 and NFSv4, but not NFSv2. * @@ -120,10 +120,13 @@ typedef struct zfid_short { * 6 bytes object number (48 bits) * 4 bytes generation number (32 bits) * 6 bytes objset id (48 bits) - * 4 bytes currently just zero (32 bits) + * 4 bytes[**] currently just zero (32 bits) * * We reserve only 48 bits for the object number and objset id, as these are * the limits currently defined and imposed by the DMU. + * + * [*] 20 bytes on FreeBSD to fit into the size of struct fid. + * [**] 2 bytes on FreeBSD for the above reason. */ typedef struct zfid_long { zfid_short_t z_fid; |