Lines Matching full:status

959 	int32_t		status;  member
3229 hdr->status = tmp; in decode_compound_hdr()
3241 return nfs4_stat_to_errno(hdr->status); in decode_compound_hdr()
3667 int status = 0; in decode_attr_files_avail() local
3680 return status; in decode_attr_files_avail()
3686 int status = 0; in decode_attr_files_free() local
3699 return status; in decode_attr_files_free()
3705 int status = 0; in decode_attr_files_total() local
3718 return status; in decode_attr_files_total()
3725 int status = 0; in decode_pathname() local
3740 status = decode_opaque_inline(xdr, &component->len, &component->data); in decode_pathname()
3741 if (unlikely(status != 0)) in decode_pathname()
3749 return status; in decode_pathname()
3758 dprintk(" status %d", status); in decode_pathname()
3759 status = -EIO; in decode_pathname()
3767 int status = -EIO; in decode_attr_fs_locations() local
3771 status = 0; in decode_attr_fs_locations()
3775 status = -EIO; in decode_attr_fs_locations()
3780 status = decode_pathname(xdr, &res->fs_path); in decode_attr_fs_locations()
3781 if (unlikely(status != 0)) in decode_attr_fs_locations()
3813 status = decode_opaque_inline(xdr, &len, &data); in decode_attr_fs_locations()
3814 if (unlikely(status != 0)) in decode_attr_fs_locations()
3820 status = decode_opaque_inline(xdr, &server->len, &server->data); in decode_attr_fs_locations()
3821 if (unlikely(status != 0)) in decode_attr_fs_locations()
3825 status = decode_pathname(xdr, &loc->rootpath); in decode_attr_fs_locations()
3826 if (unlikely(status != 0)) in decode_attr_fs_locations()
3830 status = NFS_ATTR_FATTR_V4_LOCATIONS; in decode_attr_fs_locations()
3832 dprintk("%s: fs_locations done, error = %d\n", __func__, status); in decode_attr_fs_locations()
3833 return status; in decode_attr_fs_locations()
3835 status = -EIO; in decode_attr_fs_locations()
3842 int status = 0; in decode_attr_maxfilesize() local
3855 return status; in decode_attr_maxfilesize()
3861 int status = 0; in decode_attr_maxlink() local
3874 return status; in decode_attr_maxlink()
3880 int status = 0; in decode_attr_maxname() local
3893 return status; in decode_attr_maxname()
3899 int status = 0; in decode_attr_maxread() local
3916 return status; in decode_attr_maxread()
3922 int status = 0; in decode_attr_maxwrite() local
3939 return status; in decode_attr_maxwrite()
4095 int status = 0; in decode_attr_space_avail() local
4108 return status; in decode_attr_space_avail()
4114 int status = 0; in decode_attr_space_free() local
4127 return status; in decode_attr_space_free()
4133 int status = 0; in decode_attr_space_total() local
4146 return status; in decode_attr_space_total()
4194 int status = 0; in decode_attr_time_access() local
4201 status = decode_attr_time(xdr, time); in decode_attr_time_access()
4202 if (status == 0) in decode_attr_time_access()
4203 status = NFS_ATTR_FATTR_ATIME; in decode_attr_time_access()
4207 return status; in decode_attr_time_access()
4212 int status = 0; in decode_attr_time_metadata() local
4219 status = decode_attr_time(xdr, time); in decode_attr_time_metadata()
4220 if (status == 0) in decode_attr_time_metadata()
4221 status = NFS_ATTR_FATTR_CTIME; in decode_attr_time_metadata()
4225 return status; in decode_attr_time_metadata()
4231 int status = 0; in decode_attr_time_delta() local
4238 status = decode_attr_time(xdr, time); in decode_attr_time_delta()
4243 return status; in decode_attr_time_delta()
4253 int status = 0; in decode_attr_security_label() local
4282 status = NFS_ATTR_FATTR_V4_SECURITY_LABEL; in decode_attr_security_label()
4292 return status; in decode_attr_security_label()
4297 int status = 0; in decode_attr_time_modify() local
4304 status = decode_attr_time(xdr, time); in decode_attr_time_modify()
4305 if (status == 0) in decode_attr_time_modify()
4306 status = NFS_ATTR_FATTR_MTIME; in decode_attr_time_modify()
4310 return status; in decode_attr_time_modify()
4388 int status; in decode_access() local
4390 status = decode_op_hdr(xdr, OP_ACCESS); in decode_access()
4391 if (status) in decode_access()
4392 return status; in decode_access()
4436 int status; in decode_close() local
4438 status = decode_op_hdr(xdr, OP_CLOSE); in decode_close()
4439 if (status != -EIO) in decode_close()
4440 nfs_increment_open_seqid(status, res->seqid); in decode_close()
4441 if (!status) in decode_close()
4442 status = decode_invalid_stateid(xdr, &res->stateid); in decode_close()
4443 return status; in decode_close()
4459 int status; in decode_commit() local
4461 status = decode_op_hdr(xdr, OP_COMMIT); in decode_commit()
4462 if (!status) in decode_commit()
4463 status = decode_write_verifier(xdr, &verf->verifier); in decode_commit()
4464 if (!status) in decode_commit()
4466 return status; in decode_commit()
4473 int status; in decode_create() local
4475 status = decode_op_hdr(xdr, OP_CREATE); in decode_create()
4476 if (status) in decode_create()
4477 return status; in decode_create()
4478 if ((status = decode_change_info(xdr, cinfo))) in decode_create()
4479 return status; in decode_create()
4494 int status; in decode_server_caps() local
4496 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_server_caps()
4498 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_server_caps()
4500 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_server_caps()
4502 if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0) in decode_server_caps()
4504 if ((status = decode_attr_fh_expire_type(xdr, bitmap, in decode_server_caps()
4507 if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0) in decode_server_caps()
4509 if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0) in decode_server_caps()
4511 if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0) in decode_server_caps()
4513 if ((status = decode_attr_case_insensitive(xdr, bitmap, &res->case_insensitive)) != 0) in decode_server_caps()
4515 if ((status = decode_attr_case_preserving(xdr, bitmap, &res->case_preserving)) != 0) in decode_server_caps()
4517 if ((status = decode_attr_exclcreat_supported(xdr, bitmap, in decode_server_caps()
4520 if ((status = decode_attr_open_arguments(xdr, bitmap, &res->open_caps)) != 0) in decode_server_caps()
4522 status = verify_attr_len(xdr, savep, attrlen); in decode_server_caps()
4524 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_server_caps()
4525 return status; in decode_server_caps()
4532 int status; in decode_statfs() local
4534 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_statfs()
4536 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_statfs()
4538 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_statfs()
4541 if ((status = decode_attr_files_avail(xdr, bitmap, &fsstat->afiles)) != 0) in decode_statfs()
4543 if ((status = decode_attr_files_free(xdr, bitmap, &fsstat->ffiles)) != 0) in decode_statfs()
4545 if ((status = decode_attr_files_total(xdr, bitmap, &fsstat->tfiles)) != 0) in decode_statfs()
4548 status = -EIO; in decode_statfs()
4552 if ((status = decode_attr_space_avail(xdr, bitmap, &fsstat->abytes)) != 0) in decode_statfs()
4554 if ((status = decode_attr_space_free(xdr, bitmap, &fsstat->fbytes)) != 0) in decode_statfs()
4556 if ((status = decode_attr_space_total(xdr, bitmap, &fsstat->tbytes)) != 0) in decode_statfs()
4559 status = verify_attr_len(xdr, savep, attrlen); in decode_statfs()
4561 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_statfs()
4562 return status; in decode_statfs()
4569 int status; in decode_pathconf() local
4571 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_pathconf()
4573 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_pathconf()
4575 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_pathconf()
4578 if ((status = decode_attr_maxlink(xdr, bitmap, &pathconf->max_link)) != 0) in decode_pathconf()
4580 if ((status = decode_attr_maxname(xdr, bitmap, &pathconf->max_namelen)) != 0) in decode_pathconf()
4583 status = verify_attr_len(xdr, savep, attrlen); in decode_pathconf()
4585 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_pathconf()
4586 return status; in decode_pathconf()
4612 int status; in decode_first_threshold_item4() local
4621 status = decode_attr_bitmap(xdr, bitmap); in decode_first_threshold_item4()
4622 if (status < 0) in decode_first_threshold_item4()
4626 status = decode_attr_length(xdr, &attrlen, &savep); in decode_first_threshold_item4()
4627 if (status < 0) in decode_first_threshold_item4()
4630 status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD); in decode_first_threshold_item4()
4631 if (status < 0) in decode_first_threshold_item4()
4633 status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR); in decode_first_threshold_item4()
4634 if (status < 0) in decode_first_threshold_item4()
4636 status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz, in decode_first_threshold_item4()
4638 if (status < 0) in decode_first_threshold_item4()
4640 status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz, in decode_first_threshold_item4()
4642 if (status < 0) in decode_first_threshold_item4()
4645 status = verify_attr_len(xdr, savep, attrlen); in decode_first_threshold_item4()
4652 dprintk("%s ret=%d!\n", __func__, status); in decode_first_threshold_item4()
4653 return status; in decode_first_threshold_item4()
4664 int status = 0; in decode_attr_mdsthreshold() local
4684 status = decode_first_threshold_item4(xdr, res); in decode_attr_mdsthreshold()
4687 return status; in decode_attr_mdsthreshold()
4694 int status; in decode_getfattr_attrs() local
4699 status = decode_attr_type(xdr, bitmap, &type); in decode_getfattr_attrs()
4700 if (status < 0) in decode_getfattr_attrs()
4703 if (status != 0) { in decode_getfattr_attrs()
4705 fattr->valid |= status; in decode_getfattr_attrs()
4708 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs()
4709 if (status < 0) in decode_getfattr_attrs()
4711 fattr->valid |= status; in decode_getfattr_attrs()
4713 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs()
4714 if (status < 0) in decode_getfattr_attrs()
4716 fattr->valid |= status; in decode_getfattr_attrs()
4718 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs()
4719 if (status < 0) in decode_getfattr_attrs()
4721 fattr->valid |= status; in decode_getfattr_attrs()
4724 status = decode_attr_error(xdr, bitmap, &err); in decode_getfattr_attrs()
4725 if (status < 0) in decode_getfattr_attrs()
4728 status = decode_attr_filehandle(xdr, bitmap, fh); in decode_getfattr_attrs()
4729 if (status < 0) in decode_getfattr_attrs()
4732 status = decode_attr_fileid(xdr, bitmap, &fattr->fileid); in decode_getfattr_attrs()
4733 if (status < 0) in decode_getfattr_attrs()
4735 fattr->valid |= status; in decode_getfattr_attrs()
4737 status = decode_attr_fs_locations(xdr, bitmap, fs_loc); in decode_getfattr_attrs()
4738 if (status < 0) in decode_getfattr_attrs()
4740 fattr->valid |= status; in decode_getfattr_attrs()
4742 status = -EIO; in decode_getfattr_attrs()
4746 status = decode_attr_mode(xdr, bitmap, &fmode); in decode_getfattr_attrs()
4747 if (status < 0) in decode_getfattr_attrs()
4749 if (status != 0) { in decode_getfattr_attrs()
4751 fattr->valid |= status; in decode_getfattr_attrs()
4754 status = decode_attr_nlink(xdr, bitmap, &fattr->nlink); in decode_getfattr_attrs()
4755 if (status < 0) in decode_getfattr_attrs()
4757 fattr->valid |= status; in decode_getfattr_attrs()
4759 status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); in decode_getfattr_attrs()
4760 if (status < 0) in decode_getfattr_attrs()
4762 fattr->valid |= status; in decode_getfattr_attrs()
4764 status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); in decode_getfattr_attrs()
4765 if (status < 0) in decode_getfattr_attrs()
4767 fattr->valid |= status; in decode_getfattr_attrs()
4769 status = decode_attr_rdev(xdr, bitmap, &fattr->rdev); in decode_getfattr_attrs()
4770 if (status < 0) in decode_getfattr_attrs()
4772 fattr->valid |= status; in decode_getfattr_attrs()
4774 status = decode_attr_space_used(xdr, bitmap, &fattr->du.nfs3.used); in decode_getfattr_attrs()
4775 if (status < 0) in decode_getfattr_attrs()
4777 fattr->valid |= status; in decode_getfattr_attrs()
4779 status = decode_attr_time_access(xdr, bitmap, &fattr->atime); in decode_getfattr_attrs()
4780 if (status < 0) in decode_getfattr_attrs()
4782 fattr->valid |= status; in decode_getfattr_attrs()
4784 status = decode_attr_time_metadata(xdr, bitmap, &fattr->ctime); in decode_getfattr_attrs()
4785 if (status < 0) in decode_getfattr_attrs()
4787 fattr->valid |= status; in decode_getfattr_attrs()
4789 status = decode_attr_time_modify(xdr, bitmap, &fattr->mtime); in decode_getfattr_attrs()
4790 if (status < 0) in decode_getfattr_attrs()
4792 fattr->valid |= status; in decode_getfattr_attrs()
4794 status = decode_attr_mounted_on_fileid(xdr, bitmap, &fattr->mounted_on_fileid); in decode_getfattr_attrs()
4795 if (status < 0) in decode_getfattr_attrs()
4797 fattr->valid |= status; in decode_getfattr_attrs()
4799 status = -EIO; in decode_getfattr_attrs()
4803 status = decode_attr_mdsthreshold(xdr, bitmap, fattr->mdsthreshold); in decode_getfattr_attrs()
4804 if (status < 0) in decode_getfattr_attrs()
4807 status = decode_attr_security_label(xdr, bitmap, fattr->label); in decode_getfattr_attrs()
4808 if (status < 0) in decode_getfattr_attrs()
4810 fattr->valid |= status; in decode_getfattr_attrs()
4813 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_attrs()
4814 return status; in decode_getfattr_attrs()
4824 int status; in decode_getfattr_generic() local
4826 status = decode_op_hdr(xdr, OP_GETATTR); in decode_getfattr_generic()
4827 if (status < 0) in decode_getfattr_generic()
4830 status = decode_attr_bitmap(xdr, bitmap); in decode_getfattr_generic()
4831 if (status < 0) in decode_getfattr_generic()
4834 status = decode_attr_length(xdr, &attrlen, &savep); in decode_getfattr_generic()
4835 if (status < 0) in decode_getfattr_generic()
4838 status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, server); in decode_getfattr_generic()
4839 if (status < 0) in decode_getfattr_generic()
4842 status = verify_attr_len(xdr, savep, attrlen); in decode_getfattr_generic()
4844 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_generic()
4845 return status; in decode_getfattr_generic()
4896 int status = 0; in decode_attr_pnfstype() local
4902 status = decode_pnfs_layout_types(xdr, fsinfo); in decode_attr_pnfstype()
4905 return status; in decode_attr_pnfstype()
4978 int status; in decode_fsinfo() local
4980 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_fsinfo()
4982 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_fsinfo()
4984 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_fsinfo()
4989 if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) in decode_fsinfo()
4991 if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) in decode_fsinfo()
4993 if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) in decode_fsinfo()
4996 if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) in decode_fsinfo()
5000 status = -EIO; in decode_fsinfo()
5004 status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); in decode_fsinfo()
5005 if (status != 0) in decode_fsinfo()
5007 status = decode_attr_pnfstype(xdr, bitmap, fsinfo); in decode_fsinfo()
5008 if (status != 0) in decode_fsinfo()
5011 status = -EIO; in decode_fsinfo()
5015 status = decode_attr_layout_blksize(xdr, bitmap, &fsinfo->blksize); in decode_fsinfo()
5016 if (status) in decode_fsinfo()
5018 status = decode_attr_clone_blksize(xdr, bitmap, &fsinfo->clone_blksize); in decode_fsinfo()
5019 if (status) in decode_fsinfo()
5022 status = decode_attr_change_attr_type(xdr, bitmap, in decode_fsinfo()
5024 if (status) in decode_fsinfo()
5027 status = decode_attr_xattrsupport(xdr, bitmap, in decode_fsinfo()
5029 if (status) in decode_fsinfo()
5032 status = verify_attr_len(xdr, savep, attrlen); in decode_fsinfo()
5034 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_fsinfo()
5035 return status; in decode_fsinfo()
5042 int status; in decode_getfh() local
5047 status = decode_op_hdr(xdr, OP_GETFH); in decode_getfh()
5048 if (status) in decode_getfh()
5049 return status; in decode_getfh()
5069 int status; in decode_link() local
5071 status = decode_op_hdr(xdr, OP_LINK); in decode_link()
5072 if (status) in decode_link()
5073 return status; in decode_link()
5112 int status; in decode_lock() local
5114 status = decode_op_hdr(xdr, OP_LOCK); in decode_lock()
5115 if (status == -EIO) in decode_lock()
5117 if (status == 0) { in decode_lock()
5118 status = decode_lock_stateid(xdr, &res->stateid); in decode_lock()
5119 if (unlikely(status)) in decode_lock()
5121 } else if (status == -NFS4ERR_DENIED) in decode_lock()
5122 status = decode_lock_denied(xdr, NULL); in decode_lock()
5124 nfs_increment_open_seqid(status, res->open_seqid); in decode_lock()
5125 nfs_increment_lock_seqid(status, res->lock_seqid); in decode_lock()
5127 return status; in decode_lock()
5132 int status; in decode_lockt() local
5133 status = decode_op_hdr(xdr, OP_LOCKT); in decode_lockt()
5134 if (status == -NFS4ERR_DENIED) in decode_lockt()
5136 return status; in decode_lockt()
5141 int status; in decode_locku() local
5143 status = decode_op_hdr(xdr, OP_LOCKU); in decode_locku()
5144 if (status != -EIO) in decode_locku()
5145 nfs_increment_lock_seqid(status, res->seqid); in decode_locku()
5146 if (status == 0) in decode_locku()
5147 status = decode_lock_stateid(xdr, &res->stateid); in decode_locku()
5148 return status; in decode_locku()
5196 int status; in decode_rw_delegation() local
5198 status = decode_delegation_stateid(xdr, &res->stateid); in decode_rw_delegation()
5199 if (unlikely(status)) in decode_rw_delegation()
5200 return status; in decode_rw_delegation()
5267 int status; in decode_open() local
5269 if (!__decode_op_hdr(xdr, OP_OPEN, &status)) in decode_open()
5270 return status; in decode_open()
5271 nfs_increment_open_seqid(status, res->seqid); in decode_open()
5272 if (status) in decode_open()
5273 return status; in decode_open()
5274 status = decode_open_stateid(xdr, &res->stateid); in decode_open()
5275 if (unlikely(status)) in decode_open()
5276 return status; in decode_open()
5305 int status; in decode_open_confirm() local
5307 status = decode_op_hdr(xdr, OP_OPEN_CONFIRM); in decode_open_confirm()
5308 if (status != -EIO) in decode_open_confirm()
5309 nfs_increment_open_seqid(status, res->seqid); in decode_open_confirm()
5310 if (!status) in decode_open_confirm()
5311 status = decode_open_stateid(xdr, &res->stateid); in decode_open_confirm()
5312 return status; in decode_open_confirm()
5317 int status; in decode_open_downgrade() local
5319 status = decode_op_hdr(xdr, OP_OPEN_DOWNGRADE); in decode_open_downgrade()
5320 if (status != -EIO) in decode_open_downgrade()
5321 nfs_increment_open_seqid(status, res->seqid); in decode_open_downgrade()
5322 if (!status) in decode_open_downgrade()
5323 status = decode_open_stateid(xdr, &res->stateid); in decode_open_downgrade()
5324 return status; in decode_open_downgrade()
5342 int status; in decode_read() local
5344 status = decode_op_hdr(xdr, OP_READ); in decode_read()
5345 if (status) in decode_read()
5346 return status; in decode_read()
5366 int status; in decode_readdir() local
5369 status = decode_op_hdr(xdr, OP_READDIR); in decode_readdir()
5370 if (!status) in decode_readdir()
5371 status = decode_verifier(xdr, readdir->verifier.data); in decode_readdir()
5372 if (unlikely(status)) in decode_readdir()
5373 return status; in decode_readdir()
5385 int status; in decode_readlink() local
5387 status = decode_op_hdr(xdr, OP_READLINK); in decode_readlink()
5388 if (status) in decode_readlink()
5389 return status; in decode_readlink()
5419 int status; in decode_remove() local
5421 status = decode_op_hdr(xdr, OP_REMOVE); in decode_remove()
5422 if (status) in decode_remove()
5424 status = decode_change_info(xdr, cinfo); in decode_remove()
5426 return status; in decode_remove()
5432 int status; in decode_rename() local
5434 status = decode_op_hdr(xdr, OP_RENAME); in decode_rename()
5435 if (status) in decode_rename()
5437 if ((status = decode_change_info(xdr, old_cinfo))) in decode_rename()
5439 status = decode_change_info(xdr, new_cinfo); in decode_rename()
5441 return status; in decode_rename()
5461 int status; in decode_getacl() local
5464 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_getacl()
5469 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_getacl()
5471 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_getacl()
5508 return status; in decode_getacl()
5519 int status; in decode_setattr() local
5521 status = decode_op_hdr(xdr, OP_SETATTR); in decode_setattr()
5522 if (status) in decode_setattr()
5523 return status; in decode_setattr()
5591 int status; in decode_write() local
5593 status = decode_op_hdr(xdr, OP_WRITE); in decode_write()
5594 if (status) in decode_write()
5595 return status; in decode_write()
5642 int status; in decode_secinfo_common() local
5663 status = decode_secinfo_gss(xdr, sec_flavor); in decode_secinfo_common()
5664 if (status) in decode_secinfo_common()
5670 status = 0; in decode_secinfo_common()
5672 return status; in decode_secinfo_common()
5677 int status = decode_op_hdr(xdr, OP_SECINFO); in decode_secinfo() local
5678 if (status) in decode_secinfo()
5679 return status; in decode_secinfo()
5686 int status = decode_op_hdr(xdr, OP_SECINFO_NO_NAME); in decode_secinfo_no_name() local
5687 if (status) in decode_secinfo_no_name()
5688 return status; in decode_secinfo_no_name()
5706 int status; in decode_exchange_id() local
5709 status = decode_op_hdr(xdr, OP_EXCHANGE_ID); in decode_exchange_id()
5710 if (status) in decode_exchange_id()
5711 return status; in decode_exchange_id()
5728 status = decode_op_map(xdr, &res->state_protect.enforce); in decode_exchange_id()
5729 if (status) in decode_exchange_id()
5730 return status; in decode_exchange_id()
5731 status = decode_op_map(xdr, &res->state_protect.allow); in decode_exchange_id()
5732 if (status) in decode_exchange_id()
5733 return status; in decode_exchange_id()
5747 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5748 if (unlikely(status)) in decode_exchange_id()
5749 return status; in decode_exchange_id()
5754 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5755 if (unlikely(status)) in decode_exchange_id()
5756 return status; in decode_exchange_id()
5768 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5769 if (unlikely(status)) in decode_exchange_id()
5770 return status; in decode_exchange_id()
5774 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5775 if (unlikely(status)) in decode_exchange_id()
5776 return status; in decode_exchange_id()
5831 int status; in decode_bind_conn_to_session() local
5833 status = decode_op_hdr(xdr, OP_BIND_CONN_TO_SESSION); in decode_bind_conn_to_session()
5834 if (!status) in decode_bind_conn_to_session()
5835 status = decode_sessionid(xdr, &res->sessionid); in decode_bind_conn_to_session()
5836 if (unlikely(status)) in decode_bind_conn_to_session()
5837 return status; in decode_bind_conn_to_session()
5859 int status; in decode_create_session() local
5861 status = decode_op_hdr(xdr, OP_CREATE_SESSION); in decode_create_session()
5862 if (!status) in decode_create_session()
5863 status = decode_sessionid(xdr, &res->sessionid); in decode_create_session()
5864 if (unlikely(status)) in decode_create_session()
5865 return status; in decode_create_session()
5875 status = decode_chan_attrs(xdr, &res->fc_attrs); in decode_create_session()
5876 if (!status) in decode_create_session()
5877 status = decode_chan_attrs(xdr, &res->bc_attrs); in decode_create_session()
5878 return status; in decode_create_session()
5905 int status; in decode_sequence() local
5913 status = decode_op_hdr(xdr, OP_SEQUENCE); in decode_sequence()
5914 if (!status) in decode_sequence()
5915 status = decode_sessionid(xdr, &id); in decode_sequence()
5916 if (unlikely(status)) in decode_sequence()
5923 status = -EREMOTEIO; in decode_sequence()
5954 status = 0; in decode_sequence()
5956 res->sr_status = status; in decode_sequence()
5957 return status; in decode_sequence()
5959 status = -EIO; in decode_sequence()
5979 int status; in decode_getdeviceinfo() local
5981 status = decode_op_hdr(xdr, OP_GETDEVICEINFO); in decode_getdeviceinfo()
5982 if (status) { in decode_getdeviceinfo()
5983 if (status == -ETOOSMALL) { in decode_getdeviceinfo()
5991 return status; in decode_getdeviceinfo()
6040 int status; in decode_layoutget() local
6044 status = decode_op_hdr(xdr, OP_LAYOUTGET); in decode_layoutget()
6045 if (status) in decode_layoutget()
6059 status = -EINVAL; in decode_layoutget()
6085 status = -EINVAL; in decode_layoutget()
6100 res->status = status; in decode_layoutget()
6101 return status; in decode_layoutget()
6103 status = -EIO; in decode_layoutget()
6111 int status; in decode_layoutreturn() local
6113 status = decode_op_hdr(xdr, OP_LAYOUTRETURN); in decode_layoutreturn()
6114 if (status) in decode_layoutreturn()
6115 return status; in decode_layoutreturn()
6121 status = decode_layout_stateid(xdr, &res->stateid); in decode_layoutreturn()
6124 return status; in decode_layoutreturn()
6133 int status; in decode_layoutcommit() local
6135 status = decode_op_hdr(xdr, OP_LAYOUTCOMMIT); in decode_layoutcommit()
6136 res->status = status; in decode_layoutcommit()
6137 if (status) in decode_layoutcommit()
6138 return status; in decode_layoutcommit()
6158 int status; in decode_test_stateid() local
6161 status = decode_op_hdr(xdr, OP_TEST_STATEID); in decode_test_stateid()
6162 if (status) in decode_test_stateid()
6163 return status; in decode_test_stateid()
6175 res->status = be32_to_cpup(p++); in decode_test_stateid()
6177 return status; in decode_test_stateid()
6183 res->status = decode_op_hdr(xdr, OP_FREE_STATEID); in decode_free_stateid()
6184 return res->status; in decode_free_stateid()
6215 int status; in nfs4_xdr_dec_open_downgrade() local
6217 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_downgrade()
6218 if (status) in nfs4_xdr_dec_open_downgrade()
6220 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_downgrade()
6221 if (status) in nfs4_xdr_dec_open_downgrade()
6223 status = decode_putfh(xdr); in nfs4_xdr_dec_open_downgrade()
6224 if (status) in nfs4_xdr_dec_open_downgrade()
6227 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_open_downgrade()
6228 res->lr_ret = status; in nfs4_xdr_dec_open_downgrade()
6229 if (status) in nfs4_xdr_dec_open_downgrade()
6232 status = decode_open_downgrade(xdr, res); in nfs4_xdr_dec_open_downgrade()
6234 return status; in nfs4_xdr_dec_open_downgrade()
6245 int status; in nfs4_xdr_dec_access() local
6247 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_access()
6248 if (status) in nfs4_xdr_dec_access()
6250 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_access()
6251 if (status) in nfs4_xdr_dec_access()
6253 status = decode_putfh(xdr); in nfs4_xdr_dec_access()
6254 if (status != 0) in nfs4_xdr_dec_access()
6256 status = decode_access(xdr, &res->supported, &res->access); in nfs4_xdr_dec_access()
6257 if (status != 0) in nfs4_xdr_dec_access()
6262 return status; in nfs4_xdr_dec_access()
6273 int status; in nfs4_xdr_dec_lookup() local
6275 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup()
6276 if (status) in nfs4_xdr_dec_lookup()
6278 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup()
6279 if (status) in nfs4_xdr_dec_lookup()
6281 status = decode_putfh(xdr); in nfs4_xdr_dec_lookup()
6282 if (status) in nfs4_xdr_dec_lookup()
6284 status = decode_lookup(xdr); in nfs4_xdr_dec_lookup()
6285 if (status) in nfs4_xdr_dec_lookup()
6287 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup()
6288 if (status) in nfs4_xdr_dec_lookup()
6290 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_lookup()
6292 return status; in nfs4_xdr_dec_lookup()
6303 int status; in nfs4_xdr_dec_lookupp() local
6305 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookupp()
6306 if (status) in nfs4_xdr_dec_lookupp()
6308 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookupp()
6309 if (status) in nfs4_xdr_dec_lookupp()
6311 status = decode_putfh(xdr); in nfs4_xdr_dec_lookupp()
6312 if (status) in nfs4_xdr_dec_lookupp()
6314 status = decode_lookupp(xdr); in nfs4_xdr_dec_lookupp()
6315 if (status) in nfs4_xdr_dec_lookupp()
6317 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookupp()
6318 if (status) in nfs4_xdr_dec_lookupp()
6320 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_lookupp()
6322 return status; in nfs4_xdr_dec_lookupp()
6334 int status; in nfs4_xdr_dec_lookup_root() local
6336 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup_root()
6337 if (status) in nfs4_xdr_dec_lookup_root()
6339 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup_root()
6340 if (status) in nfs4_xdr_dec_lookup_root()
6342 status = decode_putrootfh(xdr); in nfs4_xdr_dec_lookup_root()
6343 if (status) in nfs4_xdr_dec_lookup_root()
6345 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup_root()
6346 if (status == 0) in nfs4_xdr_dec_lookup_root()
6347 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_lookup_root()
6349 return status; in nfs4_xdr_dec_lookup_root()
6360 int status; in nfs4_xdr_dec_remove() local
6362 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_remove()
6363 if (status) in nfs4_xdr_dec_remove()
6365 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_remove()
6366 if (status) in nfs4_xdr_dec_remove()
6368 status = decode_putfh(xdr); in nfs4_xdr_dec_remove()
6369 if (status) in nfs4_xdr_dec_remove()
6371 status = decode_remove(xdr, &res->cinfo); in nfs4_xdr_dec_remove()
6373 return status; in nfs4_xdr_dec_remove()
6384 int status; in nfs4_xdr_dec_rename() local
6386 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_rename()
6387 if (status) in nfs4_xdr_dec_rename()
6389 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_rename()
6390 if (status) in nfs4_xdr_dec_rename()
6392 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6393 if (status) in nfs4_xdr_dec_rename()
6395 status = decode_savefh(xdr); in nfs4_xdr_dec_rename()
6396 if (status) in nfs4_xdr_dec_rename()
6398 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6399 if (status) in nfs4_xdr_dec_rename()
6401 status = decode_rename(xdr, &res->old_cinfo, &res->new_cinfo); in nfs4_xdr_dec_rename()
6403 return status; in nfs4_xdr_dec_rename()
6414 int status; in nfs4_xdr_dec_link() local
6416 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_link()
6417 if (status) in nfs4_xdr_dec_link()
6419 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_link()
6420 if (status) in nfs4_xdr_dec_link()
6422 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6423 if (status) in nfs4_xdr_dec_link()
6425 status = decode_savefh(xdr); in nfs4_xdr_dec_link()
6426 if (status) in nfs4_xdr_dec_link()
6428 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6429 if (status) in nfs4_xdr_dec_link()
6431 status = decode_link(xdr, &res->cinfo); in nfs4_xdr_dec_link()
6432 if (status) in nfs4_xdr_dec_link()
6438 status = decode_restorefh(xdr); in nfs4_xdr_dec_link()
6439 if (status) in nfs4_xdr_dec_link()
6443 return status; in nfs4_xdr_dec_link()
6454 int status; in nfs4_xdr_dec_create() local
6456 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create()
6457 if (status) in nfs4_xdr_dec_create()
6459 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_create()
6460 if (status) in nfs4_xdr_dec_create()
6462 status = decode_putfh(xdr); in nfs4_xdr_dec_create()
6463 if (status) in nfs4_xdr_dec_create()
6465 status = decode_create(xdr, &res->dir_cinfo); in nfs4_xdr_dec_create()
6466 if (status) in nfs4_xdr_dec_create()
6468 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_create()
6469 if (status) in nfs4_xdr_dec_create()
6473 return status; in nfs4_xdr_dec_create()
6493 int status; in nfs4_xdr_dec_getattr() local
6495 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getattr()
6496 if (status) in nfs4_xdr_dec_getattr()
6498 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getattr()
6499 if (status) in nfs4_xdr_dec_getattr()
6501 status = decode_putfh(xdr); in nfs4_xdr_dec_getattr()
6502 if (status) in nfs4_xdr_dec_getattr()
6504 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_getattr()
6506 return status; in nfs4_xdr_dec_getattr()
6536 int status; in nfs4_xdr_dec_setacl() local
6538 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setacl()
6539 if (status) in nfs4_xdr_dec_setacl()
6541 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setacl()
6542 if (status) in nfs4_xdr_dec_setacl()
6544 status = decode_putfh(xdr); in nfs4_xdr_dec_setacl()
6545 if (status) in nfs4_xdr_dec_setacl()
6547 status = decode_setattr(xdr); in nfs4_xdr_dec_setacl()
6549 return status; in nfs4_xdr_dec_setacl()
6561 int status; in nfs4_xdr_dec_getacl() local
6565 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getacl()
6566 if (status) in nfs4_xdr_dec_getacl()
6568 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getacl()
6569 if (status) in nfs4_xdr_dec_getacl()
6571 status = decode_putfh(xdr); in nfs4_xdr_dec_getacl()
6572 if (status) in nfs4_xdr_dec_getacl()
6574 status = decode_getacl(xdr, rqstp, res, res->acl_type); in nfs4_xdr_dec_getacl()
6577 return status; in nfs4_xdr_dec_getacl()
6588 int status; in nfs4_xdr_dec_close() local
6590 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_close()
6591 if (status) in nfs4_xdr_dec_close()
6593 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_close()
6594 if (status) in nfs4_xdr_dec_close()
6596 status = decode_putfh(xdr); in nfs4_xdr_dec_close()
6597 if (status) in nfs4_xdr_dec_close()
6600 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_close()
6601 res->lr_ret = status; in nfs4_xdr_dec_close()
6602 if (status) in nfs4_xdr_dec_close()
6606 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_close()
6607 if (status != 0) in nfs4_xdr_dec_close()
6610 status = decode_close(xdr, res); in nfs4_xdr_dec_close()
6612 return status; in nfs4_xdr_dec_close()
6623 int status; in nfs4_xdr_dec_open() local
6625 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open()
6626 if (status) in nfs4_xdr_dec_open()
6628 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open()
6629 if (status) in nfs4_xdr_dec_open()
6631 status = decode_putfh(xdr); in nfs4_xdr_dec_open()
6632 if (status) in nfs4_xdr_dec_open()
6634 status = decode_open(xdr, res); in nfs4_xdr_dec_open()
6635 if (status) in nfs4_xdr_dec_open()
6637 status = decode_getfh(xdr, &res->fh); in nfs4_xdr_dec_open()
6638 if (status) in nfs4_xdr_dec_open()
6646 return status; in nfs4_xdr_dec_open()
6658 int status; in nfs4_xdr_dec_open_confirm() local
6660 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_confirm()
6661 if (status) in nfs4_xdr_dec_open_confirm()
6663 status = decode_putfh(xdr); in nfs4_xdr_dec_open_confirm()
6664 if (status) in nfs4_xdr_dec_open_confirm()
6666 status = decode_open_confirm(xdr, res); in nfs4_xdr_dec_open_confirm()
6668 return status; in nfs4_xdr_dec_open_confirm()
6680 int status; in nfs4_xdr_dec_open_noattr() local
6682 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_noattr()
6683 if (status) in nfs4_xdr_dec_open_noattr()
6685 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_noattr()
6686 if (status) in nfs4_xdr_dec_open_noattr()
6688 status = decode_putfh(xdr); in nfs4_xdr_dec_open_noattr()
6689 if (status) in nfs4_xdr_dec_open_noattr()
6691 status = decode_open(xdr, res); in nfs4_xdr_dec_open_noattr()
6692 if (status) in nfs4_xdr_dec_open_noattr()
6700 return status; in nfs4_xdr_dec_open_noattr()
6712 int status; in nfs4_xdr_dec_setattr() local
6714 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setattr()
6715 if (status) in nfs4_xdr_dec_setattr()
6717 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setattr()
6718 if (status) in nfs4_xdr_dec_setattr()
6720 status = decode_putfh(xdr); in nfs4_xdr_dec_setattr()
6721 if (status) in nfs4_xdr_dec_setattr()
6723 status = decode_setattr(xdr); in nfs4_xdr_dec_setattr()
6724 if (status) in nfs4_xdr_dec_setattr()
6728 return status; in nfs4_xdr_dec_setattr()
6739 int status; in nfs4_xdr_dec_lock() local
6741 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lock()
6742 if (status) in nfs4_xdr_dec_lock()
6744 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lock()
6745 if (status) in nfs4_xdr_dec_lock()
6747 status = decode_putfh(xdr); in nfs4_xdr_dec_lock()
6748 if (status) in nfs4_xdr_dec_lock()
6750 status = decode_lock(xdr, res); in nfs4_xdr_dec_lock()
6752 return status; in nfs4_xdr_dec_lock()
6763 int status; in nfs4_xdr_dec_lockt() local
6765 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lockt()
6766 if (status) in nfs4_xdr_dec_lockt()
6768 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lockt()
6769 if (status) in nfs4_xdr_dec_lockt()
6771 status = decode_putfh(xdr); in nfs4_xdr_dec_lockt()
6772 if (status) in nfs4_xdr_dec_lockt()
6774 status = decode_lockt(xdr, res); in nfs4_xdr_dec_lockt()
6776 return status; in nfs4_xdr_dec_lockt()
6787 int status; in nfs4_xdr_dec_locku() local
6789 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_locku()
6790 if (status) in nfs4_xdr_dec_locku()
6792 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_locku()
6793 if (status) in nfs4_xdr_dec_locku()
6795 status = decode_putfh(xdr); in nfs4_xdr_dec_locku()
6796 if (status) in nfs4_xdr_dec_locku()
6798 status = decode_locku(xdr, res); in nfs4_xdr_dec_locku()
6800 return status; in nfs4_xdr_dec_locku()
6807 int status; in nfs4_xdr_dec_release_lockowner() local
6809 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_release_lockowner()
6810 if (!status) in nfs4_xdr_dec_release_lockowner()
6811 status = decode_release_lockowner(xdr); in nfs4_xdr_dec_release_lockowner()
6812 return status; in nfs4_xdr_dec_release_lockowner()
6824 int status; in nfs4_xdr_dec_readlink() local
6826 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readlink()
6827 if (status) in nfs4_xdr_dec_readlink()
6829 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readlink()
6830 if (status) in nfs4_xdr_dec_readlink()
6832 status = decode_putfh(xdr); in nfs4_xdr_dec_readlink()
6833 if (status) in nfs4_xdr_dec_readlink()
6835 status = decode_readlink(xdr, rqstp); in nfs4_xdr_dec_readlink()
6837 return status; in nfs4_xdr_dec_readlink()
6848 int status; in nfs4_xdr_dec_readdir() local
6850 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readdir()
6851 if (status) in nfs4_xdr_dec_readdir()
6853 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readdir()
6854 if (status) in nfs4_xdr_dec_readdir()
6856 status = decode_putfh(xdr); in nfs4_xdr_dec_readdir()
6857 if (status) in nfs4_xdr_dec_readdir()
6859 status = decode_readdir(xdr, rqstp, res); in nfs4_xdr_dec_readdir()
6861 return status; in nfs4_xdr_dec_readdir()
6872 int status; in nfs4_xdr_dec_read() local
6874 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_read()
6875 res->op_status = hdr.status; in nfs4_xdr_dec_read()
6876 if (status) in nfs4_xdr_dec_read()
6878 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read()
6879 if (status) in nfs4_xdr_dec_read()
6881 status = decode_putfh(xdr); in nfs4_xdr_dec_read()
6882 if (status) in nfs4_xdr_dec_read()
6884 status = decode_read(xdr, rqstp, res); in nfs4_xdr_dec_read()
6885 if (!status) in nfs4_xdr_dec_read()
6886 status = res->count; in nfs4_xdr_dec_read()
6888 return status; in nfs4_xdr_dec_read()
6899 int status; in nfs4_xdr_dec_write() local
6901 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_write()
6902 res->op_status = hdr.status; in nfs4_xdr_dec_write()
6903 if (status) in nfs4_xdr_dec_write()
6905 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_write()
6906 if (status) in nfs4_xdr_dec_write()
6908 status = decode_putfh(xdr); in nfs4_xdr_dec_write()
6909 if (status) in nfs4_xdr_dec_write()
6911 status = decode_write(xdr, res); in nfs4_xdr_dec_write()
6912 if (status) in nfs4_xdr_dec_write()
6916 if (!status) in nfs4_xdr_dec_write()
6917 status = res->count; in nfs4_xdr_dec_write()
6919 return status; in nfs4_xdr_dec_write()
6930 int status; in nfs4_xdr_dec_commit() local
6932 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_commit()
6933 res->op_status = hdr.status; in nfs4_xdr_dec_commit()
6934 if (status) in nfs4_xdr_dec_commit()
6936 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_commit()
6937 if (status) in nfs4_xdr_dec_commit()
6939 status = decode_putfh(xdr); in nfs4_xdr_dec_commit()
6940 if (status) in nfs4_xdr_dec_commit()
6942 status = decode_commit(xdr, res); in nfs4_xdr_dec_commit()
6944 return status; in nfs4_xdr_dec_commit()
6955 int status; in nfs4_xdr_dec_fsinfo() local
6957 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsinfo()
6958 if (!status) in nfs4_xdr_dec_fsinfo()
6959 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fsinfo()
6960 if (!status) in nfs4_xdr_dec_fsinfo()
6961 status = decode_putfh(xdr); in nfs4_xdr_dec_fsinfo()
6962 if (!status) in nfs4_xdr_dec_fsinfo()
6963 status = decode_fsinfo(xdr, res->fsinfo); in nfs4_xdr_dec_fsinfo()
6964 return status; in nfs4_xdr_dec_fsinfo()
6975 int status; in nfs4_xdr_dec_pathconf() local
6977 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_pathconf()
6978 if (!status) in nfs4_xdr_dec_pathconf()
6979 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_pathconf()
6980 if (!status) in nfs4_xdr_dec_pathconf()
6981 status = decode_putfh(xdr); in nfs4_xdr_dec_pathconf()
6982 if (!status) in nfs4_xdr_dec_pathconf()
6983 status = decode_pathconf(xdr, res->pathconf); in nfs4_xdr_dec_pathconf()
6984 return status; in nfs4_xdr_dec_pathconf()
6995 int status; in nfs4_xdr_dec_statfs() local
6997 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_statfs()
6998 if (!status) in nfs4_xdr_dec_statfs()
6999 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_statfs()
7000 if (!status) in nfs4_xdr_dec_statfs()
7001 status = decode_putfh(xdr); in nfs4_xdr_dec_statfs()
7002 if (!status) in nfs4_xdr_dec_statfs()
7003 status = decode_statfs(xdr, res->fsstat); in nfs4_xdr_dec_statfs()
7004 return status; in nfs4_xdr_dec_statfs()
7016 int status; in nfs4_xdr_dec_server_caps() local
7018 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_server_caps()
7019 if (status) in nfs4_xdr_dec_server_caps()
7021 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_server_caps()
7022 if (status) in nfs4_xdr_dec_server_caps()
7024 status = decode_putfh(xdr); in nfs4_xdr_dec_server_caps()
7025 if (status) in nfs4_xdr_dec_server_caps()
7027 status = decode_server_caps(xdr, res); in nfs4_xdr_dec_server_caps()
7029 return status; in nfs4_xdr_dec_server_caps()
7039 int status; in nfs4_xdr_dec_renew() local
7041 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_renew()
7042 if (!status) in nfs4_xdr_dec_renew()
7043 status = decode_renew(xdr); in nfs4_xdr_dec_renew()
7044 return status; in nfs4_xdr_dec_renew()
7056 int status; in nfs4_xdr_dec_setclientid() local
7058 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid()
7059 if (!status) in nfs4_xdr_dec_setclientid()
7060 status = decode_setclientid(xdr, res); in nfs4_xdr_dec_setclientid()
7061 return status; in nfs4_xdr_dec_setclientid()
7072 int status; in nfs4_xdr_dec_setclientid_confirm() local
7074 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid_confirm()
7075 if (!status) in nfs4_xdr_dec_setclientid_confirm()
7076 status = decode_setclientid_confirm(xdr); in nfs4_xdr_dec_setclientid_confirm()
7077 return status; in nfs4_xdr_dec_setclientid_confirm()
7089 int status; in nfs4_xdr_dec_delegreturn() local
7091 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_delegreturn()
7092 if (status) in nfs4_xdr_dec_delegreturn()
7094 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_delegreturn()
7095 if (status) in nfs4_xdr_dec_delegreturn()
7097 status = decode_putfh(xdr); in nfs4_xdr_dec_delegreturn()
7098 if (status != 0) in nfs4_xdr_dec_delegreturn()
7101 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_delegreturn()
7102 res->lr_ret = status; in nfs4_xdr_dec_delegreturn()
7103 if (status) in nfs4_xdr_dec_delegreturn()
7107 status = decode_delegattr(xdr); in nfs4_xdr_dec_delegreturn()
7108 res->sattr_ret = status; in nfs4_xdr_dec_delegreturn()
7109 if (status) in nfs4_xdr_dec_delegreturn()
7113 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_delegreturn()
7114 if (status != 0) in nfs4_xdr_dec_delegreturn()
7117 status = decode_delegreturn(xdr); in nfs4_xdr_dec_delegreturn()
7119 return status; in nfs4_xdr_dec_delegreturn()
7131 int status; in nfs4_xdr_dec_fs_locations() local
7133 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fs_locations()
7134 if (status) in nfs4_xdr_dec_fs_locations()
7136 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fs_locations()
7137 if (status) in nfs4_xdr_dec_fs_locations()
7139 status = decode_putfh(xdr); in nfs4_xdr_dec_fs_locations()
7140 if (status) in nfs4_xdr_dec_fs_locations()
7144 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
7148 if (status) in nfs4_xdr_dec_fs_locations()
7151 status = decode_renew(xdr); in nfs4_xdr_dec_fs_locations()
7153 status = decode_lookup(xdr); in nfs4_xdr_dec_fs_locations()
7154 if (status) in nfs4_xdr_dec_fs_locations()
7157 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
7163 return status; in nfs4_xdr_dec_fs_locations()
7175 int status; in nfs4_xdr_dec_secinfo() local
7177 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo()
7178 if (status) in nfs4_xdr_dec_secinfo()
7180 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo()
7181 if (status) in nfs4_xdr_dec_secinfo()
7183 status = decode_putfh(xdr); in nfs4_xdr_dec_secinfo()
7184 if (status) in nfs4_xdr_dec_secinfo()
7186 status = decode_secinfo(xdr, res); in nfs4_xdr_dec_secinfo()
7188 return status; in nfs4_xdr_dec_secinfo()
7200 int status; in nfs4_xdr_dec_fsid_present() local
7202 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsid_present()
7203 if (status) in nfs4_xdr_dec_fsid_present()
7205 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_fsid_present()
7206 if (status) in nfs4_xdr_dec_fsid_present()
7208 status = decode_putfh(xdr); in nfs4_xdr_dec_fsid_present()
7209 if (status) in nfs4_xdr_dec_fsid_present()
7211 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_fsid_present()
7212 if (status) in nfs4_xdr_dec_fsid_present()
7215 status = decode_renew(xdr); in nfs4_xdr_dec_fsid_present()
7217 return status; in nfs4_xdr_dec_fsid_present()
7229 int status; in nfs4_xdr_dec_bind_conn_to_session() local
7231 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_bind_conn_to_session()
7232 if (!status) in nfs4_xdr_dec_bind_conn_to_session()
7233 status = decode_bind_conn_to_session(xdr, res); in nfs4_xdr_dec_bind_conn_to_session()
7234 return status; in nfs4_xdr_dec_bind_conn_to_session()
7245 int status; in nfs4_xdr_dec_exchange_id() local
7247 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_exchange_id()
7248 if (!status) in nfs4_xdr_dec_exchange_id()
7249 status = decode_exchange_id(xdr, res); in nfs4_xdr_dec_exchange_id()
7250 return status; in nfs4_xdr_dec_exchange_id()
7261 int status; in nfs4_xdr_dec_create_session() local
7263 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create_session()
7264 if (!status) in nfs4_xdr_dec_create_session()
7265 status = decode_create_session(xdr, res); in nfs4_xdr_dec_create_session()
7266 return status; in nfs4_xdr_dec_create_session()
7277 int status; in nfs4_xdr_dec_destroy_session() local
7279 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_session()
7280 if (!status) in nfs4_xdr_dec_destroy_session()
7281 status = decode_destroy_session(xdr, res); in nfs4_xdr_dec_destroy_session()
7282 return status; in nfs4_xdr_dec_destroy_session()
7293 int status; in nfs4_xdr_dec_destroy_clientid() local
7295 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_clientid()
7296 if (!status) in nfs4_xdr_dec_destroy_clientid()
7297 status = decode_destroy_clientid(xdr, res); in nfs4_xdr_dec_destroy_clientid()
7298 return status; in nfs4_xdr_dec_destroy_clientid()
7309 int status; in nfs4_xdr_dec_sequence() local
7311 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_sequence()
7312 if (!status) in nfs4_xdr_dec_sequence()
7313 status = decode_sequence(xdr, res, rqstp); in nfs4_xdr_dec_sequence()
7314 return status; in nfs4_xdr_dec_sequence()
7328 int status; in nfs4_xdr_dec_get_lease_time() local
7330 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_get_lease_time()
7331 if (!status) in nfs4_xdr_dec_get_lease_time()
7332 status = decode_sequence(xdr, &res->lr_seq_res, rqstp); in nfs4_xdr_dec_get_lease_time()
7333 if (!status) in nfs4_xdr_dec_get_lease_time()
7334 status = decode_putrootfh(xdr); in nfs4_xdr_dec_get_lease_time()
7335 if (!status) in nfs4_xdr_dec_get_lease_time()
7336 status = decode_fsinfo(xdr, res->lr_fsinfo); in nfs4_xdr_dec_get_lease_time()
7337 return status; in nfs4_xdr_dec_get_lease_time()
7351 int status; in nfs4_xdr_dec_reclaim_complete() local
7353 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_reclaim_complete()
7354 if (!status) in nfs4_xdr_dec_reclaim_complete()
7355 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_reclaim_complete()
7356 if (!status) in nfs4_xdr_dec_reclaim_complete()
7357 status = decode_reclaim_complete(xdr, NULL); in nfs4_xdr_dec_reclaim_complete()
7358 return status; in nfs4_xdr_dec_reclaim_complete()
7370 int status; in nfs4_xdr_dec_getdeviceinfo() local
7372 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getdeviceinfo()
7373 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7375 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getdeviceinfo()
7376 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7378 status = decode_getdeviceinfo(xdr, res); in nfs4_xdr_dec_getdeviceinfo()
7380 return status; in nfs4_xdr_dec_getdeviceinfo()
7392 int status; in nfs4_xdr_dec_layoutget() local
7394 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutget()
7395 if (status) in nfs4_xdr_dec_layoutget()
7397 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutget()
7398 if (status) in nfs4_xdr_dec_layoutget()
7400 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutget()
7401 if (status) in nfs4_xdr_dec_layoutget()
7403 status = decode_layoutget(xdr, rqstp, res); in nfs4_xdr_dec_layoutget()
7405 return status; in nfs4_xdr_dec_layoutget()
7417 int status; in nfs4_xdr_dec_layoutreturn() local
7419 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutreturn()
7420 if (status) in nfs4_xdr_dec_layoutreturn()
7422 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutreturn()
7423 if (status) in nfs4_xdr_dec_layoutreturn()
7425 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutreturn()
7426 if (status) in nfs4_xdr_dec_layoutreturn()
7428 status = decode_layoutreturn(xdr, res); in nfs4_xdr_dec_layoutreturn()
7430 return status; in nfs4_xdr_dec_layoutreturn()
7442 int status; in nfs4_xdr_dec_layoutcommit() local
7444 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutcommit()
7445 if (status) in nfs4_xdr_dec_layoutcommit()
7447 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutcommit()
7448 if (status) in nfs4_xdr_dec_layoutcommit()
7450 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutcommit()
7451 if (status) in nfs4_xdr_dec_layoutcommit()
7453 status = decode_layoutcommit(xdr, rqstp, res); in nfs4_xdr_dec_layoutcommit()
7454 if (status) in nfs4_xdr_dec_layoutcommit()
7458 return status; in nfs4_xdr_dec_layoutcommit()
7470 int status; in nfs4_xdr_dec_secinfo_no_name() local
7472 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo_no_name()
7473 if (status) in nfs4_xdr_dec_secinfo_no_name()
7475 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo_no_name()
7476 if (status) in nfs4_xdr_dec_secinfo_no_name()
7478 status = decode_putrootfh(xdr); in nfs4_xdr_dec_secinfo_no_name()
7479 if (status) in nfs4_xdr_dec_secinfo_no_name()
7481 status = decode_secinfo_no_name(xdr, res); in nfs4_xdr_dec_secinfo_no_name()
7483 return status; in nfs4_xdr_dec_secinfo_no_name()
7495 int status; in nfs4_xdr_dec_test_stateid() local
7497 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_test_stateid()
7498 if (status) in nfs4_xdr_dec_test_stateid()
7500 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_test_stateid()
7501 if (status) in nfs4_xdr_dec_test_stateid()
7503 status = decode_test_stateid(xdr, res); in nfs4_xdr_dec_test_stateid()
7505 return status; in nfs4_xdr_dec_test_stateid()
7517 int status; in nfs4_xdr_dec_free_stateid() local
7519 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_free_stateid()
7520 if (status) in nfs4_xdr_dec_free_stateid()
7522 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_free_stateid()
7523 if (status) in nfs4_xdr_dec_free_stateid()
7525 status = decode_free_stateid(xdr, res); in nfs4_xdr_dec_free_stateid()
7527 return status; in nfs4_xdr_dec_free_stateid()