[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] maint: cleanup operation of fs-magic-compare
From: |
Pádraig Brady |
Subject: |
[PATCH] maint: cleanup operation of fs-magic-compare |
Date: |
Tue, 27 Oct 2020 20:12:12 +0000 |
* src/local.mk: Ensure we map 2 hext digits to 4,
so that we don't output already handled Z3FOLD file system (0x33).
Also hide the generation command for src/fs.h.
---
src/local.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/local.mk b/src/local.mk
index 3894556f3..79c655036 100644
--- a/src/local.mk
+++ b/src/local.mk
@@ -511,7 +511,7 @@ src/fs-magic-compare: src/fs-magic src/fs-kernel-magic
src/fs-def
CLEANFILES += src/fs-def
src/fs-def: src/fs.h
- grep '^# *define ' src/fs.h | $(ASSORT) > $@-t && mv $@-t $@
+ @grep '^# *define ' src/fs.h | $(ASSORT) > $@-t && mv $@-t $@
# Massage bits of the statfs man page and definitions from
# /usr/include/linux/magic.h to be in a form consistent with what's in fs.h.
@@ -525,6 +525,7 @@ fs_normalize_perl_subst = \
-e 's/AFS_FS/KAFS/;' \
-e 's/(_SUPER)?_MAGIC//;' \
-e 's/\s+0x(\S+)/" 0x" . uc $$1/e;' \
+ -e 's/(\s+0x)(\X{2})\b/$${1}00$$2/;' \
-e 's/(\s+0x)(\X{3})\b/$${1}0$$2/;' \
-e 's/(\s+0x)(\X{6})\b/$${1}00$$2/;' \
-e 's/(\s+0x)(\X{7})\b/$${1}0$$2/;' \
--
2.26.2
- [PATCH] maint: cleanup operation of fs-magic-compare,
Pádraig Brady <=