[File] [PATCH] Use the snapshot-invalid flag value

Steve Grubb sgrubb at redhat.com
Sun Aug 16 14:04:24 EDT 2026


The SF_SNAPINVAL table entry was guarded by SF_SNAPINVAL but stored SF_LOG. Systems exposing the snapshot-invalid flag could therefore report it as slog, report slog twice, or fail to compile when SF_LOG was unavailable.
    
Associate the ssnapinval label with SF_SNAPINVAL so the table tests the flag named by its feature guard.

diff --git a/src/fsmagic.c b/src/fsmagic.c
index 8fde5a3f..1c010cbd 100644
--- a/src/fsmagic.c
+++ b/src/fsmagic.c
@@ -120,7 +120,7 @@ static const struct vn sflags[] = {
 	{ SF_LOG, "slog" },
 #endif
 #ifdef SF_SNAPINVAL
-	{ SF_LOG, "ssnapinval" },
+	{ SF_SNAPINVAL, "ssnapinval" },
 #endif
 	{ 0, NULL },
 };





More information about the File mailing list