Lines Matching full:status

955 	int32_t		status;  member
3193 hdr->status = tmp; in decode_compound_hdr()
3205 return nfs4_stat_to_errno(hdr->status); in decode_compound_hdr()
3631 int status = 0; in decode_attr_files_avail() local
3644 return status; in decode_attr_files_avail()
3650 int status = 0; in decode_attr_files_free() local
3663 return status; in decode_attr_files_free()
3669 int status = 0; in decode_attr_files_total() local
3682 return status; in decode_attr_files_total()
3689 int status = 0; in decode_pathname() local
3704 status = decode_opaque_inline(xdr, &component->len, &component->data); in decode_pathname()
3705 if (unlikely(status != 0)) in decode_pathname()
3713 return status; in decode_pathname()
3722 dprintk(" status %d", status); in decode_pathname()
3723 status = -EIO; in decode_pathname()
3731 int status = -EIO; in decode_attr_fs_locations() local
3735 status = 0; in decode_attr_fs_locations()
3739 status = -EIO; in decode_attr_fs_locations()
3744 status = decode_pathname(xdr, &res->fs_path); in decode_attr_fs_locations()
3745 if (unlikely(status != 0)) in decode_attr_fs_locations()
3777 status = decode_opaque_inline(xdr, &len, &data); in decode_attr_fs_locations()
3778 if (unlikely(status != 0)) in decode_attr_fs_locations()
3784 status = decode_opaque_inline(xdr, &server->len, &server->data); in decode_attr_fs_locations()
3785 if (unlikely(status != 0)) in decode_attr_fs_locations()
3789 status = decode_pathname(xdr, &loc->rootpath); in decode_attr_fs_locations()
3790 if (unlikely(status != 0)) in decode_attr_fs_locations()
3794 status = NFS_ATTR_FATTR_V4_LOCATIONS; in decode_attr_fs_locations()
3796 dprintk("%s: fs_locations done, error = %d\n", __func__, status); in decode_attr_fs_locations()
3797 return status; in decode_attr_fs_locations()
3799 status = -EIO; in decode_attr_fs_locations()
3806 int status = 0; in decode_attr_maxfilesize() local
3819 return status; in decode_attr_maxfilesize()
3825 int status = 0; in decode_attr_maxlink() local
3838 return status; in decode_attr_maxlink()
3844 int status = 0; in decode_attr_maxname() local
3857 return status; in decode_attr_maxname()
3863 int status = 0; in decode_attr_maxread() local
3880 return status; in decode_attr_maxread()
3886 int status = 0; in decode_attr_maxwrite() local
3903 return status; in decode_attr_maxwrite()
4059 int status = 0; in decode_attr_space_avail() local
4072 return status; in decode_attr_space_avail()
4078 int status = 0; in decode_attr_space_free() local
4091 return status; in decode_attr_space_free()
4097 int status = 0; in decode_attr_space_total() local
4110 return status; in decode_attr_space_total()
4158 int status = 0; in decode_attr_time_access() local
4165 status = decode_attr_time(xdr, time); in decode_attr_time_access()
4166 if (status == 0) in decode_attr_time_access()
4167 status = NFS_ATTR_FATTR_ATIME; in decode_attr_time_access()
4171 return status; in decode_attr_time_access()
4176 int status = 0; in decode_attr_time_metadata() local
4183 status = decode_attr_time(xdr, time); in decode_attr_time_metadata()
4184 if (status == 0) in decode_attr_time_metadata()
4185 status = NFS_ATTR_FATTR_CTIME; in decode_attr_time_metadata()
4189 return status; in decode_attr_time_metadata()
4195 int status = 0; in decode_attr_time_delta() local
4202 status = decode_attr_time(xdr, time); in decode_attr_time_delta()
4207 return status; in decode_attr_time_delta()
4217 int status = 0; in decode_attr_security_label() local
4247 status = NFS_ATTR_FATTR_V4_SECURITY_LABEL; in decode_attr_security_label()
4258 return status; in decode_attr_security_label()
4263 int status = 0; in decode_attr_time_modify() local
4270 status = decode_attr_time(xdr, time); in decode_attr_time_modify()
4271 if (status == 0) in decode_attr_time_modify()
4272 status = NFS_ATTR_FATTR_MTIME; in decode_attr_time_modify()
4276 return status; in decode_attr_time_modify()
4333 int status; in decode_access() local
4335 status = decode_op_hdr(xdr, OP_ACCESS); in decode_access()
4336 if (status) in decode_access()
4337 return status; in decode_access()
4389 int status; in decode_close() local
4391 status = decode_op_hdr(xdr, OP_CLOSE); in decode_close()
4392 if (status != -EIO) in decode_close()
4393 nfs_increment_open_seqid(status, res->seqid); in decode_close()
4394 if (!status) in decode_close()
4395 status = decode_invalid_stateid(xdr, &res->stateid); in decode_close()
4396 return status; in decode_close()
4412 int status; in decode_commit() local
4414 status = decode_op_hdr(xdr, OP_COMMIT); in decode_commit()
4415 if (!status) in decode_commit()
4416 status = decode_write_verifier(xdr, &verf->verifier); in decode_commit()
4417 if (!status) in decode_commit()
4419 return status; in decode_commit()
4426 int status; in decode_create() local
4428 status = decode_op_hdr(xdr, OP_CREATE); in decode_create()
4429 if (status) in decode_create()
4430 return status; in decode_create()
4431 if ((status = decode_change_info(xdr, cinfo))) in decode_create()
4432 return status; in decode_create()
4447 int status; in decode_server_caps() local
4449 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_server_caps()
4451 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_server_caps()
4453 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_server_caps()
4455 if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0) in decode_server_caps()
4457 if ((status = decode_attr_fh_expire_type(xdr, bitmap, in decode_server_caps()
4460 if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0) in decode_server_caps()
4462 if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0) in decode_server_caps()
4464 if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0) in decode_server_caps()
4466 if ((status = decode_attr_case_insensitive(xdr, bitmap, &res->case_insensitive)) != 0) in decode_server_caps()
4468 if ((status = decode_attr_case_preserving(xdr, bitmap, &res->case_preserving)) != 0) in decode_server_caps()
4470 if ((status = decode_attr_exclcreat_supported(xdr, bitmap, in decode_server_caps()
4473 status = verify_attr_len(xdr, savep, attrlen); in decode_server_caps()
4475 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_server_caps()
4476 return status; in decode_server_caps()
4483 int status; in decode_statfs() local
4485 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_statfs()
4487 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_statfs()
4489 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_statfs()
4492 if ((status = decode_attr_files_avail(xdr, bitmap, &fsstat->afiles)) != 0) in decode_statfs()
4494 if ((status = decode_attr_files_free(xdr, bitmap, &fsstat->ffiles)) != 0) in decode_statfs()
4496 if ((status = decode_attr_files_total(xdr, bitmap, &fsstat->tfiles)) != 0) in decode_statfs()
4499 status = -EIO; in decode_statfs()
4503 if ((status = decode_attr_space_avail(xdr, bitmap, &fsstat->abytes)) != 0) in decode_statfs()
4505 if ((status = decode_attr_space_free(xdr, bitmap, &fsstat->fbytes)) != 0) in decode_statfs()
4507 if ((status = decode_attr_space_total(xdr, bitmap, &fsstat->tbytes)) != 0) in decode_statfs()
4510 status = verify_attr_len(xdr, savep, attrlen); in decode_statfs()
4512 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_statfs()
4513 return status; in decode_statfs()
4520 int status; in decode_pathconf() local
4522 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_pathconf()
4524 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_pathconf()
4526 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_pathconf()
4529 if ((status = decode_attr_maxlink(xdr, bitmap, &pathconf->max_link)) != 0) in decode_pathconf()
4531 if ((status = decode_attr_maxname(xdr, bitmap, &pathconf->max_namelen)) != 0) in decode_pathconf()
4534 status = verify_attr_len(xdr, savep, attrlen); in decode_pathconf()
4536 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_pathconf()
4537 return status; in decode_pathconf()
4563 int status; in decode_first_threshold_item4() local
4572 status = decode_attr_bitmap(xdr, bitmap); in decode_first_threshold_item4()
4573 if (status < 0) in decode_first_threshold_item4()
4577 status = decode_attr_length(xdr, &attrlen, &savep); in decode_first_threshold_item4()
4578 if (status < 0) in decode_first_threshold_item4()
4581 status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD); in decode_first_threshold_item4()
4582 if (status < 0) in decode_first_threshold_item4()
4584 status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR); in decode_first_threshold_item4()
4585 if (status < 0) in decode_first_threshold_item4()
4587 status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz, in decode_first_threshold_item4()
4589 if (status < 0) in decode_first_threshold_item4()
4591 status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz, in decode_first_threshold_item4()
4593 if (status < 0) in decode_first_threshold_item4()
4596 status = verify_attr_len(xdr, savep, attrlen); in decode_first_threshold_item4()
4603 dprintk("%s ret=%d!\n", __func__, status); in decode_first_threshold_item4()
4604 return status; in decode_first_threshold_item4()
4615 int status = 0; in decode_attr_mdsthreshold() local
4635 status = decode_first_threshold_item4(xdr, res); in decode_attr_mdsthreshold()
4638 return status; in decode_attr_mdsthreshold()
4645 int status; in decode_getfattr_attrs() local
4650 status = decode_attr_type(xdr, bitmap, &type); in decode_getfattr_attrs()
4651 if (status < 0) in decode_getfattr_attrs()
4654 if (status != 0) { in decode_getfattr_attrs()
4656 fattr->valid |= status; in decode_getfattr_attrs()
4659 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs()
4660 if (status < 0) in decode_getfattr_attrs()
4662 fattr->valid |= status; in decode_getfattr_attrs()
4664 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs()
4665 if (status < 0) in decode_getfattr_attrs()
4667 fattr->valid |= status; in decode_getfattr_attrs()
4669 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs()
4670 if (status < 0) in decode_getfattr_attrs()
4672 fattr->valid |= status; in decode_getfattr_attrs()
4675 status = decode_attr_error(xdr, bitmap, &err); in decode_getfattr_attrs()
4676 if (status < 0) in decode_getfattr_attrs()
4679 status = decode_attr_filehandle(xdr, bitmap, fh); in decode_getfattr_attrs()
4680 if (status < 0) in decode_getfattr_attrs()
4683 status = decode_attr_fileid(xdr, bitmap, &fattr->fileid); in decode_getfattr_attrs()
4684 if (status < 0) in decode_getfattr_attrs()
4686 fattr->valid |= status; in decode_getfattr_attrs()
4688 status = decode_attr_fs_locations(xdr, bitmap, fs_loc); in decode_getfattr_attrs()
4689 if (status < 0) in decode_getfattr_attrs()
4691 fattr->valid |= status; in decode_getfattr_attrs()
4693 status = -EIO; in decode_getfattr_attrs()
4697 status = decode_attr_mode(xdr, bitmap, &fmode); in decode_getfattr_attrs()
4698 if (status < 0) in decode_getfattr_attrs()
4700 if (status != 0) { in decode_getfattr_attrs()
4702 fattr->valid |= status; in decode_getfattr_attrs()
4705 status = decode_attr_nlink(xdr, bitmap, &fattr->nlink); in decode_getfattr_attrs()
4706 if (status < 0) in decode_getfattr_attrs()
4708 fattr->valid |= status; in decode_getfattr_attrs()
4710 status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); in decode_getfattr_attrs()
4711 if (status < 0) in decode_getfattr_attrs()
4713 fattr->valid |= status; in decode_getfattr_attrs()
4715 status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); in decode_getfattr_attrs()
4716 if (status < 0) in decode_getfattr_attrs()
4718 fattr->valid |= status; in decode_getfattr_attrs()
4720 status = decode_attr_rdev(xdr, bitmap, &fattr->rdev); in decode_getfattr_attrs()
4721 if (status < 0) in decode_getfattr_attrs()
4723 fattr->valid |= status; in decode_getfattr_attrs()
4725 status = decode_attr_space_used(xdr, bitmap, &fattr->du.nfs3.used); in decode_getfattr_attrs()
4726 if (status < 0) in decode_getfattr_attrs()
4728 fattr->valid |= status; in decode_getfattr_attrs()
4730 status = decode_attr_time_access(xdr, bitmap, &fattr->atime); in decode_getfattr_attrs()
4731 if (status < 0) in decode_getfattr_attrs()
4733 fattr->valid |= status; in decode_getfattr_attrs()
4735 status = decode_attr_time_metadata(xdr, bitmap, &fattr->ctime); in decode_getfattr_attrs()
4736 if (status < 0) in decode_getfattr_attrs()
4738 fattr->valid |= status; in decode_getfattr_attrs()
4740 status = decode_attr_time_modify(xdr, bitmap, &fattr->mtime); in decode_getfattr_attrs()
4741 if (status < 0) in decode_getfattr_attrs()
4743 fattr->valid |= status; in decode_getfattr_attrs()
4745 status = decode_attr_mounted_on_fileid(xdr, bitmap, &fattr->mounted_on_fileid); in decode_getfattr_attrs()
4746 if (status < 0) in decode_getfattr_attrs()
4748 fattr->valid |= status; in decode_getfattr_attrs()
4750 status = -EIO; in decode_getfattr_attrs()
4754 status = decode_attr_mdsthreshold(xdr, bitmap, fattr->mdsthreshold); in decode_getfattr_attrs()
4755 if (status < 0) in decode_getfattr_attrs()
4759 status = decode_attr_security_label(xdr, bitmap, fattr->label); in decode_getfattr_attrs()
4760 if (status < 0) in decode_getfattr_attrs()
4762 fattr->valid |= status; in decode_getfattr_attrs()
4766 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_attrs()
4767 return status; in decode_getfattr_attrs()
4777 int status; in decode_getfattr_generic() local
4779 status = decode_op_hdr(xdr, OP_GETATTR); in decode_getfattr_generic()
4780 if (status < 0) in decode_getfattr_generic()
4783 status = decode_attr_bitmap(xdr, bitmap); in decode_getfattr_generic()
4784 if (status < 0) in decode_getfattr_generic()
4787 status = decode_attr_length(xdr, &attrlen, &savep); in decode_getfattr_generic()
4788 if (status < 0) in decode_getfattr_generic()
4791 status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, server); in decode_getfattr_generic()
4792 if (status < 0) in decode_getfattr_generic()
4795 status = verify_attr_len(xdr, savep, attrlen); in decode_getfattr_generic()
4797 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_generic()
4798 return status; in decode_getfattr_generic()
4849 int status = 0; in decode_attr_pnfstype() local
4855 status = decode_pnfs_layout_types(xdr, fsinfo); in decode_attr_pnfstype()
4858 return status; in decode_attr_pnfstype()
4931 int status; in decode_fsinfo() local
4933 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_fsinfo()
4935 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_fsinfo()
4937 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_fsinfo()
4942 if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) in decode_fsinfo()
4944 if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) in decode_fsinfo()
4946 if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) in decode_fsinfo()
4949 if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) in decode_fsinfo()
4953 status = -EIO; in decode_fsinfo()
4957 status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); in decode_fsinfo()
4958 if (status != 0) in decode_fsinfo()
4960 status = decode_attr_pnfstype(xdr, bitmap, fsinfo); in decode_fsinfo()
4961 if (status != 0) in decode_fsinfo()
4964 status = -EIO; in decode_fsinfo()
4968 status = decode_attr_layout_blksize(xdr, bitmap, &fsinfo->blksize); in decode_fsinfo()
4969 if (status) in decode_fsinfo()
4971 status = decode_attr_clone_blksize(xdr, bitmap, &fsinfo->clone_blksize); in decode_fsinfo()
4972 if (status) in decode_fsinfo()
4975 status = decode_attr_change_attr_type(xdr, bitmap, in decode_fsinfo()
4977 if (status) in decode_fsinfo()
4980 status = decode_attr_xattrsupport(xdr, bitmap, in decode_fsinfo()
4982 if (status) in decode_fsinfo()
4985 status = verify_attr_len(xdr, savep, attrlen); in decode_fsinfo()
4987 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_fsinfo()
4988 return status; in decode_fsinfo()
4995 int status; in decode_getfh() local
5000 status = decode_op_hdr(xdr, OP_GETFH); in decode_getfh()
5001 if (status) in decode_getfh()
5002 return status; in decode_getfh()
5022 int status; in decode_link() local
5024 status = decode_op_hdr(xdr, OP_LINK); in decode_link()
5025 if (status) in decode_link()
5026 return status; in decode_link()
5065 int status; in decode_lock() local
5067 status = decode_op_hdr(xdr, OP_LOCK); in decode_lock()
5068 if (status == -EIO) in decode_lock()
5070 if (status == 0) { in decode_lock()
5071 status = decode_lock_stateid(xdr, &res->stateid); in decode_lock()
5072 if (unlikely(status)) in decode_lock()
5074 } else if (status == -NFS4ERR_DENIED) in decode_lock()
5075 status = decode_lock_denied(xdr, NULL); in decode_lock()
5077 nfs_increment_open_seqid(status, res->open_seqid); in decode_lock()
5078 nfs_increment_lock_seqid(status, res->lock_seqid); in decode_lock()
5080 return status; in decode_lock()
5085 int status; in decode_lockt() local
5086 status = decode_op_hdr(xdr, OP_LOCKT); in decode_lockt()
5087 if (status == -NFS4ERR_DENIED) in decode_lockt()
5089 return status; in decode_lockt()
5094 int status; in decode_locku() local
5096 status = decode_op_hdr(xdr, OP_LOCKU); in decode_locku()
5097 if (status != -EIO) in decode_locku()
5098 nfs_increment_lock_seqid(status, res->seqid); in decode_locku()
5099 if (status == 0) in decode_locku()
5100 status = decode_lock_stateid(xdr, &res->stateid); in decode_locku()
5101 return status; in decode_locku()
5150 int status; in decode_rw_delegation() local
5152 status = decode_delegation_stateid(xdr, &res->delegation); in decode_rw_delegation()
5153 if (unlikely(status)) in decode_rw_delegation()
5154 return status; in decode_rw_delegation()
5216 int status; in decode_open() local
5218 if (!__decode_op_hdr(xdr, OP_OPEN, &status)) in decode_open()
5219 return status; in decode_open()
5220 nfs_increment_open_seqid(status, res->seqid); in decode_open()
5221 if (status) in decode_open()
5222 return status; in decode_open()
5223 status = decode_open_stateid(xdr, &res->stateid); in decode_open()
5224 if (unlikely(status)) in decode_open()
5225 return status; in decode_open()
5254 int status; in decode_open_confirm() local
5256 status = decode_op_hdr(xdr, OP_OPEN_CONFIRM); in decode_open_confirm()
5257 if (status != -EIO) in decode_open_confirm()
5258 nfs_increment_open_seqid(status, res->seqid); in decode_open_confirm()
5259 if (!status) in decode_open_confirm()
5260 status = decode_open_stateid(xdr, &res->stateid); in decode_open_confirm()
5261 return status; in decode_open_confirm()
5266 int status; in decode_open_downgrade() local
5268 status = decode_op_hdr(xdr, OP_OPEN_DOWNGRADE); in decode_open_downgrade()
5269 if (status != -EIO) in decode_open_downgrade()
5270 nfs_increment_open_seqid(status, res->seqid); in decode_open_downgrade()
5271 if (!status) in decode_open_downgrade()
5272 status = decode_open_stateid(xdr, &res->stateid); in decode_open_downgrade()
5273 return status; in decode_open_downgrade()
5291 int status; in decode_read() local
5293 status = decode_op_hdr(xdr, OP_READ); in decode_read()
5294 if (status) in decode_read()
5295 return status; in decode_read()
5315 int status; in decode_readdir() local
5318 status = decode_op_hdr(xdr, OP_READDIR); in decode_readdir()
5319 if (!status) in decode_readdir()
5320 status = decode_verifier(xdr, readdir->verifier.data); in decode_readdir()
5321 if (unlikely(status)) in decode_readdir()
5322 return status; in decode_readdir()
5334 int status; in decode_readlink() local
5336 status = decode_op_hdr(xdr, OP_READLINK); in decode_readlink()
5337 if (status) in decode_readlink()
5338 return status; in decode_readlink()
5368 int status; in decode_remove() local
5370 status = decode_op_hdr(xdr, OP_REMOVE); in decode_remove()
5371 if (status) in decode_remove()
5373 status = decode_change_info(xdr, cinfo); in decode_remove()
5375 return status; in decode_remove()
5381 int status; in decode_rename() local
5383 status = decode_op_hdr(xdr, OP_RENAME); in decode_rename()
5384 if (status) in decode_rename()
5386 if ((status = decode_change_info(xdr, old_cinfo))) in decode_rename()
5388 status = decode_change_info(xdr, new_cinfo); in decode_rename()
5390 return status; in decode_rename()
5410 int status; in decode_getacl() local
5413 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_getacl()
5418 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_getacl()
5420 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_getacl()
5457 return status; in decode_getacl()
5468 int status; in decode_setattr() local
5470 status = decode_op_hdr(xdr, OP_SETATTR); in decode_setattr()
5471 if (status) in decode_setattr()
5472 return status; in decode_setattr()
5535 int status; in decode_write() local
5537 status = decode_op_hdr(xdr, OP_WRITE); in decode_write()
5538 if (status) in decode_write()
5539 return status; in decode_write()
5586 int status; in decode_secinfo_common() local
5607 status = decode_secinfo_gss(xdr, sec_flavor); in decode_secinfo_common()
5608 if (status) in decode_secinfo_common()
5614 status = 0; in decode_secinfo_common()
5616 return status; in decode_secinfo_common()
5621 int status = decode_op_hdr(xdr, OP_SECINFO); in decode_secinfo() local
5622 if (status) in decode_secinfo()
5623 return status; in decode_secinfo()
5630 int status = decode_op_hdr(xdr, OP_SECINFO_NO_NAME); in decode_secinfo_no_name() local
5631 if (status) in decode_secinfo_no_name()
5632 return status; in decode_secinfo_no_name()
5650 int status; in decode_exchange_id() local
5653 status = decode_op_hdr(xdr, OP_EXCHANGE_ID); in decode_exchange_id()
5654 if (status) in decode_exchange_id()
5655 return status; in decode_exchange_id()
5672 status = decode_op_map(xdr, &res->state_protect.enforce); in decode_exchange_id()
5673 if (status) in decode_exchange_id()
5674 return status; in decode_exchange_id()
5675 status = decode_op_map(xdr, &res->state_protect.allow); in decode_exchange_id()
5676 if (status) in decode_exchange_id()
5677 return status; in decode_exchange_id()
5691 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5692 if (unlikely(status)) in decode_exchange_id()
5693 return status; in decode_exchange_id()
5698 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5699 if (unlikely(status)) in decode_exchange_id()
5700 return status; in decode_exchange_id()
5712 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5713 if (unlikely(status)) in decode_exchange_id()
5714 return status; in decode_exchange_id()
5718 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5719 if (unlikely(status)) in decode_exchange_id()
5720 return status; in decode_exchange_id()
5775 int status; in decode_bind_conn_to_session() local
5777 status = decode_op_hdr(xdr, OP_BIND_CONN_TO_SESSION); in decode_bind_conn_to_session()
5778 if (!status) in decode_bind_conn_to_session()
5779 status = decode_sessionid(xdr, &res->sessionid); in decode_bind_conn_to_session()
5780 if (unlikely(status)) in decode_bind_conn_to_session()
5781 return status; in decode_bind_conn_to_session()
5803 int status; in decode_create_session() local
5805 status = decode_op_hdr(xdr, OP_CREATE_SESSION); in decode_create_session()
5806 if (!status) in decode_create_session()
5807 status = decode_sessionid(xdr, &res->sessionid); in decode_create_session()
5808 if (unlikely(status)) in decode_create_session()
5809 return status; in decode_create_session()
5819 status = decode_chan_attrs(xdr, &res->fc_attrs); in decode_create_session()
5820 if (!status) in decode_create_session()
5821 status = decode_chan_attrs(xdr, &res->bc_attrs); in decode_create_session()
5822 return status; in decode_create_session()
5849 int status; in decode_sequence() local
5857 status = decode_op_hdr(xdr, OP_SEQUENCE); in decode_sequence()
5858 if (!status) in decode_sequence()
5859 status = decode_sessionid(xdr, &id); in decode_sequence()
5860 if (unlikely(status)) in decode_sequence()
5867 status = -EREMOTEIO; in decode_sequence()
5898 status = 0; in decode_sequence()
5900 res->sr_status = status; in decode_sequence()
5901 return status; in decode_sequence()
5903 status = -EIO; in decode_sequence()
5923 int status; in decode_getdeviceinfo() local
5925 status = decode_op_hdr(xdr, OP_GETDEVICEINFO); in decode_getdeviceinfo()
5926 if (status) { in decode_getdeviceinfo()
5927 if (status == -ETOOSMALL) { in decode_getdeviceinfo()
5935 return status; in decode_getdeviceinfo()
5984 int status; in decode_layoutget() local
5988 status = decode_op_hdr(xdr, OP_LAYOUTGET); in decode_layoutget()
5989 if (status) in decode_layoutget()
6003 status = -EINVAL; in decode_layoutget()
6029 status = -EINVAL; in decode_layoutget()
6044 res->status = status; in decode_layoutget()
6045 return status; in decode_layoutget()
6047 status = -EIO; in decode_layoutget()
6055 int status; in decode_layoutreturn() local
6057 status = decode_op_hdr(xdr, OP_LAYOUTRETURN); in decode_layoutreturn()
6058 if (status) in decode_layoutreturn()
6059 return status; in decode_layoutreturn()
6065 status = decode_layout_stateid(xdr, &res->stateid); in decode_layoutreturn()
6068 return status; in decode_layoutreturn()
6077 int status; in decode_layoutcommit() local
6079 status = decode_op_hdr(xdr, OP_LAYOUTCOMMIT); in decode_layoutcommit()
6080 res->status = status; in decode_layoutcommit()
6081 if (status) in decode_layoutcommit()
6082 return status; in decode_layoutcommit()
6102 int status; in decode_test_stateid() local
6105 status = decode_op_hdr(xdr, OP_TEST_STATEID); in decode_test_stateid()
6106 if (status) in decode_test_stateid()
6107 return status; in decode_test_stateid()
6119 res->status = be32_to_cpup(p++); in decode_test_stateid()
6121 return status; in decode_test_stateid()
6127 res->status = decode_op_hdr(xdr, OP_FREE_STATEID); in decode_free_stateid()
6128 return res->status; in decode_free_stateid()
6159 int status; in nfs4_xdr_dec_open_downgrade() local
6161 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_downgrade()
6162 if (status) in nfs4_xdr_dec_open_downgrade()
6164 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_downgrade()
6165 if (status) in nfs4_xdr_dec_open_downgrade()
6167 status = decode_putfh(xdr); in nfs4_xdr_dec_open_downgrade()
6168 if (status) in nfs4_xdr_dec_open_downgrade()
6171 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_open_downgrade()
6172 res->lr_ret = status; in nfs4_xdr_dec_open_downgrade()
6173 if (status) in nfs4_xdr_dec_open_downgrade()
6176 status = decode_open_downgrade(xdr, res); in nfs4_xdr_dec_open_downgrade()
6178 return status; in nfs4_xdr_dec_open_downgrade()
6189 int status; in nfs4_xdr_dec_access() local
6191 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_access()
6192 if (status) in nfs4_xdr_dec_access()
6194 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_access()
6195 if (status) in nfs4_xdr_dec_access()
6197 status = decode_putfh(xdr); in nfs4_xdr_dec_access()
6198 if (status != 0) in nfs4_xdr_dec_access()
6200 status = decode_access(xdr, &res->supported, &res->access); in nfs4_xdr_dec_access()
6201 if (status != 0) in nfs4_xdr_dec_access()
6206 return status; in nfs4_xdr_dec_access()
6217 int status; in nfs4_xdr_dec_lookup() local
6219 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup()
6220 if (status) in nfs4_xdr_dec_lookup()
6222 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup()
6223 if (status) in nfs4_xdr_dec_lookup()
6225 status = decode_putfh(xdr); in nfs4_xdr_dec_lookup()
6226 if (status) in nfs4_xdr_dec_lookup()
6228 status = decode_lookup(xdr); in nfs4_xdr_dec_lookup()
6229 if (status) in nfs4_xdr_dec_lookup()
6231 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup()
6232 if (status) in nfs4_xdr_dec_lookup()
6234 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_lookup()
6236 return status; in nfs4_xdr_dec_lookup()
6247 int status; in nfs4_xdr_dec_lookupp() local
6249 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookupp()
6250 if (status) in nfs4_xdr_dec_lookupp()
6252 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookupp()
6253 if (status) in nfs4_xdr_dec_lookupp()
6255 status = decode_putfh(xdr); in nfs4_xdr_dec_lookupp()
6256 if (status) in nfs4_xdr_dec_lookupp()
6258 status = decode_lookupp(xdr); in nfs4_xdr_dec_lookupp()
6259 if (status) in nfs4_xdr_dec_lookupp()
6261 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookupp()
6262 if (status) in nfs4_xdr_dec_lookupp()
6264 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_lookupp()
6266 return status; in nfs4_xdr_dec_lookupp()
6278 int status; in nfs4_xdr_dec_lookup_root() local
6280 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup_root()
6281 if (status) in nfs4_xdr_dec_lookup_root()
6283 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup_root()
6284 if (status) in nfs4_xdr_dec_lookup_root()
6286 status = decode_putrootfh(xdr); in nfs4_xdr_dec_lookup_root()
6287 if (status) in nfs4_xdr_dec_lookup_root()
6289 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup_root()
6290 if (status == 0) in nfs4_xdr_dec_lookup_root()
6291 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_lookup_root()
6293 return status; in nfs4_xdr_dec_lookup_root()
6304 int status; in nfs4_xdr_dec_remove() local
6306 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_remove()
6307 if (status) in nfs4_xdr_dec_remove()
6309 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_remove()
6310 if (status) in nfs4_xdr_dec_remove()
6312 status = decode_putfh(xdr); in nfs4_xdr_dec_remove()
6313 if (status) in nfs4_xdr_dec_remove()
6315 status = decode_remove(xdr, &res->cinfo); in nfs4_xdr_dec_remove()
6317 return status; in nfs4_xdr_dec_remove()
6328 int status; in nfs4_xdr_dec_rename() local
6330 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_rename()
6331 if (status) in nfs4_xdr_dec_rename()
6333 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_rename()
6334 if (status) in nfs4_xdr_dec_rename()
6336 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6337 if (status) in nfs4_xdr_dec_rename()
6339 status = decode_savefh(xdr); in nfs4_xdr_dec_rename()
6340 if (status) in nfs4_xdr_dec_rename()
6342 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6343 if (status) in nfs4_xdr_dec_rename()
6345 status = decode_rename(xdr, &res->old_cinfo, &res->new_cinfo); in nfs4_xdr_dec_rename()
6347 return status; in nfs4_xdr_dec_rename()
6358 int status; in nfs4_xdr_dec_link() local
6360 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_link()
6361 if (status) in nfs4_xdr_dec_link()
6363 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_link()
6364 if (status) in nfs4_xdr_dec_link()
6366 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6367 if (status) in nfs4_xdr_dec_link()
6369 status = decode_savefh(xdr); in nfs4_xdr_dec_link()
6370 if (status) in nfs4_xdr_dec_link()
6372 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6373 if (status) in nfs4_xdr_dec_link()
6375 status = decode_link(xdr, &res->cinfo); in nfs4_xdr_dec_link()
6376 if (status) in nfs4_xdr_dec_link()
6382 status = decode_restorefh(xdr); in nfs4_xdr_dec_link()
6383 if (status) in nfs4_xdr_dec_link()
6387 return status; in nfs4_xdr_dec_link()
6398 int status; in nfs4_xdr_dec_create() local
6400 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create()
6401 if (status) in nfs4_xdr_dec_create()
6403 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_create()
6404 if (status) in nfs4_xdr_dec_create()
6406 status = decode_putfh(xdr); in nfs4_xdr_dec_create()
6407 if (status) in nfs4_xdr_dec_create()
6409 status = decode_create(xdr, &res->dir_cinfo); in nfs4_xdr_dec_create()
6410 if (status) in nfs4_xdr_dec_create()
6412 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_create()
6413 if (status) in nfs4_xdr_dec_create()
6417 return status; in nfs4_xdr_dec_create()
6437 int status; in nfs4_xdr_dec_getattr() local
6439 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getattr()
6440 if (status) in nfs4_xdr_dec_getattr()
6442 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getattr()
6443 if (status) in nfs4_xdr_dec_getattr()
6445 status = decode_putfh(xdr); in nfs4_xdr_dec_getattr()
6446 if (status) in nfs4_xdr_dec_getattr()
6448 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_getattr()
6450 return status; in nfs4_xdr_dec_getattr()
6480 int status; in nfs4_xdr_dec_setacl() local
6482 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setacl()
6483 if (status) in nfs4_xdr_dec_setacl()
6485 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setacl()
6486 if (status) in nfs4_xdr_dec_setacl()
6488 status = decode_putfh(xdr); in nfs4_xdr_dec_setacl()
6489 if (status) in nfs4_xdr_dec_setacl()
6491 status = decode_setattr(xdr); in nfs4_xdr_dec_setacl()
6493 return status; in nfs4_xdr_dec_setacl()
6505 int status; in nfs4_xdr_dec_getacl() local
6509 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getacl()
6510 if (status) in nfs4_xdr_dec_getacl()
6512 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getacl()
6513 if (status) in nfs4_xdr_dec_getacl()
6515 status = decode_putfh(xdr); in nfs4_xdr_dec_getacl()
6516 if (status) in nfs4_xdr_dec_getacl()
6518 status = decode_getacl(xdr, rqstp, res, res->acl_type); in nfs4_xdr_dec_getacl()
6521 return status; in nfs4_xdr_dec_getacl()
6532 int status; in nfs4_xdr_dec_close() local
6534 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_close()
6535 if (status) in nfs4_xdr_dec_close()
6537 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_close()
6538 if (status) in nfs4_xdr_dec_close()
6540 status = decode_putfh(xdr); in nfs4_xdr_dec_close()
6541 if (status) in nfs4_xdr_dec_close()
6544 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_close()
6545 res->lr_ret = status; in nfs4_xdr_dec_close()
6546 if (status) in nfs4_xdr_dec_close()
6550 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_close()
6551 if (status != 0) in nfs4_xdr_dec_close()
6554 status = decode_close(xdr, res); in nfs4_xdr_dec_close()
6556 return status; in nfs4_xdr_dec_close()
6567 int status; in nfs4_xdr_dec_open() local
6569 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open()
6570 if (status) in nfs4_xdr_dec_open()
6572 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open()
6573 if (status) in nfs4_xdr_dec_open()
6575 status = decode_putfh(xdr); in nfs4_xdr_dec_open()
6576 if (status) in nfs4_xdr_dec_open()
6578 status = decode_open(xdr, res); in nfs4_xdr_dec_open()
6579 if (status) in nfs4_xdr_dec_open()
6581 status = decode_getfh(xdr, &res->fh); in nfs4_xdr_dec_open()
6582 if (status) in nfs4_xdr_dec_open()
6590 return status; in nfs4_xdr_dec_open()
6602 int status; in nfs4_xdr_dec_open_confirm() local
6604 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_confirm()
6605 if (status) in nfs4_xdr_dec_open_confirm()
6607 status = decode_putfh(xdr); in nfs4_xdr_dec_open_confirm()
6608 if (status) in nfs4_xdr_dec_open_confirm()
6610 status = decode_open_confirm(xdr, res); in nfs4_xdr_dec_open_confirm()
6612 return status; in nfs4_xdr_dec_open_confirm()
6624 int status; in nfs4_xdr_dec_open_noattr() local
6626 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_noattr()
6627 if (status) in nfs4_xdr_dec_open_noattr()
6629 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_noattr()
6630 if (status) in nfs4_xdr_dec_open_noattr()
6632 status = decode_putfh(xdr); in nfs4_xdr_dec_open_noattr()
6633 if (status) in nfs4_xdr_dec_open_noattr()
6635 status = decode_open(xdr, res); in nfs4_xdr_dec_open_noattr()
6636 if (status) in nfs4_xdr_dec_open_noattr()
6644 return status; in nfs4_xdr_dec_open_noattr()
6656 int status; in nfs4_xdr_dec_setattr() local
6658 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setattr()
6659 if (status) in nfs4_xdr_dec_setattr()
6661 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setattr()
6662 if (status) in nfs4_xdr_dec_setattr()
6664 status = decode_putfh(xdr); in nfs4_xdr_dec_setattr()
6665 if (status) in nfs4_xdr_dec_setattr()
6667 status = decode_setattr(xdr); in nfs4_xdr_dec_setattr()
6668 if (status) in nfs4_xdr_dec_setattr()
6672 return status; in nfs4_xdr_dec_setattr()
6683 int status; in nfs4_xdr_dec_lock() local
6685 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lock()
6686 if (status) in nfs4_xdr_dec_lock()
6688 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lock()
6689 if (status) in nfs4_xdr_dec_lock()
6691 status = decode_putfh(xdr); in nfs4_xdr_dec_lock()
6692 if (status) in nfs4_xdr_dec_lock()
6694 status = decode_lock(xdr, res); in nfs4_xdr_dec_lock()
6696 return status; in nfs4_xdr_dec_lock()
6707 int status; in nfs4_xdr_dec_lockt() local
6709 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lockt()
6710 if (status) in nfs4_xdr_dec_lockt()
6712 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lockt()
6713 if (status) in nfs4_xdr_dec_lockt()
6715 status = decode_putfh(xdr); in nfs4_xdr_dec_lockt()
6716 if (status) in nfs4_xdr_dec_lockt()
6718 status = decode_lockt(xdr, res); in nfs4_xdr_dec_lockt()
6720 return status; in nfs4_xdr_dec_lockt()
6731 int status; in nfs4_xdr_dec_locku() local
6733 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_locku()
6734 if (status) in nfs4_xdr_dec_locku()
6736 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_locku()
6737 if (status) in nfs4_xdr_dec_locku()
6739 status = decode_putfh(xdr); in nfs4_xdr_dec_locku()
6740 if (status) in nfs4_xdr_dec_locku()
6742 status = decode_locku(xdr, res); in nfs4_xdr_dec_locku()
6744 return status; in nfs4_xdr_dec_locku()
6751 int status; in nfs4_xdr_dec_release_lockowner() local
6753 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_release_lockowner()
6754 if (!status) in nfs4_xdr_dec_release_lockowner()
6755 status = decode_release_lockowner(xdr); in nfs4_xdr_dec_release_lockowner()
6756 return status; in nfs4_xdr_dec_release_lockowner()
6768 int status; in nfs4_xdr_dec_readlink() local
6770 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readlink()
6771 if (status) in nfs4_xdr_dec_readlink()
6773 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readlink()
6774 if (status) in nfs4_xdr_dec_readlink()
6776 status = decode_putfh(xdr); in nfs4_xdr_dec_readlink()
6777 if (status) in nfs4_xdr_dec_readlink()
6779 status = decode_readlink(xdr, rqstp); in nfs4_xdr_dec_readlink()
6781 return status; in nfs4_xdr_dec_readlink()
6792 int status; in nfs4_xdr_dec_readdir() local
6794 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readdir()
6795 if (status) in nfs4_xdr_dec_readdir()
6797 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readdir()
6798 if (status) in nfs4_xdr_dec_readdir()
6800 status = decode_putfh(xdr); in nfs4_xdr_dec_readdir()
6801 if (status) in nfs4_xdr_dec_readdir()
6803 status = decode_readdir(xdr, rqstp, res); in nfs4_xdr_dec_readdir()
6805 return status; in nfs4_xdr_dec_readdir()
6816 int status; in nfs4_xdr_dec_read() local
6818 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_read()
6819 res->op_status = hdr.status; in nfs4_xdr_dec_read()
6820 if (status) in nfs4_xdr_dec_read()
6822 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read()
6823 if (status) in nfs4_xdr_dec_read()
6825 status = decode_putfh(xdr); in nfs4_xdr_dec_read()
6826 if (status) in nfs4_xdr_dec_read()
6828 status = decode_read(xdr, rqstp, res); in nfs4_xdr_dec_read()
6829 if (!status) in nfs4_xdr_dec_read()
6830 status = res->count; in nfs4_xdr_dec_read()
6832 return status; in nfs4_xdr_dec_read()
6843 int status; in nfs4_xdr_dec_write() local
6845 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_write()
6846 res->op_status = hdr.status; in nfs4_xdr_dec_write()
6847 if (status) in nfs4_xdr_dec_write()
6849 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_write()
6850 if (status) in nfs4_xdr_dec_write()
6852 status = decode_putfh(xdr); in nfs4_xdr_dec_write()
6853 if (status) in nfs4_xdr_dec_write()
6855 status = decode_write(xdr, res); in nfs4_xdr_dec_write()
6856 if (status) in nfs4_xdr_dec_write()
6860 if (!status) in nfs4_xdr_dec_write()
6861 status = res->count; in nfs4_xdr_dec_write()
6863 return status; in nfs4_xdr_dec_write()
6874 int status; in nfs4_xdr_dec_commit() local
6876 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_commit()
6877 res->op_status = hdr.status; in nfs4_xdr_dec_commit()
6878 if (status) in nfs4_xdr_dec_commit()
6880 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_commit()
6881 if (status) in nfs4_xdr_dec_commit()
6883 status = decode_putfh(xdr); in nfs4_xdr_dec_commit()
6884 if (status) in nfs4_xdr_dec_commit()
6886 status = decode_commit(xdr, res); in nfs4_xdr_dec_commit()
6888 return status; in nfs4_xdr_dec_commit()
6899 int status; in nfs4_xdr_dec_fsinfo() local
6901 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsinfo()
6902 if (!status) in nfs4_xdr_dec_fsinfo()
6903 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fsinfo()
6904 if (!status) in nfs4_xdr_dec_fsinfo()
6905 status = decode_putfh(xdr); in nfs4_xdr_dec_fsinfo()
6906 if (!status) in nfs4_xdr_dec_fsinfo()
6907 status = decode_fsinfo(xdr, res->fsinfo); in nfs4_xdr_dec_fsinfo()
6908 return status; in nfs4_xdr_dec_fsinfo()
6919 int status; in nfs4_xdr_dec_pathconf() local
6921 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_pathconf()
6922 if (!status) in nfs4_xdr_dec_pathconf()
6923 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_pathconf()
6924 if (!status) in nfs4_xdr_dec_pathconf()
6925 status = decode_putfh(xdr); in nfs4_xdr_dec_pathconf()
6926 if (!status) in nfs4_xdr_dec_pathconf()
6927 status = decode_pathconf(xdr, res->pathconf); in nfs4_xdr_dec_pathconf()
6928 return status; in nfs4_xdr_dec_pathconf()
6939 int status; in nfs4_xdr_dec_statfs() local
6941 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_statfs()
6942 if (!status) in nfs4_xdr_dec_statfs()
6943 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_statfs()
6944 if (!status) in nfs4_xdr_dec_statfs()
6945 status = decode_putfh(xdr); in nfs4_xdr_dec_statfs()
6946 if (!status) in nfs4_xdr_dec_statfs()
6947 status = decode_statfs(xdr, res->fsstat); in nfs4_xdr_dec_statfs()
6948 return status; in nfs4_xdr_dec_statfs()
6960 int status; in nfs4_xdr_dec_server_caps() local
6962 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_server_caps()
6963 if (status) in nfs4_xdr_dec_server_caps()
6965 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_server_caps()
6966 if (status) in nfs4_xdr_dec_server_caps()
6968 status = decode_putfh(xdr); in nfs4_xdr_dec_server_caps()
6969 if (status) in nfs4_xdr_dec_server_caps()
6971 status = decode_server_caps(xdr, res); in nfs4_xdr_dec_server_caps()
6973 return status; in nfs4_xdr_dec_server_caps()
6983 int status; in nfs4_xdr_dec_renew() local
6985 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_renew()
6986 if (!status) in nfs4_xdr_dec_renew()
6987 status = decode_renew(xdr); in nfs4_xdr_dec_renew()
6988 return status; in nfs4_xdr_dec_renew()
7000 int status; in nfs4_xdr_dec_setclientid() local
7002 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid()
7003 if (!status) in nfs4_xdr_dec_setclientid()
7004 status = decode_setclientid(xdr, res); in nfs4_xdr_dec_setclientid()
7005 return status; in nfs4_xdr_dec_setclientid()
7016 int status; in nfs4_xdr_dec_setclientid_confirm() local
7018 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid_confirm()
7019 if (!status) in nfs4_xdr_dec_setclientid_confirm()
7020 status = decode_setclientid_confirm(xdr); in nfs4_xdr_dec_setclientid_confirm()
7021 return status; in nfs4_xdr_dec_setclientid_confirm()
7033 int status; in nfs4_xdr_dec_delegreturn() local
7035 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_delegreturn()
7036 if (status) in nfs4_xdr_dec_delegreturn()
7038 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_delegreturn()
7039 if (status) in nfs4_xdr_dec_delegreturn()
7041 status = decode_putfh(xdr); in nfs4_xdr_dec_delegreturn()
7042 if (status != 0) in nfs4_xdr_dec_delegreturn()
7045 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_delegreturn()
7046 res->lr_ret = status; in nfs4_xdr_dec_delegreturn()
7047 if (status) in nfs4_xdr_dec_delegreturn()
7051 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_delegreturn()
7052 if (status != 0) in nfs4_xdr_dec_delegreturn()
7055 status = decode_delegreturn(xdr); in nfs4_xdr_dec_delegreturn()
7057 return status; in nfs4_xdr_dec_delegreturn()
7069 int status; in nfs4_xdr_dec_fs_locations() local
7071 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fs_locations()
7072 if (status) in nfs4_xdr_dec_fs_locations()
7074 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fs_locations()
7075 if (status) in nfs4_xdr_dec_fs_locations()
7077 status = decode_putfh(xdr); in nfs4_xdr_dec_fs_locations()
7078 if (status) in nfs4_xdr_dec_fs_locations()
7082 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
7086 if (status) in nfs4_xdr_dec_fs_locations()
7089 status = decode_renew(xdr); in nfs4_xdr_dec_fs_locations()
7091 status = decode_lookup(xdr); in nfs4_xdr_dec_fs_locations()
7092 if (status) in nfs4_xdr_dec_fs_locations()
7095 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
7101 return status; in nfs4_xdr_dec_fs_locations()
7113 int status; in nfs4_xdr_dec_secinfo() local
7115 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo()
7116 if (status) in nfs4_xdr_dec_secinfo()
7118 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo()
7119 if (status) in nfs4_xdr_dec_secinfo()
7121 status = decode_putfh(xdr); in nfs4_xdr_dec_secinfo()
7122 if (status) in nfs4_xdr_dec_secinfo()
7124 status = decode_secinfo(xdr, res); in nfs4_xdr_dec_secinfo()
7126 return status; in nfs4_xdr_dec_secinfo()
7138 int status; in nfs4_xdr_dec_fsid_present() local
7140 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsid_present()
7141 if (status) in nfs4_xdr_dec_fsid_present()
7143 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_fsid_present()
7144 if (status) in nfs4_xdr_dec_fsid_present()
7146 status = decode_putfh(xdr); in nfs4_xdr_dec_fsid_present()
7147 if (status) in nfs4_xdr_dec_fsid_present()
7149 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_fsid_present()
7150 if (status) in nfs4_xdr_dec_fsid_present()
7153 status = decode_renew(xdr); in nfs4_xdr_dec_fsid_present()
7155 return status; in nfs4_xdr_dec_fsid_present()
7167 int status; in nfs4_xdr_dec_bind_conn_to_session() local
7169 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_bind_conn_to_session()
7170 if (!status) in nfs4_xdr_dec_bind_conn_to_session()
7171 status = decode_bind_conn_to_session(xdr, res); in nfs4_xdr_dec_bind_conn_to_session()
7172 return status; in nfs4_xdr_dec_bind_conn_to_session()
7183 int status; in nfs4_xdr_dec_exchange_id() local
7185 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_exchange_id()
7186 if (!status) in nfs4_xdr_dec_exchange_id()
7187 status = decode_exchange_id(xdr, res); in nfs4_xdr_dec_exchange_id()
7188 return status; in nfs4_xdr_dec_exchange_id()
7199 int status; in nfs4_xdr_dec_create_session() local
7201 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create_session()
7202 if (!status) in nfs4_xdr_dec_create_session()
7203 status = decode_create_session(xdr, res); in nfs4_xdr_dec_create_session()
7204 return status; in nfs4_xdr_dec_create_session()
7215 int status; in nfs4_xdr_dec_destroy_session() local
7217 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_session()
7218 if (!status) in nfs4_xdr_dec_destroy_session()
7219 status = decode_destroy_session(xdr, res); in nfs4_xdr_dec_destroy_session()
7220 return status; in nfs4_xdr_dec_destroy_session()
7231 int status; in nfs4_xdr_dec_destroy_clientid() local
7233 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_clientid()
7234 if (!status) in nfs4_xdr_dec_destroy_clientid()
7235 status = decode_destroy_clientid(xdr, res); in nfs4_xdr_dec_destroy_clientid()
7236 return status; in nfs4_xdr_dec_destroy_clientid()
7247 int status; in nfs4_xdr_dec_sequence() local
7249 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_sequence()
7250 if (!status) in nfs4_xdr_dec_sequence()
7251 status = decode_sequence(xdr, res, rqstp); in nfs4_xdr_dec_sequence()
7252 return status; in nfs4_xdr_dec_sequence()
7266 int status; in nfs4_xdr_dec_get_lease_time() local
7268 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_get_lease_time()
7269 if (!status) in nfs4_xdr_dec_get_lease_time()
7270 status = decode_sequence(xdr, &res->lr_seq_res, rqstp); in nfs4_xdr_dec_get_lease_time()
7271 if (!status) in nfs4_xdr_dec_get_lease_time()
7272 status = decode_putrootfh(xdr); in nfs4_xdr_dec_get_lease_time()
7273 if (!status) in nfs4_xdr_dec_get_lease_time()
7274 status = decode_fsinfo(xdr, res->lr_fsinfo); in nfs4_xdr_dec_get_lease_time()
7275 return status; in nfs4_xdr_dec_get_lease_time()
7289 int status; in nfs4_xdr_dec_reclaim_complete() local
7291 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_reclaim_complete()
7292 if (!status) in nfs4_xdr_dec_reclaim_complete()
7293 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_reclaim_complete()
7294 if (!status) in nfs4_xdr_dec_reclaim_complete()
7295 status = decode_reclaim_complete(xdr, NULL); in nfs4_xdr_dec_reclaim_complete()
7296 return status; in nfs4_xdr_dec_reclaim_complete()
7308 int status; in nfs4_xdr_dec_getdeviceinfo() local
7310 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getdeviceinfo()
7311 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7313 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getdeviceinfo()
7314 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7316 status = decode_getdeviceinfo(xdr, res); in nfs4_xdr_dec_getdeviceinfo()
7318 return status; in nfs4_xdr_dec_getdeviceinfo()
7330 int status; in nfs4_xdr_dec_layoutget() local
7332 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutget()
7333 if (status) in nfs4_xdr_dec_layoutget()
7335 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutget()
7336 if (status) in nfs4_xdr_dec_layoutget()
7338 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutget()
7339 if (status) in nfs4_xdr_dec_layoutget()
7341 status = decode_layoutget(xdr, rqstp, res); in nfs4_xdr_dec_layoutget()
7343 return status; in nfs4_xdr_dec_layoutget()
7355 int status; in nfs4_xdr_dec_layoutreturn() local
7357 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutreturn()
7358 if (status) in nfs4_xdr_dec_layoutreturn()
7360 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutreturn()
7361 if (status) in nfs4_xdr_dec_layoutreturn()
7363 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutreturn()
7364 if (status) in nfs4_xdr_dec_layoutreturn()
7366 status = decode_layoutreturn(xdr, res); in nfs4_xdr_dec_layoutreturn()
7368 return status; in nfs4_xdr_dec_layoutreturn()
7380 int status; in nfs4_xdr_dec_layoutcommit() local
7382 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutcommit()
7383 if (status) in nfs4_xdr_dec_layoutcommit()
7385 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutcommit()
7386 if (status) in nfs4_xdr_dec_layoutcommit()
7388 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutcommit()
7389 if (status) in nfs4_xdr_dec_layoutcommit()
7391 status = decode_layoutcommit(xdr, rqstp, res); in nfs4_xdr_dec_layoutcommit()
7392 if (status) in nfs4_xdr_dec_layoutcommit()
7396 return status; in nfs4_xdr_dec_layoutcommit()
7408 int status; in nfs4_xdr_dec_secinfo_no_name() local
7410 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo_no_name()
7411 if (status) in nfs4_xdr_dec_secinfo_no_name()
7413 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo_no_name()
7414 if (status) in nfs4_xdr_dec_secinfo_no_name()
7416 status = decode_putrootfh(xdr); in nfs4_xdr_dec_secinfo_no_name()
7417 if (status) in nfs4_xdr_dec_secinfo_no_name()
7419 status = decode_secinfo_no_name(xdr, res); in nfs4_xdr_dec_secinfo_no_name()
7421 return status; in nfs4_xdr_dec_secinfo_no_name()
7433 int status; in nfs4_xdr_dec_test_stateid() local
7435 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_test_stateid()
7436 if (status) in nfs4_xdr_dec_test_stateid()
7438 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_test_stateid()
7439 if (status) in nfs4_xdr_dec_test_stateid()
7441 status = decode_test_stateid(xdr, res); in nfs4_xdr_dec_test_stateid()
7443 return status; in nfs4_xdr_dec_test_stateid()
7455 int status; in nfs4_xdr_dec_free_stateid() local
7457 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_free_stateid()
7458 if (status) in nfs4_xdr_dec_free_stateid()
7460 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_free_stateid()
7461 if (status) in nfs4_xdr_dec_free_stateid()
7463 status = decode_free_stateid(xdr, res); in nfs4_xdr_dec_free_stateid()
7465 return status; in nfs4_xdr_dec_free_stateid()
7546 * We need to translate between nfs status return values and