Re: [PATCH] AFS: Implement file locking



David Howells napsal(a):
Implement file locking for AFS.

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Interplanetary segregation
    ... Other planets of various types could be utilized for those ... Venus is always going to be a wee bit warmer than 50 C, ... Brad Guth, Brad_Guth, Brad.Guth, BradGuth, BG / ?Guth Usenet? ...
    (sci.space.policy)
  • Re: moon landings were a hoax
    ... > Clearly you're not from this LLPOF and perpetrated cold-war Earth, ... view in case Brad Guth goes on a binge and demands to see it? ... Venus is not a STAR because, it's way too god damn bright and ... I am aware Venus isn't a star. ...
    (sci.space.history)
  • Re: A scientific approach to proving whether man landed on the moon - photogrammetric rectificat
    ... Brad Guth wrote: ... Venusian or visiting ET. ... The ESA's Venus EXPRESS mission has that lead melting environment by ... absolutely nifty physics and of terrific science since you'll have such ...
    (sci.geo.satellite-nav)
  • Re: Good-news, bad-news; 10th planet, protomoon or dead Earth
    ... and that of the Muslim oil which we're ... Of things Sirius, proto-moons, Venus, Earthly ETs & somewhat testy ... China and Brad Guth seem perfectly eye to eye, as well as do the Muslim ...
    (sci.space.policy)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)