Lines Matching full:status

219 	__be32 *p, status;  in nfsd4_decode_component4()  local
226 status = check_filename((char *)p, *lenp); in nfsd4_decode_component4()
227 if (status) in nfsd4_decode_component4()
228 return status; in nfsd4_decode_component4()
283 ssize_t status; in nfsd4_decode_bitmap4() local
285 status = xdr_stream_decode_uint32_array(argp->xdr, bmval, bmlen); in nfsd4_decode_bitmap4()
286 return status == -EBADMSG ? nfserr_bad_xdr : nfs_ok; in nfsd4_decode_bitmap4()
292 __be32 *p, status; in nfsd4_decode_nfsace4() local
309 status = nfs_ok; in nfsd4_decode_nfsace4()
311 status = nfsd_map_name_to_gid(argp->rqstp, in nfsd4_decode_nfsace4()
314 status = nfsd_map_name_to_uid(argp->rqstp, in nfsd4_decode_nfsace4()
317 return status; in nfsd4_decode_nfsace4()
325 __be32 status; in nfsd4_decode_acl() local
345 status = nfsd4_decode_nfsace4(argp, ace); in nfsd4_decode_acl()
346 if (status) in nfsd4_decode_acl()
347 return status; in nfsd4_decode_acl()
387 __be32 *p, status; in nfsd4_decode_fattr4() local
390 status = nfsd4_decode_bitmap4(argp, bmval, bmlen); in nfsd4_decode_fattr4()
391 if (status) in nfsd4_decode_fattr4()
415 status = nfsd4_decode_acl(argp, acl); in nfsd4_decode_fattr4()
416 if (status) in nfsd4_decode_fattr4()
417 return status; in nfsd4_decode_fattr4()
437 status = nfsd_map_name_to_uid(argp->rqstp, (char *)p, length, in nfsd4_decode_fattr4()
439 if (status) in nfsd4_decode_fattr4()
440 return status; in nfsd4_decode_fattr4()
451 status = nfsd_map_name_to_gid(argp->rqstp, (char *)p, length, in nfsd4_decode_fattr4()
453 if (status) in nfsd4_decode_fattr4()
454 return status; in nfsd4_decode_fattr4()
464 status = nfsd4_decode_nfstime4(argp, &iattr->ia_atime); in nfsd4_decode_fattr4()
465 if (status) in nfsd4_decode_fattr4()
466 return status; in nfsd4_decode_fattr4()
481 status = nfsd4_decode_nfstime4(argp, &ts); in nfsd4_decode_fattr4()
482 if (status) in nfsd4_decode_fattr4()
483 return status; in nfsd4_decode_fattr4()
492 status = nfsd4_decode_nfstime4(argp, &iattr->ia_mtime); in nfsd4_decode_fattr4()
493 if (status) in nfsd4_decode_fattr4()
494 return status; in nfsd4_decode_fattr4()
507 status = nfsd4_decode_security_label(argp, label); in nfsd4_decode_fattr4()
508 if (status) in nfsd4_decode_fattr4()
509 return status; in nfsd4_decode_fattr4()
582 __be32 status; in nfsd4_decode_state_owner4() local
584 status = nfsd4_decode_clientid4(argp, clientid); in nfsd4_decode_state_owner4()
585 if (status) in nfsd4_decode_state_owner4()
586 return status; in nfsd4_decode_state_owner4()
617 __be32 status; in nfsd4_decode_layoutreturn4() local
627 status = nfsd4_decode_stateid4(argp, &lrp->lr_sid); in nfsd4_decode_layoutreturn4()
628 if (status) in nfsd4_decode_layoutreturn4()
629 return status; in nfsd4_decode_layoutreturn4()
671 __be32 *p, status; in nfsd4_decode_authsys_parms() local
676 status = nfsd4_decode_ignored_string(argp, 255); in nfsd4_decode_authsys_parms()
677 if (status) in nfsd4_decode_authsys_parms()
678 return status; in nfsd4_decode_authsys_parms()
711 __be32 status; in nfsd4_decode_gss_cb_handles4() local
721 status = nfsd4_decode_ignored_string(argp, 0); in nfsd4_decode_gss_cb_handles4()
722 if (status) in nfsd4_decode_gss_cb_handles4()
723 return status; in nfsd4_decode_gss_cb_handles4()
725 status = nfsd4_decode_ignored_string(argp, 0); in nfsd4_decode_gss_cb_handles4()
726 if (status) in nfsd4_decode_gss_cb_handles4()
727 return status; in nfsd4_decode_gss_cb_handles4()
737 __be32 status; in nfsd4_decode_cb_sec() local
758 status = nfsd4_decode_authsys_parms(argp, cbs); in nfsd4_decode_cb_sec()
759 if (status) in nfsd4_decode_cb_sec()
760 return status; in nfsd4_decode_cb_sec()
763 status = nfsd4_decode_gss_cb_handles4(argp, cbs); in nfsd4_decode_cb_sec()
764 if (status) in nfsd4_decode_cb_sec()
765 return status; in nfsd4_decode_cb_sec()
816 __be32 *p, status; in nfsd4_decode_create() local
845 status = nfsd4_decode_component4(argp, &create->cr_name, in nfsd4_decode_create()
847 if (status) in nfsd4_decode_create()
848 return status; in nfsd4_decode_create()
849 status = nfsd4_decode_fattr4(argp, create->cr_bmval, in nfsd4_decode_create()
853 if (status) in nfsd4_decode_create()
854 return status; in nfsd4_decode_create()
887 __be32 status; in nfsd4_decode_open_to_lock_owner4() local
891 status = nfsd4_decode_stateid4(argp, &lock->lk_new_open_stateid); in nfsd4_decode_open_to_lock_owner4()
892 if (status) in nfsd4_decode_open_to_lock_owner4()
893 return status; in nfsd4_decode_open_to_lock_owner4()
904 __be32 status; in nfsd4_decode_exist_lock_owner4() local
906 status = nfsd4_decode_stateid4(argp, &lock->lk_old_lock_stateid); in nfsd4_decode_exist_lock_owner4()
907 if (status) in nfsd4_decode_exist_lock_owner4()
908 return status; in nfsd4_decode_exist_lock_owner4()
964 __be32 status; in nfsd4_decode_locku() local
972 status = nfsd4_decode_stateid4(argp, &locku->lu_stateid); in nfsd4_decode_locku()
973 if (status) in nfsd4_decode_locku()
974 return status; in nfsd4_decode_locku()
993 __be32 status; in nfsd4_decode_createhow4() local
1000 status = nfsd4_decode_fattr4(argp, open->op_bmval, in nfsd4_decode_createhow4()
1004 if (status) in nfsd4_decode_createhow4()
1005 return status; in nfsd4_decode_createhow4()
1008 status = nfsd4_decode_verifier4(argp, &open->op_verf); in nfsd4_decode_createhow4()
1009 if (status) in nfsd4_decode_createhow4()
1010 return status; in nfsd4_decode_createhow4()
1015 status = nfsd4_decode_verifier4(argp, &open->op_verf); in nfsd4_decode_createhow4()
1016 if (status) in nfsd4_decode_createhow4()
1017 return status; in nfsd4_decode_createhow4()
1018 status = nfsd4_decode_fattr4(argp, open->op_bmval, in nfsd4_decode_createhow4()
1022 if (status) in nfsd4_decode_createhow4()
1023 return status; in nfsd4_decode_createhow4()
1035 __be32 status; in nfsd4_decode_openflag4() local
1043 status = nfsd4_decode_createhow4(argp, open); in nfsd4_decode_openflag4()
1044 if (status) in nfsd4_decode_openflag4()
1045 return status; in nfsd4_decode_openflag4()
1120 __be32 status; in nfsd4_decode_open_claim4() local
1127 status = nfsd4_decode_component4(argp, &open->op_fname, in nfsd4_decode_open_claim4()
1129 if (status) in nfsd4_decode_open_claim4()
1130 return status; in nfsd4_decode_open_claim4()
1137 status = nfsd4_decode_stateid4(argp, &open->op_delegate_stateid); in nfsd4_decode_open_claim4()
1138 if (status) in nfsd4_decode_open_claim4()
1139 return status; in nfsd4_decode_open_claim4()
1140 status = nfsd4_decode_component4(argp, &open->op_fname, in nfsd4_decode_open_claim4()
1142 if (status) in nfsd4_decode_open_claim4()
1143 return status; in nfsd4_decode_open_claim4()
1154 status = nfsd4_decode_stateid4(argp, &open->op_delegate_stateid); in nfsd4_decode_open_claim4()
1155 if (status) in nfsd4_decode_open_claim4()
1156 return status; in nfsd4_decode_open_claim4()
1169 __be32 status; in nfsd4_decode_open() local
1177 status = nfsd4_decode_share_access(argp, &open->op_share_access, in nfsd4_decode_open()
1179 if (status) in nfsd4_decode_open()
1180 return status; in nfsd4_decode_open()
1181 status = nfsd4_decode_share_deny(argp, &open->op_share_deny); in nfsd4_decode_open()
1182 if (status) in nfsd4_decode_open()
1183 return status; in nfsd4_decode_open()
1184 status = nfsd4_decode_state_owner4(argp, &open->op_clientid, in nfsd4_decode_open()
1186 if (status) in nfsd4_decode_open()
1187 return status; in nfsd4_decode_open()
1188 status = nfsd4_decode_openflag4(argp, open); in nfsd4_decode_open()
1189 if (status) in nfsd4_decode_open()
1190 return status; in nfsd4_decode_open()
1199 __be32 status; in nfsd4_decode_open_confirm() local
1204 status = nfsd4_decode_stateid4(argp, &open_conf->oc_req_stateid); in nfsd4_decode_open_confirm()
1205 if (status) in nfsd4_decode_open_confirm()
1206 return status; in nfsd4_decode_open_confirm()
1220 __be32 status; in nfsd4_decode_open_downgrade() local
1223 status = nfsd4_decode_stateid4(argp, &open_down->od_stateid); in nfsd4_decode_open_downgrade()
1224 if (status) in nfsd4_decode_open_downgrade()
1225 return status; in nfsd4_decode_open_downgrade()
1229 status = nfsd4_decode_share_access(argp, &open_down->od_share_access, in nfsd4_decode_open_downgrade()
1231 if (status) in nfsd4_decode_open_downgrade()
1232 return status; in nfsd4_decode_open_downgrade()
1261 __be32 status; in nfsd4_decode_read() local
1264 status = nfsd4_decode_stateid4(argp, &read->rd_stateid); in nfsd4_decode_read()
1265 if (status) in nfsd4_decode_read()
1266 return status; in nfsd4_decode_read()
1279 __be32 status; in nfsd4_decode_readdir() local
1284 status = nfsd4_decode_verifier4(argp, &readdir->rd_verf); in nfsd4_decode_readdir()
1285 if (status) in nfsd4_decode_readdir()
1286 return status; in nfsd4_decode_readdir()
1310 __be32 status; in nfsd4_decode_rename() local
1313 status = nfsd4_decode_component4(argp, &rename->rn_sname, &rename->rn_snamelen); in nfsd4_decode_rename()
1314 if (status) in nfsd4_decode_rename()
1315 return status; in nfsd4_decode_rename()
1339 __be32 status; in nfsd4_decode_setattr() local
1342 status = nfsd4_decode_stateid4(argp, &setattr->sa_stateid); in nfsd4_decode_setattr()
1343 if (status) in nfsd4_decode_setattr()
1344 return status; in nfsd4_decode_setattr()
1355 __be32 *p, status; in nfsd4_decode_setclientid() local
1362 status = nfsd4_decode_verifier4(argp, &setclientid->se_verf); in nfsd4_decode_setclientid()
1363 if (status) in nfsd4_decode_setclientid()
1364 return status; in nfsd4_decode_setclientid()
1365 status = nfsd4_decode_opaque(argp, &setclientid->se_name); in nfsd4_decode_setclientid()
1366 if (status) in nfsd4_decode_setclientid()
1367 return status; in nfsd4_decode_setclientid()
1400 __be32 status; in nfsd4_decode_setclientid_confirm() local
1405 status = nfsd4_decode_clientid4(argp, &scd_c->sc_clientid); in nfsd4_decode_setclientid_confirm()
1406 if (status) in nfsd4_decode_setclientid_confirm()
1407 return status; in nfsd4_decode_setclientid_confirm()
1416 __be32 *p, status; in nfsd4_decode_verify() local
1420 status = nfsd4_decode_bitmap4(argp, verify->ve_bmval, in nfsd4_decode_verify()
1422 if (status) in nfsd4_decode_verify()
1423 return status; in nfsd4_decode_verify()
1444 __be32 status; in nfsd4_decode_write() local
1446 status = nfsd4_decode_stateid4(argp, &write->wr_stateid); in nfsd4_decode_write()
1447 if (status) in nfsd4_decode_write()
1448 return status; in nfsd4_decode_write()
1471 __be32 status; in nfsd4_decode_release_lockowner() local
1476 status = nfsd4_decode_state_owner4(argp, &rlockowner->rl_clientid, in nfsd4_decode_release_lockowner()
1478 if (status) in nfsd4_decode_release_lockowner()
1479 return status; in nfsd4_decode_release_lockowner()
1502 __be32 status; in nfsd4_decode_bind_conn_to_session() local
1505 status = nfsd4_decode_sessionid4(argp, &bcts->sessionid); in nfsd4_decode_bind_conn_to_session()
1506 if (status) in nfsd4_decode_bind_conn_to_session()
1507 return status; in nfsd4_decode_bind_conn_to_session()
1520 __be32 status; in nfsd4_decode_state_protect_ops() local
1522 status = nfsd4_decode_bitmap4(argp, exid->spo_must_enforce, in nfsd4_decode_state_protect_ops()
1524 if (status) in nfsd4_decode_state_protect_ops()
1526 status = nfsd4_decode_bitmap4(argp, exid->spo_must_allow, in nfsd4_decode_state_protect_ops()
1528 if (status) in nfsd4_decode_state_protect_ops()
1543 __be32 status; in nfsd4_decode_ssv_sp_parms() local
1546 status = nfsd4_decode_state_protect_ops(argp, exid); in nfsd4_decode_ssv_sp_parms()
1547 if (status) in nfsd4_decode_ssv_sp_parms()
1548 return status; in nfsd4_decode_ssv_sp_parms()
1554 status = nfsd4_decode_ignored_string(argp, 0); in nfsd4_decode_ssv_sp_parms()
1555 if (status) in nfsd4_decode_ssv_sp_parms()
1556 return status; in nfsd4_decode_ssv_sp_parms()
1563 status = nfsd4_decode_ignored_string(argp, 0); in nfsd4_decode_ssv_sp_parms()
1564 if (status) in nfsd4_decode_ssv_sp_parms()
1565 return status; in nfsd4_decode_ssv_sp_parms()
1580 __be32 status; in nfsd4_decode_state_protect4_a() local
1588 status = nfsd4_decode_state_protect_ops(argp, exid); in nfsd4_decode_state_protect4_a()
1589 if (status) in nfsd4_decode_state_protect4_a()
1590 return status; in nfsd4_decode_state_protect4_a()
1593 status = nfsd4_decode_ssv_sp_parms(argp, exid); in nfsd4_decode_state_protect4_a()
1594 if (status) in nfsd4_decode_state_protect4_a()
1595 return status; in nfsd4_decode_state_protect4_a()
1608 __be32 status; in nfsd4_decode_nfs_impl_id4() local
1620 status = nfsd4_decode_opaque(argp, &exid->nii_domain); in nfsd4_decode_nfs_impl_id4()
1621 if (status) in nfsd4_decode_nfs_impl_id4()
1622 return status; in nfsd4_decode_nfs_impl_id4()
1626 status = nfsd4_decode_opaque(argp, &exid->nii_name); in nfsd4_decode_nfs_impl_id4()
1627 if (status) in nfsd4_decode_nfs_impl_id4()
1628 return status; in nfsd4_decode_nfs_impl_id4()
1629 status = nfsd4_decode_nfstime4(argp, &exid->nii_time); in nfsd4_decode_nfs_impl_id4()
1630 if (status) in nfsd4_decode_nfs_impl_id4()
1631 return status; in nfsd4_decode_nfs_impl_id4()
1645 __be32 status; in nfsd4_decode_exchange_id() local
1648 status = nfsd4_decode_verifier4(argp, &exid->verifier); in nfsd4_decode_exchange_id()
1649 if (status) in nfsd4_decode_exchange_id()
1650 return status; in nfsd4_decode_exchange_id()
1651 status = nfsd4_decode_opaque(argp, &exid->clname); in nfsd4_decode_exchange_id()
1652 if (status) in nfsd4_decode_exchange_id()
1653 return status; in nfsd4_decode_exchange_id()
1656 status = nfsd4_decode_state_protect4_a(argp, exid); in nfsd4_decode_exchange_id()
1657 if (status) in nfsd4_decode_exchange_id()
1658 return status; in nfsd4_decode_exchange_id()
1699 __be32 status; in nfsd4_decode_create_session() local
1702 status = nfsd4_decode_clientid4(argp, &sess->clientid); in nfsd4_decode_create_session()
1703 if (status) in nfsd4_decode_create_session()
1704 return status; in nfsd4_decode_create_session()
1709 status = nfsd4_decode_channel_attrs4(argp, &sess->fore_channel); in nfsd4_decode_create_session()
1710 if (status) in nfsd4_decode_create_session()
1711 return status; in nfsd4_decode_create_session()
1712 status = nfsd4_decode_channel_attrs4(argp, &sess->back_channel); in nfsd4_decode_create_session()
1713 if (status) in nfsd4_decode_create_session()
1714 return status; in nfsd4_decode_create_session()
1741 __be32 status; in nfsd4_decode_get_dir_delegation() local
1747 status = nfsd4_decode_bitmap4(argp, gdd->gdda_notification_types, in nfsd4_decode_get_dir_delegation()
1749 if (status) in nfsd4_decode_get_dir_delegation()
1750 return status; in nfsd4_decode_get_dir_delegation()
1751 status = nfsd4_decode_nfstime4(argp, &gdd->gdda_child_attr_delay); in nfsd4_decode_get_dir_delegation()
1752 if (status) in nfsd4_decode_get_dir_delegation()
1753 return status; in nfsd4_decode_get_dir_delegation()
1754 status = nfsd4_decode_nfstime4(argp, &gdd->gdda_dir_attr_delay); in nfsd4_decode_get_dir_delegation()
1755 if (status) in nfsd4_decode_get_dir_delegation()
1756 return status; in nfsd4_decode_get_dir_delegation()
1757 status = nfsd4_decode_bitmap4(argp, gdd->gdda_child_attributes, in nfsd4_decode_get_dir_delegation()
1759 if (status) in nfsd4_decode_get_dir_delegation()
1760 return status; in nfsd4_decode_get_dir_delegation()
1771 __be32 status; in nfsd4_decode_getdeviceinfo() local
1774 status = nfsd4_decode_deviceid4(argp->xdr, &gdev->gd_devid); in nfsd4_decode_getdeviceinfo()
1775 if (status) in nfsd4_decode_getdeviceinfo()
1776 return status; in nfsd4_decode_getdeviceinfo()
1793 __be32 *p, status; in nfsd4_decode_layoutcommit() local
1802 status = nfsd4_decode_stateid4(argp, &lcp->lc_sid); in nfsd4_decode_layoutcommit()
1803 if (status) in nfsd4_decode_layoutcommit()
1804 return status; in nfsd4_decode_layoutcommit()
1816 status = nfsd4_decode_nfstime4(argp, &lcp->lc_mtime); in nfsd4_decode_layoutcommit()
1817 if (status) in nfsd4_decode_layoutcommit()
1818 return status; in nfsd4_decode_layoutcommit()
1830 __be32 status; in nfsd4_decode_layoutget() local
1845 status = nfsd4_decode_stateid4(argp, &lgp->lg_sid); in nfsd4_decode_layoutget()
1846 if (status) in nfsd4_decode_layoutget()
1847 return status; in nfsd4_decode_layoutget()
1886 __be32 *p, status; in nfsd4_decode_sequence() local
1888 status = nfsd4_decode_sessionid4(argp, &seq->sessionid); in nfsd4_decode_sequence()
1889 if (status) in nfsd4_decode_sequence()
1890 return status; in nfsd4_decode_sequence()
1910 __be32 status; in nfsd4_decode_test_stateid() local
1924 status = nfsd4_decode_stateid4(argp, &stateid->ts_id_stateid); in nfsd4_decode_test_stateid()
1925 if (status) in nfsd4_decode_test_stateid()
1926 return status; in nfsd4_decode_test_stateid()
1953 __be32 status; in nfsd4_decode_fallocate() local
1955 status = nfsd4_decode_stateid4(argp, &fallocate->falloc_stateid); in nfsd4_decode_fallocate()
1956 if (status) in nfsd4_decode_fallocate()
1957 return status; in nfsd4_decode_fallocate()
2013 __be32 status; in nfsd4_decode_copy() local
2016 status = nfsd4_decode_stateid4(argp, &copy->cp_src_stateid); in nfsd4_decode_copy()
2017 if (status) in nfsd4_decode_copy()
2018 return status; in nfsd4_decode_copy()
2019 status = nfsd4_decode_stateid4(argp, &copy->cp_dst_stateid); in nfsd4_decode_copy()
2020 if (status) in nfsd4_decode_copy()
2021 return status; in nfsd4_decode_copy()
2046 status = nfsd4_decode_nl4_server(argp, copy->cp_src); in nfsd4_decode_copy()
2047 if (status) in nfsd4_decode_copy()
2048 return status; in nfsd4_decode_copy()
2054 status = nfsd4_decode_nl4_server(argp, ns_dummy); in nfsd4_decode_copy()
2055 if (status) { in nfsd4_decode_copy()
2057 return status; in nfsd4_decode_copy()
2070 __be32 status; in nfsd4_decode_copy_notify() local
2080 status = nfsd4_decode_stateid4(argp, &cn->cpn_src_stateid); in nfsd4_decode_copy_notify()
2081 if (status) in nfsd4_decode_copy_notify()
2082 return status; in nfsd4_decode_copy_notify()
2092 os->status = 0; in nfsd4_decode_offload_status()
2100 __be32 status; in nfsd4_decode_seek() local
2102 status = nfsd4_decode_stateid4(argp, &seek->seek_stateid); in nfsd4_decode_seek()
2103 if (status) in nfsd4_decode_seek()
2104 return status; in nfsd4_decode_seek()
2119 __be32 status; in nfsd4_decode_clone() local
2121 status = nfsd4_decode_stateid4(argp, &clone->cl_src_stateid); in nfsd4_decode_clone()
2122 if (status) in nfsd4_decode_clone()
2123 return status; in nfsd4_decode_clone()
2124 status = nfsd4_decode_stateid4(argp, &clone->cl_dst_stateid); in nfsd4_decode_clone()
2125 if (status) in nfsd4_decode_clone()
2126 return status; in nfsd4_decode_clone()
2246 __be32 status; in nfsd4_decode_getxattr() local
2250 status = nfsd4_decode_xattr_name(argp, &getxattr->getxa_name); in nfsd4_decode_getxattr()
2251 if (status) in nfsd4_decode_getxattr()
2252 return status; in nfsd4_decode_getxattr()
2267 __be32 status; in nfsd4_decode_setxattr() local
2278 status = nfsd4_decode_xattr_name(argp, &setxattr->setxa_name); in nfsd4_decode_setxattr()
2279 if (status) in nfsd4_decode_setxattr()
2280 return status; in nfsd4_decode_setxattr()
2296 status = nfsd4_vbuf_from_vector(argp, &payload, in nfsd4_decode_setxattr()
2467 int max_reply = auth_slack + 8; /* opcnt, status */ in nfsd4_decode_compound()
2516 op->status = nfsd4_dec_ops[op->opnum](argp, &op->u); in nfsd4_decode_compound()
2517 if (op->status != nfs_ok) in nfsd4_decode_compound()
2521 op->status); in nfsd4_decode_compound()
2524 op->status = nfserr_op_illegal; in nfsd4_decode_compound()
2547 if (op->status) { in nfsd4_decode_compound()
2588 __be32 status; in nfsd4_encode_specdata4() local
2590 status = nfsd4_encode_uint32_t(xdr, major); in nfsd4_encode_specdata4()
2591 if (status != nfs_ok) in nfsd4_encode_specdata4()
2592 return status; in nfsd4_encode_specdata4()
2599 __be32 status; in nfsd4_encode_change_info4() local
2601 status = nfsd4_encode_bool(xdr, c->atomic); in nfsd4_encode_change_info4()
2602 if (status != nfs_ok) in nfsd4_encode_change_info4()
2603 return status; in nfsd4_encode_change_info4()
2604 status = nfsd4_encode_changeid4(xdr, c->before_change); in nfsd4_encode_change_info4()
2605 if (status != nfs_ok) in nfsd4_encode_change_info4()
2606 return status; in nfsd4_encode_change_info4()
2613 __be32 status; in nfsd4_encode_netaddr4() local
2616 status = nfsd4_encode_opaque(xdr, addr->netid, addr->netid_len); in nfsd4_encode_netaddr4()
2617 if (status != nfs_ok) in nfsd4_encode_netaddr4()
2618 return status; in nfsd4_encode_netaddr4()
2689 __be32 status; in nfsd4_encode_fs_location4() local
2691 status = nfsd4_encode_components_esc(xdr, ':', location->hosts, in nfsd4_encode_fs_location4()
2693 if (status) in nfsd4_encode_fs_location4()
2694 return status; in nfsd4_encode_fs_location4()
2695 status = nfsd4_encode_components(xdr, '/', location->path); in nfsd4_encode_fs_location4()
2696 if (status) in nfsd4_encode_fs_location4()
2697 return status; in nfsd4_encode_fs_location4()
2772 __be32 status; in nfsd4_encode_fs_locations4() local
2778 status = nfsd4_encode_pathname4(xdr, &exp_ps->ex_path, &exp->ex_path); in nfsd4_encode_fs_locations4()
2780 if (status != nfs_ok) in nfsd4_encode_fs_locations4()
2781 return status; in nfsd4_encode_fs_locations4()
2787 status = nfsd4_encode_fs_location4(xdr, &fslocs->locations[i]); in nfsd4_encode_fs_locations4()
2788 if (status != nfs_ok) in nfsd4_encode_fs_locations4()
2789 return status; in nfsd4_encode_fs_locations4()
2798 __be32 status; in nfsd4_encode_nfsace4() local
2801 status = nfsd4_encode_acetype4(xdr, ace->type); in nfsd4_encode_nfsace4()
2802 if (status != nfs_ok) in nfsd4_encode_nfsace4()
2805 status = nfsd4_encode_aceflag4(xdr, ace->flag); in nfsd4_encode_nfsace4()
2806 if (status != nfs_ok) in nfsd4_encode_nfsace4()
2809 status = nfsd4_encode_acemask4(xdr, ace->access_mask & NFS4_ACE_MASK_ALL); in nfsd4_encode_nfsace4()
2810 if (status != nfs_ok) in nfsd4_encode_nfsace4()
3116 __be32 status; in nfsd4_encode_fattr4_acl() local
3126 status = nfsd4_encode_nfsace4(xdr, args->rqstp, ace); in nfsd4_encode_fattr4_acl()
3127 if (status != nfs_ok) in nfsd4_encode_fattr4_acl()
3128 return status; in nfsd4_encode_fattr4_acl()
3589 __be32 attrlen, status; in nfsd4_encode_fattr4() local
3621 status = fattr_handle_absent_fs(&attrmask[0], &attrmask[1], in nfsd4_encode_fattr4()
3623 if (status) in nfsd4_encode_fattr4()
3631 status = nfsd4_deleg_getattr_conflict(rqstp, dentry, &dp); in nfsd4_encode_fattr4()
3632 if (status) in nfsd4_encode_fattr4()
3675 status = nfserr_jukebox; in nfsd4_encode_fattr4()
3679 status = fh_compose(tempfh, exp, dentry, NULL); in nfsd4_encode_fattr4()
3680 if (status) in nfsd4_encode_fattr4()
3691 status = nfserr_attrnotsupp; in nfsd4_encode_fattr4()
3718 status = nfsd4_encode_bitmap4(xdr, attrmask[0], attrmask[1], in nfsd4_encode_fattr4()
3720 if (status) in nfsd4_encode_fattr4()
3731 status = nfsd4_enc_fattr4_encode_ops[bit](xdr, &args); in nfsd4_encode_fattr4()
3732 if (status != nfs_ok) in nfsd4_encode_fattr4()
3737 status = nfs_ok; in nfsd4_encode_fattr4()
3749 if (status) in nfsd4_encode_fattr4()
3751 return status; in nfsd4_encode_fattr4()
3753 status = nfserrno(err); in nfsd4_encode_fattr4()
3756 status = nfserr_resource; in nfsd4_encode_fattr4()
3874 __be32 status; in nfsd4_encode_entry4_rdattr_error() local
3877 status = nfsd4_encode_bitmap4(xdr, FATTR4_WORD0_RDATTR_ERROR, 0, 0); in nfsd4_encode_entry4_rdattr_error()
3878 if (status != nfs_ok) in nfsd4_encode_entry4_rdattr_error()
3879 return status; in nfsd4_encode_entry4_rdattr_error()
4037 __be32 status; in nfsd4_encode_access() local
4040 status = nfsd4_encode_uint32_t(xdr, access->ac_supported); in nfsd4_encode_access()
4041 if (status != nfs_ok) in nfsd4_encode_access()
4042 return status; in nfsd4_encode_access()
4129 __be32 status; in nfsd4_encode_lock_owner4() local
4132 status = nfsd4_encode_clientid4(xdr, clientid); in nfsd4_encode_lock_owner4()
4133 if (status != nfs_ok) in nfsd4_encode_lock_owner4()
4134 return status; in nfsd4_encode_lock_owner4()
4143 __be32 status; in nfsd4_encode_lock4denied() local
4146 status = nfsd4_encode_offset4(xdr, ld->ld_start); in nfsd4_encode_lock4denied()
4147 if (status != nfs_ok) in nfsd4_encode_lock4denied()
4148 return status; in nfsd4_encode_lock4denied()
4150 status = nfsd4_encode_length4(xdr, ld->ld_length); in nfsd4_encode_lock4denied()
4151 if (status != nfs_ok) in nfsd4_encode_lock4denied()
4152 return status; in nfsd4_encode_lock4denied()
4167 __be32 status; in nfsd4_encode_lock() local
4172 status = nfsd4_encode_stateid4(xdr, &lock->lk_resp_stateid); in nfsd4_encode_lock()
4176 status = nfsd4_encode_lock4denied(xdr, &lock->lk_denied); in nfsd4_encode_lock()
4181 return status != nfs_ok ? status : nfserr; in nfsd4_encode_lock()
4190 __be32 status; in nfsd4_encode_lockt() local
4194 status = nfsd4_encode_lock4denied(xdr, &lockt->lt_denied); in nfsd4_encode_lockt()
4195 if (status != nfs_ok) in nfsd4_encode_lockt()
4196 return status; in nfsd4_encode_lockt()
4230 __be32 status; in nfsd4_encode_open_nfsace4() local
4233 status = nfsd4_encode_acetype4(xdr, NFS4_ACE_ACCESS_ALLOWED_ACE_TYPE); in nfsd4_encode_open_nfsace4()
4234 if (status != nfs_ok) in nfsd4_encode_open_nfsace4()
4237 status = nfsd4_encode_aceflag4(xdr, 0); in nfsd4_encode_open_nfsace4()
4238 if (status != nfs_ok) in nfsd4_encode_open_nfsace4()
4241 status = nfsd4_encode_acemask4(xdr, 0); in nfsd4_encode_open_nfsace4()
4242 if (status != nfs_ok) in nfsd4_encode_open_nfsace4()
4253 __be32 status; in nfsd4_encode_open_read_delegation4() local
4256 status = nfsd4_encode_stateid4(xdr, &open->op_delegate_stateid); in nfsd4_encode_open_read_delegation4()
4257 if (status != nfs_ok) in nfsd4_encode_open_read_delegation4()
4258 return status; in nfsd4_encode_open_read_delegation4()
4260 status = nfsd4_encode_bool(xdr, open->op_recall); in nfsd4_encode_open_read_delegation4()
4261 if (status != nfs_ok) in nfsd4_encode_open_read_delegation4()
4262 return status; in nfsd4_encode_open_read_delegation4()
4281 __be32 status; in nfsd4_encode_open_write_delegation4() local
4284 status = nfsd4_encode_stateid4(xdr, &open->op_delegate_stateid); in nfsd4_encode_open_write_delegation4()
4285 if (status != nfs_ok) in nfsd4_encode_open_write_delegation4()
4286 return status; in nfsd4_encode_open_write_delegation4()
4288 status = nfsd4_encode_bool(xdr, open->op_recall); in nfsd4_encode_open_write_delegation4()
4289 if (status != nfs_ok) in nfsd4_encode_open_write_delegation4()
4290 return status; in nfsd4_encode_open_write_delegation4()
4292 status = nfsd4_encode_nfs_space_limit4(xdr, 0); in nfsd4_encode_open_write_delegation4()
4293 if (status != nfs_ok) in nfsd4_encode_open_write_delegation4()
4294 return status; in nfsd4_encode_open_write_delegation4()
4302 __be32 status = nfs_ok; in nfsd4_encode_open_none_delegation4() local
4310 status = nfsd4_encode_bool(xdr, false); in nfsd4_encode_open_none_delegation4()
4314 status = nfsd4_encode_bool(xdr, false); in nfsd4_encode_open_none_delegation4()
4316 return status; in nfsd4_encode_open_none_delegation4()
4322 __be32 status; in nfsd4_encode_open_delegation4() local
4329 status = nfs_ok; in nfsd4_encode_open_delegation4()
4334 status = nfsd4_encode_open_read_delegation4(xdr, open); in nfsd4_encode_open_delegation4()
4339 status = nfsd4_encode_open_write_delegation4(xdr, open); in nfsd4_encode_open_delegation4()
4343 status = nfsd4_encode_open_none_delegation4(xdr, open); in nfsd4_encode_open_delegation4()
4346 status = nfserr_serverfault; in nfsd4_encode_open_delegation4()
4349 return status; in nfsd4_encode_open_delegation4()
4414 int status, space_left; in nfsd4_encode_splice_read() local
4442 status = svc_encode_result_payload(read->rd_rqstp, in nfsd4_encode_splice_read()
4444 if (status) { in nfsd4_encode_splice_read()
4445 nfserr = nfserrno(status); in nfsd4_encode_splice_read()
4553 int maxcount, status; in nfsd4_encode_readlink() local
4571 status = svc_encode_result_payload(readlink->rl_rqstp, length_offset, in nfsd4_encode_readlink()
4573 if (status) { in nfsd4_encode_readlink()
4574 nfserr = nfserrno(status); in nfsd4_encode_readlink()
4596 __be32 status; in nfsd4_encode_dirlist4() local
4627 status = nfsd_readdir(readdir->rd_rqstp, readdir->rd_fhp, &offset, in nfsd4_encode_dirlist4()
4629 if (status) in nfsd4_encode_dirlist4()
4630 return status; in nfsd4_encode_dirlist4()
4697 __be32 status; in nfsd4_encode_rpcsec_gss_info() local
4703 status = nfsd4_encode_qop4(xdr, info->qop); in nfsd4_encode_rpcsec_gss_info()
4704 if (status != nfs_ok) in nfsd4_encode_rpcsec_gss_info()
4705 return status; in nfsd4_encode_rpcsec_gss_info()
4718 __be32 status; in nfsd4_encode_secinfo4() local
4724 status = nfsd4_encode_uint32_t(xdr, RPC_AUTH_GSS); in nfsd4_encode_secinfo4()
4725 if (status != nfs_ok) in nfsd4_encode_secinfo4()
4726 return status; in nfsd4_encode_secinfo4()
4728 status = nfsd4_encode_rpcsec_gss_info(xdr, &info); in nfsd4_encode_secinfo4()
4729 if (status != nfs_ok) in nfsd4_encode_secinfo4()
4730 return status; in nfsd4_encode_secinfo4()
4735 status = nfsd4_encode_uint32_t(xdr, pf); in nfsd4_encode_secinfo4()
4736 if (status != nfs_ok) in nfsd4_encode_secinfo4()
4737 return status; in nfsd4_encode_secinfo4()
4749 __be32 status, wire_count; in nfsd4_encode_SECINFO4resok() local
4776 status = nfsd4_encode_secinfo4(xdr, flavs[i].pseudoflavor, in nfsd4_encode_SECINFO4resok()
4778 if (status != nfs_ok) in nfsd4_encode_SECINFO4resok()
4779 return status; in nfsd4_encode_SECINFO4resok()
4813 __be32 status; in nfsd4_encode_setattr() local
4818 status = nfsd4_encode_bitmap4(resp->xdr, setattr->sa_bmval[0], in nfsd4_encode_setattr()
4824 status = nfsd4_encode_bitmap4(resp->xdr, 0, 0, 0); in nfsd4_encode_setattr()
4826 return status != nfs_ok ? status : nfserr; in nfsd4_encode_setattr()
4879 __be32 status; in nfsd4_encode_state_protect_ops4() local
4882 status = nfsd4_encode_bitmap4(xdr, exid->spo_must_enforce[0], in nfsd4_encode_state_protect_ops4()
4885 if (status != nfs_ok) in nfsd4_encode_state_protect_ops4()
4886 return status; in nfsd4_encode_state_protect_ops4()
4896 __be32 status; in nfsd4_encode_state_protect4_r() local
4902 status = nfs_ok; in nfsd4_encode_state_protect4_r()
4906 status = nfsd4_encode_state_protect_ops4(xdr, exid); in nfsd4_encode_state_protect4_r()
4909 status = nfserr_serverfault; in nfsd4_encode_state_protect4_r()
4911 return status; in nfsd4_encode_state_protect4_r()
4918 __be32 status; in nfsd4_encode_server_owner4() local
4921 status = nfsd4_encode_uint64_t(xdr, 0); in nfsd4_encode_server_owner4()
4922 if (status != nfs_ok) in nfsd4_encode_server_owner4()
4923 return status; in nfsd4_encode_server_owner4()
4931 __be32 status; in nfsd4_encode_nfs_impl_id4() local
4934 status = nfsd4_encode_opaque(xdr, exid->nii_domain.data, in nfsd4_encode_nfs_impl_id4()
4936 if (status != nfs_ok) in nfsd4_encode_nfs_impl_id4()
4937 return status; in nfsd4_encode_nfs_impl_id4()
4939 status = nfsd4_encode_opaque(xdr, exid->nii_name.data, in nfsd4_encode_nfs_impl_id4()
4941 if (status != nfs_ok) in nfsd4_encode_nfs_impl_id4()
4942 return status; in nfsd4_encode_nfs_impl_id4()
4994 __be32 status; in nfsd4_encode_channel_attrs4() local
4997 status = nfsd4_encode_count4(xdr, 0); in nfsd4_encode_channel_attrs4()
4998 if (status != nfs_ok) in nfsd4_encode_channel_attrs4()
4999 return status; in nfsd4_encode_channel_attrs4()
5001 status = nfsd4_encode_count4(xdr, attrs->maxreq_sz); in nfsd4_encode_channel_attrs4()
5002 if (status != nfs_ok) in nfsd4_encode_channel_attrs4()
5003 return status; in nfsd4_encode_channel_attrs4()
5005 status = nfsd4_encode_count4(xdr, attrs->maxresp_sz); in nfsd4_encode_channel_attrs4()
5006 if (status != nfs_ok) in nfsd4_encode_channel_attrs4()
5007 return status; in nfsd4_encode_channel_attrs4()
5009 status = nfsd4_encode_count4(xdr, attrs->maxresp_cached); in nfsd4_encode_channel_attrs4()
5010 if (status != nfs_ok) in nfsd4_encode_channel_attrs4()
5011 return status; in nfsd4_encode_channel_attrs4()
5013 status = nfsd4_encode_count4(xdr, attrs->maxops); in nfsd4_encode_channel_attrs4()
5014 if (status != nfs_ok) in nfsd4_encode_channel_attrs4()
5015 return status; in nfsd4_encode_channel_attrs4()
5017 status = nfsd4_encode_count4(xdr, attrs->maxreqs); in nfsd4_encode_channel_attrs4()
5018 if (status != nfs_ok) in nfsd4_encode_channel_attrs4()
5019 return status; in nfsd4_encode_channel_attrs4()
5117 __be32 status = nfserr_resource; in nfsd4_encode_get_dir_delegation() local
5123 status = nfsd4_encode_verifier4(xdr, &gdd->gddr_cookieverf); in nfsd4_encode_get_dir_delegation()
5124 if (status) in nfsd4_encode_get_dir_delegation()
5126 status = nfsd4_encode_stateid4(xdr, &gdd->gddr_stateid); in nfsd4_encode_get_dir_delegation()
5127 if (status) in nfsd4_encode_get_dir_delegation()
5129 status = nfsd4_encode_bitmap4(xdr, gdd->gddr_notification[0], 0, 0); in nfsd4_encode_get_dir_delegation()
5130 if (status) in nfsd4_encode_get_dir_delegation()
5132 status = nfsd4_encode_bitmap4(xdr, gdd->gddr_child_attributes[0], in nfsd4_encode_get_dir_delegation()
5135 if (status) in nfsd4_encode_get_dir_delegation()
5137 status = nfsd4_encode_bitmap4(xdr, gdd->gddr_dir_attributes[0], in nfsd4_encode_get_dir_delegation()
5148 status = nfsd4_encode_bool(xdr, gdd->gddrnf_will_signal_deleg_avail); in nfsd4_encode_get_dir_delegation()
5151 return status; in nfsd4_encode_get_dir_delegation()
5161 __be32 status; in nfsd4_encode_device_addr4() local
5168 status = ops->encode_getdeviceinfo(xdr, gdev); in nfsd4_encode_device_addr4()
5169 if (status != nfs_ok) { in nfsd4_encode_device_addr4()
5177 return status; in nfsd4_encode_device_addr4()
5186 status = nfsd4_encode_count4(xdr, needed_len); in nfsd4_encode_device_addr4()
5187 if (status != nfs_ok) in nfsd4_encode_device_addr4()
5188 return status; in nfsd4_encode_device_addr4()
5211 __be32 status; in nfsd4_encode_layout4() local
5214 status = nfsd4_encode_offset4(xdr, lgp->lg_seg.offset); in nfsd4_encode_layout4()
5215 if (status != nfs_ok) in nfsd4_encode_layout4()
5216 return status; in nfsd4_encode_layout4()
5218 status = nfsd4_encode_length4(xdr, lgp->lg_seg.length); in nfsd4_encode_layout4()
5219 if (status != nfs_ok) in nfsd4_encode_layout4()
5220 return status; in nfsd4_encode_layout4()
5292 __be32 status; in nfsd4_encode_write_response4() local
5298 status = nfsd4_encode_stateid4(xdr, &write->cb_stateid); in nfsd4_encode_write_response4()
5299 if (status != nfs_ok) in nfsd4_encode_write_response4()
5300 return status; in nfsd4_encode_write_response4()
5304 status = nfsd4_encode_length4(xdr, write->wr_bytes_written); in nfsd4_encode_write_response4()
5305 if (status != nfs_ok) in nfsd4_encode_write_response4()
5306 return status; in nfsd4_encode_write_response4()
5317 __be32 status; in nfsd4_encode_copy_requirements4() local
5320 status = nfsd4_encode_bool(xdr, true); in nfsd4_encode_copy_requirements4()
5321 if (status != nfs_ok) in nfsd4_encode_copy_requirements4()
5322 return status; in nfsd4_encode_copy_requirements4()
5342 __be32 status; in nfsd4_encode_netloc4() local
5349 status = nfsd4_encode_netaddr4(xdr, &ns->u.nl4_addr); in nfsd4_encode_netloc4()
5352 status = nfserr_serverfault; in nfsd4_encode_netloc4()
5354 return status; in nfsd4_encode_netloc4()
5393 if (xdr_stream_encode_be32(xdr, os->status) != XDR_UNIT) in nfsd4_encode_offload_status()
5614 __be32 status, tmp; in nfsd4_encode_listxattrs() local
5621 status = nfsd4_listxattr_validate_cookie(listxattrs, &offset); in nfsd4_encode_listxattrs()
5622 if (status) in nfsd4_encode_listxattrs()
5633 status = nfserr_resource; in nfsd4_encode_listxattrs()
5662 status = nfserr_toosmall; in nfsd4_encode_listxattrs()
5677 status = nfserr_resource; in nfsd4_encode_listxattrs()
5695 status = nfserr_badcookie; in nfsd4_encode_listxattrs()
5702 status = nfserr_resource; in nfsd4_encode_listxattrs()
5716 return status; in nfsd4_encode_listxattrs()
5855 static __be32 nfsd4_map_status(__be32 status, u32 minor) in nfsd4_map_status() argument
5857 switch (status) { in nfsd4_map_status()
5863 status = nfserr_inval; in nfsd4_map_status()
5866 status = nfserr_symlink; in nfsd4_map_status()
5869 return status; in nfsd4_map_status()
5889 goto status; in nfsd4_encode_operation()
5890 if (op->status && opdesc && in nfsd4_encode_operation()
5892 goto status; in nfsd4_encode_operation()
5896 op->status = encoder(resp, op->status, &op->u); in nfsd4_encode_operation()
5897 if (op->status) in nfsd4_encode_operation()
5898 trace_nfsd_compound_encode_err(rqstp, op->opnum, op->status); in nfsd4_encode_operation()
5901 /* nfsd4_check_resp_size guarantees enough room for error status */ in nfsd4_encode_operation()
5902 if (!op->status) { in nfsd4_encode_operation()
5906 op->status = nfsd4_check_resp_size(resp, space_needed); in nfsd4_encode_operation()
5908 if (op->status == nfserr_resource && nfsd4_has_session(&resp->cstate)) { in nfsd4_encode_operation()
5912 op->status = nfserr_rep_too_big_to_cache; in nfsd4_encode_operation()
5914 op->status = nfserr_rep_too_big; in nfsd4_encode_operation()
5916 if (op->status == nfserr_resource || in nfsd4_encode_operation()
5917 op->status == nfserr_rep_too_big || in nfsd4_encode_operation()
5918 op->status == nfserr_rep_too_big_to_cache) { in nfsd4_encode_operation()
5923 * just truncate back to after the status. But it's a in nfsd4_encode_operation()
5931 so->so_replay.rp_status = op->status; in nfsd4_encode_operation()
5936 status: in nfsd4_encode_operation()
5937 op->status = nfsd4_map_status(op->status, in nfsd4_encode_operation()
5940 &op->status, XDR_UNIT); in nfsd4_encode_operation()
6014 *p++ = resp->cstate.status; in nfs4svc_encode_compoundres()