From owner-freebsd-questions Mon Jan 2 15:37:31 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id PAA06902 for questions-outgoing; Mon, 2 Jan 1995 15:37:31 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id PAA06896; Mon, 2 Jan 1995 15:37:30 -0800 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA02074; Mon, 2 Jan 95 16:31:08 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9501022331.AA02074@cs.weber.edu> Subject: Re: Why does ls report wrong creation date on symlinks? To: bde@zeta.org.au (Bruce Evans) Date: Mon, 2 Jan 95 16:31:07 MST Cc: crtb@upcoming.dcrt.nih.gov, freebsd-bugs@freebsd.org, freebsd-questions@freebsd.org In-Reply-To: <199412310244.NAA19380@godzilla.zeta.org.au> from "Bruce Evans" at Dec 31, 94 01:44:08 pm X-Mailer: ELM [version 2.4dev PL52] Sender: questions-owner@freebsd.org Precedence: bulk > >It is precisely the fact that a DOS file system can not store all of > >the date information required by POSIX that makes it impossible to > >produce a POSIX compliant DOS file system. The DOS FS simply can > >not comply with the POSIX "shall mark for update" and "shall update" > >directives. > > >POSIX leaves a loophole, allowing read-only media to ignore the > >update requirements -- so you can be technically compliant if you > >mount the disk read-only. Very useful. 8-). > > Pretending that directories were modified at the current time breaks > even this :-). Actually, no it doesn't. POSIX doesn't require the information be accurate. POSIX only required that the information be updated in certain circumstances. Directories, on the other hand, do not even need to be considered as files at all... the update semantics are based on the opendir/readdir. The question is whether or not it is legal to make a distinction between a file descriptor being used to access a directory and one being used to access a file, such that the first is not considered a file access. This is, it turns out, legal. 8-). Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.