Subject: Re: RFC: new mode bits in stat structure
To: None <tech-kern@NetBSD.ORG>
From: Ty Sarna <tsarna@endicor.com>
List: tech-kern
Date: 06/29/1998 18:20:42
In article <Pine.NEB.3.96.980629131748.28763T-100000@like.duh.org>,
Todd Vierling  <tv@pobox.com> wrote:
> I'll look into reversing this relationship in msdosfs to match the correct
> sense of the bit, because I may be making additions for pax that make use of

It looks like it gets this right:

>From msdosfs_vnops.c:342

	if ((dep->de_Attributes & ATTR_ARCHIVE) == 0)
		vap->va_flags |= SF_ARCHIVED;

However:

- adosfs always sets the flags to 0, ignoring the "a" bit on files.

- Nothing in the kernel ever seems to clear the archived bits when a
  file is modified.  (I'm thinking this should probably be done at the
  same place(s) the mtime is set)