linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Petr Vandrovec" <VANDROVE@vc.cvut.cz>
To: Matthew Wilcox <willy@debian.org>
Cc: Christoph Hellwig <hch@infradead.org>,
	linux-fsdevel@vger.kernel.org, sfrench@us.ibm.com
Subject: Re: CIFS VFS
Date: Tue, 1 Oct 2002 22:00:39 +0200	[thread overview]
Message-ID: <363C9E44237@vcnet.vc.cvut.cz> (raw)

On  1 Oct 02 at 19:42, Matthew Wilcox wrote:
> 
> On Tue, Oct 01, 2002 at 12:30:28PM -0500, Steven French wrote:
> > 8) Byte Range and File locks
> 
> there's some changes in progress around file locking in 2.5... let
> me know your requirements.

If I can place ncpfs's requirements here... 

For ncpfs easiest interface would be one which:

(1) does not merge locks; Netware does not do that, you must release
    exact records you locked, otherwise unlock will fail.
    
(2) first resolve locks locally, and then, if you succesfully obtained 
    lock locally, consult filesystem's lock method; ncpfs must do it 
    that way because of there is only one server filehandle for each 
    opened file, and so from server's view there is only one entity on 
    connection.

I would be also satisfied with interface F_GETLK uses: call default
posix_test_lock only if filesystem returned LOCK_USE_CLNT: in such
case filesystem can return < 0 on failure, LOCK_USE_CLNT when
lock succeeded, but kernel should do local bookkeeping itself,
or 0 when lock succeeded, and inode's i_flock was already updated.

If current method (first call filesystem, then obtain lock locally) is 
going to stay, then I believe that we should call F_UNLOCK when 
filesystem's lock succeeded, but local posix_lock_file failed (either 
due to EAGAIN or EINTR or ...). Otherwise server is never notified
that lock was not acquired by workstation, and will be never released.

                                                    Petr Vandrovec
                                                    vandrove@vc.cvut.cz
                                                    

             reply	other threads:[~2002-10-01 20:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01 20:00 Petr Vandrovec [this message]
2002-10-02  2:17 ` CIFS VFS Matthew Wilcox
2002-10-02  2:45   ` Petr Vandrovec
  -- strict thread matches above, loose matches on Subject: below --
2002-10-01 23:38 Steven French
2002-10-01 17:30 Steven French
2002-10-01 18:42 ` Matthew Wilcox
2002-10-02 22:13 ` Urban Widmark
2002-10-01  4:25 Steven French
2002-10-01 10:33 ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=363C9E44237@vcnet.vc.cvut.cz \
    --to=vandrove@vc.cvut.cz \
    --cc=hch@infradead.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=sfrench@us.ibm.com \
    --cc=willy@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).