From f449c5100c5cda13f918c1dfb2c3b137e6a93548 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 27 May 2024 20:22:57 -0400 Subject: [PATCH] lib: Add expansion comments to header Tracing through these xattrs, I found it helpful to have comments with the expansion. Signed-off-by: Colin Walters --- libcomposefs/lcfs-internal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libcomposefs/lcfs-internal.h b/libcomposefs/lcfs-internal.h index e6b0f8e..9f6add2 100644 --- a/libcomposefs/lcfs-internal.h +++ b/libcomposefs/lcfs-internal.h @@ -34,25 +34,39 @@ typedef int errint_t; #define OVERLAY_XATTR_USER_PREFIX "user." #define OVERLAY_XATTR_TRUSTED_PREFIX "trusted." #define OVERLAY_XATTR_PARTIAL_PREFIX "overlay." +// trusted.overlay. #define OVERLAY_XATTR_PREFIX \ OVERLAY_XATTR_TRUSTED_PREFIX OVERLAY_XATTR_PARTIAL_PREFIX +// user.overlay. #define OVERLAY_XATTR_USERXATTR_PREFIX \ OVERLAY_XATTR_USER_PREFIX OVERLAY_XATTR_PARTIAL_PREFIX +// trusted.overlay.overlay. #define OVERLAY_XATTR_ESCAPE_PREFIX OVERLAY_XATTR_PREFIX "overlay." +// trusted.overlay.metacopy #define OVERLAY_XATTR_METACOPY OVERLAY_XATTR_PREFIX "metacopy" +// trusted.overlay.redirect #define OVERLAY_XATTR_REDIRECT OVERLAY_XATTR_PREFIX "redirect" +// trusted.overlay.whiteout #define OVERLAY_XATTR_WHITEOUT OVERLAY_XATTR_PREFIX "whiteout" +// trusted.overlay.whiteouts #define OVERLAY_XATTR_WHITEOUTS OVERLAY_XATTR_PREFIX "whiteouts" +// trusted.overlay.opaque #define OVERLAY_XATTR_OPAQUE OVERLAY_XATTR_PREFIX "opaque" +// trusted.overlay.overlay.whiteout #define OVERLAY_XATTR_ESCAPED_WHITEOUT OVERLAY_XATTR_ESCAPE_PREFIX "whiteout" +// trusted.overlay.overlay.whiteouts #define OVERLAY_XATTR_ESCAPED_WHITEOUTS OVERLAY_XATTR_ESCAPE_PREFIX "whiteouts" +// trusted.overlay.overlay.opaque #define OVERLAY_XATTR_ESCAPED_OPAQUE OVERLAY_XATTR_ESCAPE_PREFIX "opaque" +// user.overlay.whiteout #define OVERLAY_XATTR_USERXATTR_WHITEOUT \ OVERLAY_XATTR_USERXATTR_PREFIX "whiteout" +// user.overlay.whiteouts #define OVERLAY_XATTR_USERXATTR_WHITEOUTS \ OVERLAY_XATTR_USERXATTR_PREFIX "whiteouts" +// user.overlay.opaque #define OVERLAY_XATTR_USERXATTR_OPAQUE OVERLAY_XATTR_USERXATTR_PREFIX "opaque" #define ALIGN_TO(_offset, _align_size) \