Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 95 15:40:34 MDT
From:      terry@cs.weber.edu (Terry Lambert)
To:        bde@zeta.org.au (Bruce Evans)
Cc:        msmith@atrad.adelaide.edu.au, hackers@freebsd.org
Subject:   Re: Using space in a DOS filesystem
Message-ID:  <9508222140.AA01980@cs.weber.edu>
In-Reply-To: <199508222011.GAA21010@godzilla.zeta.org.au> from "Bruce Evans" at Aug 23, 95 06:11:26 am

next in thread | previous in thread | raw e-mail | index | archive | help
> >> > 1)	Look up the file
> >> > 2)	Assert a mandatory file lock
> >> 
> >> Instructions on this one would be needed 8)
> 
> >Open it O_EXCL in the device node exporting code.
> 
> In FreeBSD, unlike in Terryx :-), O_EXCL is only implemented for regular
> files.  The semantics of O_EXCL are specified by POSIX (only) for
> regular files.  They don't give mandatory locking.  Everything that
> opens the file would have to use O_EXCL to give advisory locking.

Why from the FAT perspective isn't a contiguous slab of blocks considered
a regular file?

We are asserting the lock against potential FAT users, not against
root clobbering himself.


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9508222140.AA01980>