linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: David Howells <dhowells@redhat.com>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org,
	linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] AFS: Implement file locking
Date: Fri, 25 May 2007 09:31:01 +0200	[thread overview]
Message-ID: <465690B5.2050602@gmail.com> (raw)
In-Reply-To: <20070524165554.22292.38887.stgit@warthog.cambridge.redhat.com>

David Howells napsal(a):
> Implement file locking for AFS.
> 
> Signed-off-by: David Howells <dhowells@redhat.com>
> ---
> 
>  fs/afs/Makefile    |    1 
>  fs/afs/afs.h       |    8 +
>  fs/afs/afs_fs.h    |    3 
>  fs/afs/callback.c  |    3 
>  fs/afs/dir.c       |    1 
>  fs/afs/file.c      |    2 
>  fs/afs/flock.c     |  558 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  fs/afs/fsclient.c  |  155 ++++++++++++++
>  fs/afs/internal.h  |   30 +++
>  fs/afs/main.c      |    1 
>  fs/afs/misc.c      |    1 
>  fs/afs/super.c     |    3 
>  fs/afs/vnode.c     |  130 +++++++++++-
>  include/linux/fs.h |    4 
>  14 files changed, 885 insertions(+), 15 deletions(-)
> 
> diff --git a/fs/afs/Makefile b/fs/afs/Makefile
> index 73ce561..a666710 100644
> --- a/fs/afs/Makefile
> +++ b/fs/afs/Makefile
> @@ -8,6 +8,7 @@ kafs-objs := \
>  	cmservice.o \
>  	dir.o \
>  	file.o \
> +	flock.o \
>  	fsclient.o \
>  	inode.o \
>  	main.o \
> diff --git a/fs/afs/afs.h b/fs/afs/afs.h
> index 2452579..c548aa3 100644
> --- a/fs/afs/afs.h
> +++ b/fs/afs/afs.h
> @@ -37,6 +37,13 @@ typedef enum {
>  	AFS_FTYPE_SYMLINK	= 3,
>  } afs_file_type_t;
>  
> +typedef enum {
> +	AFS_LOCK_READ		= 0,	/* read lock request */
> +	AFS_LOCK_WRITE		= 1,	/* write lock request */
> +} afs_lock_type_t;

Why typedef?

regards,
-- 
http://www.fi.muni.cz/~xslaby/            Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8  22A0 32CC 55C3 39D4 7A7E

  reply	other threads:[~2007-05-25  7:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-24 16:55 [PATCH] AFS: Implement file locking David Howells
2007-05-25  7:31 ` Jiri Slaby [this message]
2007-05-26  2:23 ` J. Bruce Fields
2007-05-26  3:11   ` Kyle Moffett
2007-05-27  0:12   ` David Howells
2007-05-26 23:55 ` David Howells
2007-05-27  2:25   ` J. Bruce Fields
2007-05-27  8:51   ` David Howells
2007-05-27 16:12     ` J. Bruce Fields
2007-05-29  9:34     ` David Howells
2007-05-29 20:08       ` J. Bruce Fields
2007-05-29 12:43     ` David Howells

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=465690B5.2050602@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=akpm@osdl.org \
    --cc=dhowells@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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).