Displaying 3 results from an estimated 3 matches for "di_pad".
Did you mean:
di_pad2
2020 Jul 17
2
hardlinks
Il 17/07/20 10:54, Karl Vogel ha scritto:
> It depends on the size of the variables in the structure used by the
> stat() call. In ext4, the "links" variable is an unsigned 16-bit integer,
> so you have your limit of 64k or so. I've worked with systems where
> the limit was a signed 16-bit integer, so it maxed out at 32k.
>
> XFS may be a full 32-bit integer, so
2020 Jul 17
0
hardlinks
...ctories. When the number exceeds 65535,the inode is converted to v2
and the link count is stored in di_nlink.
di_nlink:
Specifies the number of links to the inode from directories. This is
maintained for both inode versions for current versions of XFS. Prior to
v2 inodes, this field was part of di_pad.
So, the effect is that whatever version you start with, adding more than
65535 links will force it to version 2 and give you up to 4,294,967,295
links!
--
J Martin Rushton MBCS
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...t di_uid; /* owner's user id */
+ uint32_t di_gid; /* owner's group id */
+ uint32_t di_nlink; /* number of links to file */
+ uint16_t di_projid_lo; /* lower part of owner's project id */
+ uint16_t di_projid_hi; /* higher part owner's project id */
+ uint8_t di_pad[6]; /* unused, zeroed space */
+ uint16_t di_flushiter; /* incremented on flush */
+ xfs_timestamp_t di_atime; /* time last accessed */
+ xfs_timestamp_t di_mtime; /* time last modified */
+ xfs_timestamp_t di_ctime; /* time created/inode modified */
+ uint64_t di_size; /* number o...