Re: Meaning of file flags

2023-05-24 Thread Jan Schaumann
Greg Troxel wrote: > So perhaps we should describe it as > > archive bit set in underlying foreign filesystem > > and perhaps deny setting it in filesystems that don't implement an > archive bit. > > (Probably, the use of this bit is now historical Yes, that's what it seems like. I've comm

Re: Meaning of file flags

2023-05-23 Thread Rocky Hotas
On mag 23 7:56, Greg Troxel wrote: > I just pulled out "The Design and Implementation of the 4.4BSD Operating > System". It talks about immutable, append-only, and nodump on page 263. > There is no mention of "archive". [...] I can not give much contribution to this, but thank you so much for yo

Re: Meaning of file flags

2023-05-23 Thread Greg Troxel
I just pulled out "The Design and Implementation of the 4.4BSD Operating System". It talks about immutable, append-only, and nodump on page 263. There is no mention of "archive". The book is also clear about 16 bits of user flags and 16 bits of system flags. chflags(1) is confusing about this,

Re: Meaning of file flags

2023-05-23 Thread Greg Troxel
Rocky Hotas writes: >> +The >> +.Va arch >> +flag is only used in connection with certain >> +filesystems (e.g., MS-DOS), where it indicates whether >> +a file has been modified since it was last backed up. I find that very surprising. AIUI, these flags date from 4.4BSD, and there was not a str

Re: Meaning of file flags

2023-05-23 Thread Rocky Hotas
First of all, thanks to both for your help. The meaning of nodump is clear now. On mag 22 18:45, Jan Schaumann wrote: > > Does the attached diff help? Yes! I still have a couple of doubts. The difference between "system flag" and "user flag". The former can be applied by the super-user and the l

Re: Meaning of file flags

2023-05-22 Thread Jan Schaumann
Rocky Hotas wrote: > > > where short descriptions of flags are shown. However, I still can't > understand the meaning of `nodump' and `arch'. > Is there another reference/document/message about them? Does the attached diff hel

Re: Meaning of file flags

2023-05-22 Thread Greg Troxel
Rocky Hotas writes: > I still can't understand the meaning of `nodump' and `arch'. I can help with nodump... man 2 chflags contains UF_NODUMP Do not dump the file. and dump(8) has an -h flag to respect the nodump flag. Basically, if you use -h0 when calling dump, then files t

Meaning of file flags

2023-05-22 Thread Rocky Hotas
Hello! In a recent and very interesting thread here, file flags are mentioned. Manpage chflags(1) shows their list. But what about their meaning? I've found this old message: where short descriptions of flags are shown. However,