summaryrefslogtreecommitdiffstats
tag namemetadir_2024-05-10 (28ba119a9155788c2f623e38c4fe7577dd72867c)
tag date2024-05-10 22:59:59 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit d6ced63849...
downloadxfs-linux-metadir_2024-05-10.tar.gz
xfs: metadata inode directories [v2.0 29/53]
This series delivers a new feature -- metadata inode directories. This is a separate directory tree (rooted in the superblock) that contains only inodes that contain filesystem metadata. Different metadata objects can be looked up with regular paths. We start by creating xfs_imeta_* functions to mediate access to metadata inode pointers. This enables the imeta code to abstract inode pointers, whether they're the classic five in the superblock, or the much more complex directory tree. All current users of metadata inodes (rt+quota) are converted to use the boilerplate code. Next, we define the metadir on-disk format, which consists of marking inodes with a new iflag that says they're metadata. This we use to prevent bulkstat and friends from ever getting their hands on fs metadata. Finally, we implement metadir operations so that clients can create, delete, zap, and look up metadata inodes by path. Beware that much of this code is only lightly used, because the five current users of metadata inodes don't tend to change them very often. This is likely to change if and when the subvolume and multiple-rt-volume features get written/merged/etc. This has been running on the djcloud for months with no problems. Enjoy! Signed-off-by: Darrick J. Wong <djwong@kernel.org> -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQ2qTKExjcn+O1o2YRKO3ySh0YRpgUCZj8JXwAKCRBKO3ySh0YR piogAQCXTYZyiqStKrnKHgVXJf28BiwV1Qe+bNRvdw7sVsVORQEAvYIVMdzEs99a uxftrUJHUSNEKxiXzcl0V8jZRcpdbwE= =5e8Z -----END PGP SIGNATURE-----