diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-10-13 11:37:11 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-10-17 17:50:08 -0400 |
commit | 856121b2e83bd64bffdc8de449d24c9295e92ff3 (patch) | |
tree | d60a777368fa48120a878407dd7abdcc780d2eba /fs/nfsd/vfs.h | |
parent | 4cdc951b8611de4ce25e35c9fb8c0656150c9245 (diff) |
nfsd4: warn on open failure after create
If we create the object and then return failure to the client, we're
left with an unexpected file in the filesystem.
I'm trying to eliminate such cases but not 100% sure I have so an
assertion might be helpful for now.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/vfs.h')
-rw-r--r-- | fs/nfsd/vfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h index 503f3bf11abd..3f54ad03bb2b 100644 --- a/fs/nfsd/vfs.h +++ b/fs/nfsd/vfs.h | |||
@@ -62,7 +62,7 @@ __be32 nfsd_access(struct svc_rqst *, struct svc_fh *, u32 *, u32 *); | |||
62 | __be32 do_nfsd_create(struct svc_rqst *, struct svc_fh *, | 62 | __be32 do_nfsd_create(struct svc_rqst *, struct svc_fh *, |
63 | char *name, int len, struct iattr *attrs, | 63 | char *name, int len, struct iattr *attrs, |
64 | struct svc_fh *res, int createmode, | 64 | struct svc_fh *res, int createmode, |
65 | u32 *verifier, int *truncp, int *created); | 65 | u32 *verifier, bool *truncp, bool *created); |
66 | __be32 nfsd_commit(struct svc_rqst *, struct svc_fh *, | 66 | __be32 nfsd_commit(struct svc_rqst *, struct svc_fh *, |
67 | loff_t, unsigned long); | 67 | loff_t, unsigned long); |
68 | #endif /* CONFIG_NFSD_V3 */ | 68 | #endif /* CONFIG_NFSD_V3 */ |