Searched refs:accmode (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/fs/nfsd/
H A Dnfs4proc.c188 do_open_permission(struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open, int accmode) do_open_permission() argument
196 accmode |= NFSD_MAY_READ_IF_EXEC; do_open_permission()
199 accmode |= NFSD_MAY_READ; do_open_permission()
201 accmode |= (NFSD_MAY_WRITE | NFSD_MAY_TRUNC); do_open_permission()
203 accmode |= NFSD_MAY_WRITE; do_open_permission()
205 status = fh_verify(rqstp, current_fh, S_IFREG, accmode); do_open_permission()
240 int accmode; do_open_lookup() local
305 accmode = NFSD_MAY_NOP; do_open_lookup()
308 accmode |= NFSD_MAY_OWNER_OVERRIDE; do_open_lookup()
309 status = do_open_permission(rqstp, *resfh, open, accmode); do_open_lookup()
320 int accmode = 0; do_open_fhandle() local
342 accmode = NFSD_MAY_OWNER_OVERRIDE; do_open_fhandle()
344 status = do_open_permission(rqstp, current_fh, open, accmode); do_open_fhandle()
1259 int accmode; nfsd4_layoutget() local
1263 accmode = NFSD_MAY_READ; nfsd4_layoutget()
1266 accmode = NFSD_MAY_READ | NFSD_MAY_WRITE; nfsd4_layoutget()
1275 nfserr = fh_verify(rqstp, current_fh, 0, accmode); nfsd4_layoutget()
H A Dvfs.c403 int accmode = NFSD_MAY_SATTR; nfsd_setattr() local
411 accmode |= NFSD_MAY_WRITE|NFSD_MAY_OWNER_OVERRIDE; nfsd_setattr()
419 err = fh_verify(rqstp, fhp, ftype, accmode); nfsd_setattr()
/linux-4.1.27/drivers/s390/char/
H A Dvmur.c695 unsigned short accmode; ur_open() local
698 accmode = file->f_flags & O_ACCMODE; ur_open()
700 if (accmode == O_RDWR) ur_open()
732 if (((accmode == O_RDONLY) && (urd->class != DEV_CLASS_UR_I)) || ur_open()
733 ((accmode == O_WRONLY) && (urd->class != DEV_CLASS_UR_O))) { ur_open()

Completed in 126 milliseconds