summaryrefslogtreecommitdiff
tag namemetadir_2021-10-22 (7b4d3c30407af0311c3ea286b4c33209c3aedc4c)
tag date2021-10-22 16:45:27 -0700
tagged byDarrick J. Wong <djwong@kernel.org>
tagged objectcommit ff340f8a62...
xfs: metadata inode directories
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. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEUzaAxoMeQq6m2jMV+H93GTRKtOsFAmFzTRcACgkQ+H93GTRK tOsAtQ//eBShEVCylrCJYTrvLWf7UQYBcXc0YBvNW+UoABH/RujcKIz/xg4EwrSY /OclB1oROduYYZcRyKjqUbM5cAm+BMTiC/lrPHBfKzjWlCoIybkI7YgepgBYqLC+ bLIQ39r8kycSIuNh17jlKYNMA1/LperYqhutAJOmdkI1RqCyyFhx4c7sVwUjBER/ YdnYg3H1qXsIShOnz6RPS/kEDX0yC/zLscYZ7AXVbskZu6L5xMvfWtpdQHImyT5Q Ludf9oa5ljjIYXusA76PScsayPophhMEgDsUTSh0m5ovaBUmslXxNq+a9yfoEMj5 54b2+AH/UAJZj/6Wx6A3MSNEN+KntrfN8JOViKn8LtNDe0LU69Fn5/tBi8TIpIPZ Mid2kYHbitAzOLvz/P8eANPLfoYBxvh6ZabxZqVZBmZ7PKG1mG1GoDEWcIHLrAL3 tKvZj0KfgWp9emneCrTShxg7gR65ugBe39TZlijiezh/wsJc5c36h1eloEg24KaH gHiZT74ru/pG6K4pc/QSV9vlKia+k/ZnETtjTIB8e9Yg0OewhPtHoanP5Wqew/FP cUvrigxqQMIV0dyMeSUURap4W7hYvdtd5PQM9TtOigg9vouG5bKnDRRsPYVBppP6 id7AyX9ZrDmPfz+MPaLxOFORRuF0S2LdpO7vG9d7JQhNPghFDCc= =42L5 -----END PGP SIGNATURE-----