Skip to contentSkip to conversation

get/set FAT filesystem attribute bits

PATCH Bodo Eggert 2 participants 2 messages Jan 4, 2005 2 messages not in the archive

lore
Share & tools
lore

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]

#2 lore raw
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.

#3 lore raw
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 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.)

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