In article <19990825113518.d83273.kithrup.freebsd.cvs-...@freebie.lemis.com> 
you write:
>Correct.  I lock a stripe at a time.

What people need to realize is that Greg is doing this locking in user mode.

As such, he has two real options:

1.  Implement a vinum-specific ioctl that locks a region of a file at the
        device level, or

2.  Implement standard mandatory region locking, which damned near every
        OS in existence has, and which OSes which have existed for decades
        longer than unix has existed have always had.

Now, because this _is_ (currently) a vinum-specific requirement, doing (1) is
not all that unpalatable.  However, it's at the wrong level (device driver,
instead of file), and it is merely putting off the inevitable.

Or does nobody wish to have working Linux and Solaris/x86 compatibility after
all?

That reason, if nothing else, is reason to design it, so it gets done
correctly.  The fact that Greg thinks it's necessary and desirable (and he has
considerably more OS experience than a lot of the people who have decided it's
a stupid idea) should alone say a lot for the idea.



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to