lkml.org 
[lkml]   [2005]   [Dec]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] nfsd/vfs.c: endianness fixes
    From: Al Viro <viro@zeniv.linux.org.uk>
    Date: 1135476096 -0500

    several failure exits return -E<something> instead of nfserr_<something>
    and vice versa.

    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

    ---

    fs/nfsd/vfs.c | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    38c78c8cfcd1be715fb280f83e2b1ce2f709abc8
    diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
    index af7c3c3..f237f98 100644
    --- a/fs/nfsd/vfs.c
    +++ b/fs/nfsd/vfs.c
    @@ -1134,7 +1134,7 @@ nfsd_create(struct svc_rqst *rqstp, stru
    "nfsd_create: parent %s/%s not locked!\n",
    dentry->d_parent->d_name.name,
    dentry->d_name.name);
    - err = -EIO;
    + err = nfserr_io;
    goto out;
    }
    }
    @@ -1592,7 +1592,7 @@ nfsd_rename(struct svc_rqst *rqstp, stru
    if ((ffhp->fh_export->ex_flags & NFSEXP_MSNFS) &&
    ((atomic_read(&odentry->d_count) > 1)
    || (atomic_read(&ndentry->d_count) > 1))) {
    - err = nfserr_perm;
    + err = -EPERM;
    } else
    #endif
    err = vfs_rename(fdir, odentry, tdir, ndentry);
    @@ -1663,7 +1663,7 @@ nfsd_unlink(struct svc_rqst *rqstp, stru
    #ifdef MSNFS
    if ((fhp->fh_export->ex_flags & NFSEXP_MSNFS) &&
    (atomic_read(&rdentry->d_count) > 1)) {
    - err = nfserr_perm;
    + err = -EPERM;
    } else
    #endif
    err = vfs_unlink(dirp, rdentry);
    --
    0.99.9.GIT
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-12-25 07:32    [W:0.022 / U:149.124 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site