Discarding lfa_flags after loading if not enabled by -lfa_flags "read:on". Introduced new -chattr mode --remove-lfa-flags

This commit is contained in:
2024-07-22 14:42:22 +02:00
parent 8397e587f3
commit 4de02bf9a2
9 changed files with 181 additions and 103 deletions

View File

@ -50,7 +50,7 @@
@c man .\" First parameter, NAME, should be all caps
@c man .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
@c man .\" other parameters are allowed: see man(7), man(1)
@c man .TH XORRISO 1 "Version 1.5.7, Jul 20, 2024"
@c man .TH XORRISO 1 "Version 1.5.7, Jul 21, 2024"
@c man .\" Please adjust this date whenever revising the manpage.
@c man .\"
@c man .\" Some roff macros, for reference:
@ -69,7 +69,7 @@
xorriso - creates, loads, manipulates and writes ISO 9660 filesystem images
with Rock Ridge extensions.
Copyright @copyright{} 2007 - 2023 Thomas Schmitt
Copyright @copyright{} 2007 - 2024 Thomas Schmitt
@quotation
Permission is granted to distribute this text freely.
@ -1318,10 +1318,13 @@ storing them in the emerging ISO 9660 filesystem as AAIP data, importing
them when an ISO filesystem gets loaded and bears such stored attributes,
and comparing them during comparisons between files on disk and in ISO.
@*
Mode "no_read" disables processing of the attributes from disk files. If no
other settings like -acl "on" or -xattr "on" require storing and importing
of AAIP data, then previously recorded file attributes can get kept out of
the next appended session.
Mode "no_read" disables reading of the attributes from disk files and
importing them when an ISO filesystem gets loaded. If other settings
like -acl "on" or -xattr "on" require storing of AAIP data, then file
attributes might still get stored in the emerging ISO. To surely exclude
any file attributes, run before -commit :
@*
-chattr_r --remove-lfa-flags / --
@*
Mode "restore" enables restoring of attributes when their file gets restored
and comparing them during comparisons between files on disk and in ISO.
@ -2405,11 +2408,16 @@ First letter '-' causes the given attribute flags to be unset. All other
attributes stay as they are. (Note that '-' is also accepted as symbolic
attribute letter which has no effect.)
@*
A special case is the mode string "--remove-lfa-flags" which causes the
Linux file attribute information to be removed from the file.
The -find test -has_lfa_flags "-" will then not match the file any more.
@*
First letter '.' causes all attribute flags except the given ones to be unset.
The given ones stay as they are. This is not a feature of program chattr(1).
@*
First letter '=' causes the given attribute flags to be set. All other
get unset.
get unset. Mode "=-" leads to all attribute flags being unset,
but -find test -has_lfa_flags "-" will match the file afterwards.
@*
Example: -chattr +sDu /my/file /my/other_file --
@c man .TP