get/set FAT filesystem attribute bits
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Nicholas Miell
Instead of adding another ioctl, wouldn't an xattr be more appropriate? For instance, system.fatattrs containing a text representation of the attribute bits.
i.e.
a = archive
Should be the "dump" attribute
Quoted 1 line
d = directory
It's the file type. Redundant.
Quoted 2 lines
h = hidden
r = read only
Should be reflected by the write bits. (Maybe there should be an option to set the file mode for "read only" files to something different than $rw_mode and not 0222.)
Quoted 1 line
s = system
Should be made "immutable", IMO
Quoted 1 line
v = volume
The volume bit of a file will never be set, since no file is a volume name. Setting a volume attribute should be disallowed, too, since it would cause fs corruption. This leaves us with no need to know or set 'v'.
You should rather make the volume name be similar to the e2fs volume label.
Followup to: <[email protected]> By author: Bodo Eggert <[email protected]> In newsgroup: linux.dev.kernel
Quoted 5 lines
Quoted 2 lines
a = archive
Should be the "dump" attribute
What dump attribute?
Quoted 6 lines
Quoted 2 lines
h = hidden
r = read onlyShould be reflected by the write bits. (Maybe there should be an option to set the file mode for "read only" files to something different than $rw_mode and not 0222.)
It is.
Quoted 3 lines
Quoted 1 line
s = system
Should be made "immutable", IMO
This is a filesystem mount option, but it's really unpleasant to set it. It's one of those things that seems to make sense, but really doesn't.
-hpa