• Home
  • Raw
  • Download

Lines Matching refs:status

943 	int32_t		status;  member
3163 hdr->status = be32_to_cpup(p++); in decode_compound_hdr()
3173 return nfs4_stat_to_errno(hdr->status); in decode_compound_hdr()
3562 int status = 0; in decode_attr_files_avail() local
3575 return status; in decode_attr_files_avail()
3581 int status = 0; in decode_attr_files_free() local
3594 return status; in decode_attr_files_free()
3600 int status = 0; in decode_attr_files_total() local
3613 return status; in decode_attr_files_total()
3620 int status = 0; in decode_pathname() local
3635 status = decode_opaque_inline(xdr, &component->len, &component->data); in decode_pathname()
3636 if (unlikely(status != 0)) in decode_pathname()
3644 return status; in decode_pathname()
3653 dprintk(" status %d", status); in decode_pathname()
3654 status = -EIO; in decode_pathname()
3662 int status = -EIO; in decode_attr_fs_locations() local
3666 status = 0; in decode_attr_fs_locations()
3670 status = -EIO; in decode_attr_fs_locations()
3675 status = decode_pathname(xdr, &res->fs_path); in decode_attr_fs_locations()
3676 if (unlikely(status != 0)) in decode_attr_fs_locations()
3710 status = decode_opaque_inline(xdr, &len, &data); in decode_attr_fs_locations()
3711 if (unlikely(status != 0)) in decode_attr_fs_locations()
3717 status = decode_opaque_inline(xdr, &server->len, &server->data); in decode_attr_fs_locations()
3718 if (unlikely(status != 0)) in decode_attr_fs_locations()
3722 status = decode_pathname(xdr, &loc->rootpath); in decode_attr_fs_locations()
3723 if (unlikely(status != 0)) in decode_attr_fs_locations()
3727 status = NFS_ATTR_FATTR_V4_LOCATIONS; in decode_attr_fs_locations()
3729 dprintk("%s: fs_locations done, error = %d\n", __func__, status); in decode_attr_fs_locations()
3730 return status; in decode_attr_fs_locations()
3732 status = -EIO; in decode_attr_fs_locations()
3739 int status = 0; in decode_attr_maxfilesize() local
3752 return status; in decode_attr_maxfilesize()
3758 int status = 0; in decode_attr_maxlink() local
3771 return status; in decode_attr_maxlink()
3777 int status = 0; in decode_attr_maxname() local
3790 return status; in decode_attr_maxname()
3796 int status = 0; in decode_attr_maxread() local
3813 return status; in decode_attr_maxread()
3819 int status = 0; in decode_attr_maxwrite() local
3836 return status; in decode_attr_maxwrite()
3992 int status = 0; in decode_attr_space_avail() local
4005 return status; in decode_attr_space_avail()
4011 int status = 0; in decode_attr_space_free() local
4024 return status; in decode_attr_space_free()
4030 int status = 0; in decode_attr_space_total() local
4043 return status; in decode_attr_space_total()
4091 int status = 0; in decode_attr_time_access() local
4098 status = decode_attr_time(xdr, time); in decode_attr_time_access()
4099 if (status == 0) in decode_attr_time_access()
4100 status = NFS_ATTR_FATTR_ATIME; in decode_attr_time_access()
4104 return status; in decode_attr_time_access()
4109 int status = 0; in decode_attr_time_metadata() local
4116 status = decode_attr_time(xdr, time); in decode_attr_time_metadata()
4117 if (status == 0) in decode_attr_time_metadata()
4118 status = NFS_ATTR_FATTR_CTIME; in decode_attr_time_metadata()
4122 return status; in decode_attr_time_metadata()
4128 int status = 0; in decode_attr_time_delta() local
4135 status = decode_attr_time(xdr, time); in decode_attr_time_delta()
4140 return status; in decode_attr_time_delta()
4150 int status = 0; in decode_attr_security_label() local
4176 status = NFS_ATTR_FATTR_V4_SECURITY_LABEL; in decode_attr_security_label()
4186 return status; in decode_attr_security_label()
4191 int status = 0; in decode_attr_time_modify() local
4198 status = decode_attr_time(xdr, time); in decode_attr_time_modify()
4199 if (status == 0) in decode_attr_time_modify()
4200 status = NFS_ATTR_FATTR_MTIME; in decode_attr_time_modify()
4204 return status; in decode_attr_time_modify()
4241 int status; in decode_access() local
4243 status = decode_op_hdr(xdr, OP_ACCESS); in decode_access()
4244 if (status) in decode_access()
4245 return status; in decode_access()
4297 int status; in decode_close() local
4299 status = decode_op_hdr(xdr, OP_CLOSE); in decode_close()
4300 if (status != -EIO) in decode_close()
4301 nfs_increment_open_seqid(status, res->seqid); in decode_close()
4302 if (!status) in decode_close()
4303 status = decode_invalid_stateid(xdr, &res->stateid); in decode_close()
4304 return status; in decode_close()
4319 int status; in decode_commit() local
4321 status = decode_op_hdr(xdr, OP_COMMIT); in decode_commit()
4322 if (!status) in decode_commit()
4323 status = decode_write_verifier(xdr, &res->verf->verifier); in decode_commit()
4324 return status; in decode_commit()
4331 int status; in decode_create() local
4333 status = decode_op_hdr(xdr, OP_CREATE); in decode_create()
4334 if (status) in decode_create()
4335 return status; in decode_create()
4336 if ((status = decode_change_info(xdr, cinfo))) in decode_create()
4337 return status; in decode_create()
4352 int status; in decode_server_caps() local
4354 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_server_caps()
4356 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_server_caps()
4358 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_server_caps()
4360 if ((status = decode_attr_supported(xdr, bitmap, res->attr_bitmask)) != 0) in decode_server_caps()
4362 if ((status = decode_attr_fh_expire_type(xdr, bitmap, in decode_server_caps()
4365 if ((status = decode_attr_link_support(xdr, bitmap, &res->has_links)) != 0) in decode_server_caps()
4367 if ((status = decode_attr_symlink_support(xdr, bitmap, &res->has_symlinks)) != 0) in decode_server_caps()
4369 if ((status = decode_attr_aclsupport(xdr, bitmap, &res->acl_bitmask)) != 0) in decode_server_caps()
4371 if ((status = decode_attr_exclcreat_supported(xdr, bitmap, in decode_server_caps()
4374 status = verify_attr_len(xdr, savep, attrlen); in decode_server_caps()
4376 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_server_caps()
4377 return status; in decode_server_caps()
4384 int status; in decode_statfs() local
4386 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_statfs()
4388 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_statfs()
4390 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_statfs()
4393 if ((status = decode_attr_files_avail(xdr, bitmap, &fsstat->afiles)) != 0) in decode_statfs()
4395 if ((status = decode_attr_files_free(xdr, bitmap, &fsstat->ffiles)) != 0) in decode_statfs()
4397 if ((status = decode_attr_files_total(xdr, bitmap, &fsstat->tfiles)) != 0) in decode_statfs()
4400 status = -EIO; in decode_statfs()
4404 if ((status = decode_attr_space_avail(xdr, bitmap, &fsstat->abytes)) != 0) in decode_statfs()
4406 if ((status = decode_attr_space_free(xdr, bitmap, &fsstat->fbytes)) != 0) in decode_statfs()
4408 if ((status = decode_attr_space_total(xdr, bitmap, &fsstat->tbytes)) != 0) in decode_statfs()
4411 status = verify_attr_len(xdr, savep, attrlen); in decode_statfs()
4413 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_statfs()
4414 return status; in decode_statfs()
4421 int status; in decode_pathconf() local
4423 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_pathconf()
4425 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_pathconf()
4427 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_pathconf()
4430 if ((status = decode_attr_maxlink(xdr, bitmap, &pathconf->max_link)) != 0) in decode_pathconf()
4432 if ((status = decode_attr_maxname(xdr, bitmap, &pathconf->max_namelen)) != 0) in decode_pathconf()
4435 status = verify_attr_len(xdr, savep, attrlen); in decode_pathconf()
4437 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_pathconf()
4438 return status; in decode_pathconf()
4464 int status; in decode_first_threshold_item4() local
4473 status = decode_attr_bitmap(xdr, bitmap); in decode_first_threshold_item4()
4474 if (status < 0) in decode_first_threshold_item4()
4478 status = decode_attr_length(xdr, &attrlen, &savep); in decode_first_threshold_item4()
4479 if (status < 0) in decode_first_threshold_item4()
4482 status = decode_threshold_hint(xdr, bitmap, &res->rd_sz, THRESHOLD_RD); in decode_first_threshold_item4()
4483 if (status < 0) in decode_first_threshold_item4()
4485 status = decode_threshold_hint(xdr, bitmap, &res->wr_sz, THRESHOLD_WR); in decode_first_threshold_item4()
4486 if (status < 0) in decode_first_threshold_item4()
4488 status = decode_threshold_hint(xdr, bitmap, &res->rd_io_sz, in decode_first_threshold_item4()
4490 if (status < 0) in decode_first_threshold_item4()
4492 status = decode_threshold_hint(xdr, bitmap, &res->wr_io_sz, in decode_first_threshold_item4()
4494 if (status < 0) in decode_first_threshold_item4()
4497 status = verify_attr_len(xdr, savep, attrlen); in decode_first_threshold_item4()
4504 dprintk("%s ret=%d!\n", __func__, status); in decode_first_threshold_item4()
4505 return status; in decode_first_threshold_item4()
4516 int status = 0; in decode_attr_mdsthreshold() local
4536 status = decode_first_threshold_item4(xdr, res); in decode_attr_mdsthreshold()
4539 return status; in decode_attr_mdsthreshold()
4547 int status; in decode_getfattr_attrs() local
4552 status = decode_attr_type(xdr, bitmap, &type); in decode_getfattr_attrs()
4553 if (status < 0) in decode_getfattr_attrs()
4556 if (status != 0) { in decode_getfattr_attrs()
4558 fattr->valid |= status; in decode_getfattr_attrs()
4561 status = decode_attr_change(xdr, bitmap, &fattr->change_attr); in decode_getfattr_attrs()
4562 if (status < 0) in decode_getfattr_attrs()
4564 fattr->valid |= status; in decode_getfattr_attrs()
4566 status = decode_attr_size(xdr, bitmap, &fattr->size); in decode_getfattr_attrs()
4567 if (status < 0) in decode_getfattr_attrs()
4569 fattr->valid |= status; in decode_getfattr_attrs()
4571 status = decode_attr_fsid(xdr, bitmap, &fattr->fsid); in decode_getfattr_attrs()
4572 if (status < 0) in decode_getfattr_attrs()
4574 fattr->valid |= status; in decode_getfattr_attrs()
4577 status = decode_attr_error(xdr, bitmap, &err); in decode_getfattr_attrs()
4578 if (status < 0) in decode_getfattr_attrs()
4581 status = decode_attr_filehandle(xdr, bitmap, fh); in decode_getfattr_attrs()
4582 if (status < 0) in decode_getfattr_attrs()
4585 status = decode_attr_fileid(xdr, bitmap, &fattr->fileid); in decode_getfattr_attrs()
4586 if (status < 0) in decode_getfattr_attrs()
4588 fattr->valid |= status; in decode_getfattr_attrs()
4590 status = decode_attr_fs_locations(xdr, bitmap, fs_loc); in decode_getfattr_attrs()
4591 if (status < 0) in decode_getfattr_attrs()
4593 fattr->valid |= status; in decode_getfattr_attrs()
4595 status = -EIO; in decode_getfattr_attrs()
4599 status = decode_attr_mode(xdr, bitmap, &fmode); in decode_getfattr_attrs()
4600 if (status < 0) in decode_getfattr_attrs()
4602 if (status != 0) { in decode_getfattr_attrs()
4604 fattr->valid |= status; in decode_getfattr_attrs()
4607 status = decode_attr_nlink(xdr, bitmap, &fattr->nlink); in decode_getfattr_attrs()
4608 if (status < 0) in decode_getfattr_attrs()
4610 fattr->valid |= status; in decode_getfattr_attrs()
4612 status = decode_attr_owner(xdr, bitmap, server, &fattr->uid, fattr->owner_name); in decode_getfattr_attrs()
4613 if (status < 0) in decode_getfattr_attrs()
4615 fattr->valid |= status; in decode_getfattr_attrs()
4617 status = decode_attr_group(xdr, bitmap, server, &fattr->gid, fattr->group_name); in decode_getfattr_attrs()
4618 if (status < 0) in decode_getfattr_attrs()
4620 fattr->valid |= status; in decode_getfattr_attrs()
4622 status = decode_attr_rdev(xdr, bitmap, &fattr->rdev); in decode_getfattr_attrs()
4623 if (status < 0) in decode_getfattr_attrs()
4625 fattr->valid |= status; in decode_getfattr_attrs()
4627 status = decode_attr_space_used(xdr, bitmap, &fattr->du.nfs3.used); in decode_getfattr_attrs()
4628 if (status < 0) in decode_getfattr_attrs()
4630 fattr->valid |= status; in decode_getfattr_attrs()
4632 status = decode_attr_time_access(xdr, bitmap, &fattr->atime); in decode_getfattr_attrs()
4633 if (status < 0) in decode_getfattr_attrs()
4635 fattr->valid |= status; in decode_getfattr_attrs()
4637 status = decode_attr_time_metadata(xdr, bitmap, &fattr->ctime); in decode_getfattr_attrs()
4638 if (status < 0) in decode_getfattr_attrs()
4640 fattr->valid |= status; in decode_getfattr_attrs()
4642 status = decode_attr_time_modify(xdr, bitmap, &fattr->mtime); in decode_getfattr_attrs()
4643 if (status < 0) in decode_getfattr_attrs()
4645 fattr->valid |= status; in decode_getfattr_attrs()
4647 status = decode_attr_mounted_on_fileid(xdr, bitmap, &fattr->mounted_on_fileid); in decode_getfattr_attrs()
4648 if (status < 0) in decode_getfattr_attrs()
4650 fattr->valid |= status; in decode_getfattr_attrs()
4652 status = -EIO; in decode_getfattr_attrs()
4656 status = decode_attr_mdsthreshold(xdr, bitmap, fattr->mdsthreshold); in decode_getfattr_attrs()
4657 if (status < 0) in decode_getfattr_attrs()
4661 status = decode_attr_security_label(xdr, bitmap, label); in decode_getfattr_attrs()
4662 if (status < 0) in decode_getfattr_attrs()
4664 fattr->valid |= status; in decode_getfattr_attrs()
4668 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_attrs()
4669 return status; in decode_getfattr_attrs()
4679 int status; in decode_getfattr_generic() local
4681 status = decode_op_hdr(xdr, OP_GETATTR); in decode_getfattr_generic()
4682 if (status < 0) in decode_getfattr_generic()
4685 status = decode_attr_bitmap(xdr, bitmap); in decode_getfattr_generic()
4686 if (status < 0) in decode_getfattr_generic()
4689 status = decode_attr_length(xdr, &attrlen, &savep); in decode_getfattr_generic()
4690 if (status < 0) in decode_getfattr_generic()
4693 status = decode_getfattr_attrs(xdr, bitmap, fattr, fh, fs_loc, in decode_getfattr_generic()
4695 if (status < 0) in decode_getfattr_generic()
4698 status = verify_attr_len(xdr, savep, attrlen); in decode_getfattr_generic()
4700 dprintk("%s: xdr returned %d\n", __func__, -status); in decode_getfattr_generic()
4701 return status; in decode_getfattr_generic()
4758 int status = 0; in decode_attr_pnfstype() local
4764 status = decode_pnfs_layout_types(xdr, fsinfo); in decode_attr_pnfstype()
4767 return status; in decode_attr_pnfstype()
4814 int status; in decode_fsinfo() local
4816 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_fsinfo()
4818 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_fsinfo()
4820 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_fsinfo()
4825 if ((status = decode_attr_lease_time(xdr, bitmap, &fsinfo->lease_time)) != 0) in decode_fsinfo()
4827 if ((status = decode_attr_maxfilesize(xdr, bitmap, &fsinfo->maxfilesize)) != 0) in decode_fsinfo()
4829 if ((status = decode_attr_maxread(xdr, bitmap, &fsinfo->rtmax)) != 0) in decode_fsinfo()
4832 if ((status = decode_attr_maxwrite(xdr, bitmap, &fsinfo->wtmax)) != 0) in decode_fsinfo()
4836 status = -EIO; in decode_fsinfo()
4840 status = decode_attr_time_delta(xdr, bitmap, &fsinfo->time_delta); in decode_fsinfo()
4841 if (status != 0) in decode_fsinfo()
4843 status = decode_attr_pnfstype(xdr, bitmap, fsinfo); in decode_fsinfo()
4844 if (status != 0) in decode_fsinfo()
4847 status = -EIO; in decode_fsinfo()
4851 status = decode_attr_layout_blksize(xdr, bitmap, &fsinfo->blksize); in decode_fsinfo()
4852 if (status) in decode_fsinfo()
4854 status = decode_attr_clone_blksize(xdr, bitmap, &fsinfo->clone_blksize); in decode_fsinfo()
4855 if (status) in decode_fsinfo()
4858 status = verify_attr_len(xdr, savep, attrlen); in decode_fsinfo()
4860 dprintk("%s: xdr returned %d!\n", __func__, -status); in decode_fsinfo()
4861 return status; in decode_fsinfo()
4868 int status; in decode_getfh() local
4873 status = decode_op_hdr(xdr, OP_GETFH); in decode_getfh()
4874 if (status) in decode_getfh()
4875 return status; in decode_getfh()
4893 int status; in decode_link() local
4895 status = decode_op_hdr(xdr, OP_LINK); in decode_link()
4896 if (status) in decode_link()
4897 return status; in decode_link()
4936 int status; in decode_lock() local
4938 status = decode_op_hdr(xdr, OP_LOCK); in decode_lock()
4939 if (status == -EIO) in decode_lock()
4941 if (status == 0) { in decode_lock()
4942 status = decode_lock_stateid(xdr, &res->stateid); in decode_lock()
4943 if (unlikely(status)) in decode_lock()
4945 } else if (status == -NFS4ERR_DENIED) in decode_lock()
4946 status = decode_lock_denied(xdr, NULL); in decode_lock()
4948 nfs_increment_open_seqid(status, res->open_seqid); in decode_lock()
4949 nfs_increment_lock_seqid(status, res->lock_seqid); in decode_lock()
4951 return status; in decode_lock()
4956 int status; in decode_lockt() local
4957 status = decode_op_hdr(xdr, OP_LOCKT); in decode_lockt()
4958 if (status == -NFS4ERR_DENIED) in decode_lockt()
4960 return status; in decode_lockt()
4965 int status; in decode_locku() local
4967 status = decode_op_hdr(xdr, OP_LOCKU); in decode_locku()
4968 if (status != -EIO) in decode_locku()
4969 nfs_increment_lock_seqid(status, res->seqid); in decode_locku()
4970 if (status == 0) in decode_locku()
4971 status = decode_lock_stateid(xdr, &res->stateid); in decode_locku()
4972 return status; in decode_locku()
5021 int status; in decode_rw_delegation() local
5023 status = decode_delegation_stateid(xdr, &res->delegation); in decode_rw_delegation()
5024 if (unlikely(status)) in decode_rw_delegation()
5025 return status; in decode_rw_delegation()
5087 int status; in decode_open() local
5089 if (!__decode_op_hdr(xdr, OP_OPEN, &status)) in decode_open()
5090 return status; in decode_open()
5091 nfs_increment_open_seqid(status, res->seqid); in decode_open()
5092 if (status) in decode_open()
5093 return status; in decode_open()
5094 status = decode_open_stateid(xdr, &res->stateid); in decode_open()
5095 if (unlikely(status)) in decode_open()
5096 return status; in decode_open()
5125 int status; in decode_open_confirm() local
5127 status = decode_op_hdr(xdr, OP_OPEN_CONFIRM); in decode_open_confirm()
5128 if (status != -EIO) in decode_open_confirm()
5129 nfs_increment_open_seqid(status, res->seqid); in decode_open_confirm()
5130 if (!status) in decode_open_confirm()
5131 status = decode_open_stateid(xdr, &res->stateid); in decode_open_confirm()
5132 return status; in decode_open_confirm()
5137 int status; in decode_open_downgrade() local
5139 status = decode_op_hdr(xdr, OP_OPEN_DOWNGRADE); in decode_open_downgrade()
5140 if (status != -EIO) in decode_open_downgrade()
5141 nfs_increment_open_seqid(status, res->seqid); in decode_open_downgrade()
5142 if (!status) in decode_open_downgrade()
5143 status = decode_open_stateid(xdr, &res->stateid); in decode_open_downgrade()
5144 return status; in decode_open_downgrade()
5162 int status; in decode_read() local
5164 status = decode_op_hdr(xdr, OP_READ); in decode_read()
5165 if (status) in decode_read()
5166 return status; in decode_read()
5186 int status; in decode_readdir() local
5189 status = decode_op_hdr(xdr, OP_READDIR); in decode_readdir()
5190 if (!status) in decode_readdir()
5191 status = decode_verifier(xdr, readdir->verifier.data); in decode_readdir()
5192 if (unlikely(status)) in decode_readdir()
5193 return status; in decode_readdir()
5205 int status; in decode_readlink() local
5207 status = decode_op_hdr(xdr, OP_READLINK); in decode_readlink()
5208 if (status) in decode_readlink()
5209 return status; in decode_readlink()
5239 int status; in decode_remove() local
5241 status = decode_op_hdr(xdr, OP_REMOVE); in decode_remove()
5242 if (status) in decode_remove()
5244 status = decode_change_info(xdr, cinfo); in decode_remove()
5246 return status; in decode_remove()
5252 int status; in decode_rename() local
5254 status = decode_op_hdr(xdr, OP_RENAME); in decode_rename()
5255 if (status) in decode_rename()
5257 if ((status = decode_change_info(xdr, old_cinfo))) in decode_rename()
5259 status = decode_change_info(xdr, new_cinfo); in decode_rename()
5261 return status; in decode_rename()
5281 int status; in decode_getacl() local
5285 if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) in decode_getacl()
5293 if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) in decode_getacl()
5295 if ((status = decode_attr_length(xdr, &attrlen, &savep)) != 0) in decode_getacl()
5316 status = -EOPNOTSUPP; in decode_getacl()
5319 return status; in decode_getacl()
5330 int status; in decode_setattr() local
5332 status = decode_op_hdr(xdr, OP_SETATTR); in decode_setattr()
5333 if (status) in decode_setattr()
5334 return status; in decode_setattr()
5397 int status; in decode_write() local
5399 status = decode_op_hdr(xdr, OP_WRITE); in decode_write()
5400 if (status) in decode_write()
5401 return status; in decode_write()
5448 int status; in decode_secinfo_common() local
5469 status = decode_secinfo_gss(xdr, sec_flavor); in decode_secinfo_common()
5470 if (status) in decode_secinfo_common()
5476 status = 0; in decode_secinfo_common()
5478 return status; in decode_secinfo_common()
5483 int status = decode_op_hdr(xdr, OP_SECINFO); in decode_secinfo() local
5484 if (status) in decode_secinfo()
5485 return status; in decode_secinfo()
5492 int status = decode_op_hdr(xdr, OP_SECINFO_NO_NAME); in decode_secinfo_no_name() local
5493 if (status) in decode_secinfo_no_name()
5494 return status; in decode_secinfo_no_name()
5523 int status; in decode_exchange_id() local
5526 status = decode_op_hdr(xdr, OP_EXCHANGE_ID); in decode_exchange_id()
5527 if (status) in decode_exchange_id()
5528 return status; in decode_exchange_id()
5545 status = decode_op_map(xdr, &res->state_protect.enforce); in decode_exchange_id()
5546 if (status) in decode_exchange_id()
5547 return status; in decode_exchange_id()
5548 status = decode_op_map(xdr, &res->state_protect.allow); in decode_exchange_id()
5549 if (status) in decode_exchange_id()
5550 return status; in decode_exchange_id()
5564 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5565 if (unlikely(status)) in decode_exchange_id()
5566 return status; in decode_exchange_id()
5571 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5572 if (unlikely(status)) in decode_exchange_id()
5573 return status; in decode_exchange_id()
5585 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5586 if (unlikely(status)) in decode_exchange_id()
5587 return status; in decode_exchange_id()
5591 status = decode_opaque_inline(xdr, &dummy, &dummy_str); in decode_exchange_id()
5592 if (unlikely(status)) in decode_exchange_id()
5593 return status; in decode_exchange_id()
5648 int status; in decode_bind_conn_to_session() local
5650 status = decode_op_hdr(xdr, OP_BIND_CONN_TO_SESSION); in decode_bind_conn_to_session()
5651 if (!status) in decode_bind_conn_to_session()
5652 status = decode_sessionid(xdr, &res->sessionid); in decode_bind_conn_to_session()
5653 if (unlikely(status)) in decode_bind_conn_to_session()
5654 return status; in decode_bind_conn_to_session()
5676 int status; in decode_create_session() local
5678 status = decode_op_hdr(xdr, OP_CREATE_SESSION); in decode_create_session()
5679 if (!status) in decode_create_session()
5680 status = decode_sessionid(xdr, &res->sessionid); in decode_create_session()
5681 if (unlikely(status)) in decode_create_session()
5682 return status; in decode_create_session()
5692 status = decode_chan_attrs(xdr, &res->fc_attrs); in decode_create_session()
5693 if (!status) in decode_create_session()
5694 status = decode_chan_attrs(xdr, &res->bc_attrs); in decode_create_session()
5695 return status; in decode_create_session()
5722 int status; in decode_sequence() local
5730 status = decode_op_hdr(xdr, OP_SEQUENCE); in decode_sequence()
5731 if (!status) in decode_sequence()
5732 status = decode_sessionid(xdr, &id); in decode_sequence()
5733 if (unlikely(status)) in decode_sequence()
5740 status = -EREMOTEIO; in decode_sequence()
5771 status = 0; in decode_sequence()
5773 res->sr_status = status; in decode_sequence()
5774 return status; in decode_sequence()
5776 status = -EIO; in decode_sequence()
5796 int status; in decode_getdeviceinfo() local
5798 status = decode_op_hdr(xdr, OP_GETDEVICEINFO); in decode_getdeviceinfo()
5799 if (status) { in decode_getdeviceinfo()
5800 if (status == -ETOOSMALL) { in decode_getdeviceinfo()
5808 return status; in decode_getdeviceinfo()
5857 int status; in decode_layoutget() local
5861 status = decode_op_hdr(xdr, OP_LAYOUTGET); in decode_layoutget()
5862 if (status) in decode_layoutget()
5876 status = -EINVAL; in decode_layoutget()
5902 status = -EINVAL; in decode_layoutget()
5917 res->status = status; in decode_layoutget()
5918 return status; in decode_layoutget()
5920 status = -EIO; in decode_layoutget()
5928 int status; in decode_layoutreturn() local
5930 status = decode_op_hdr(xdr, OP_LAYOUTRETURN); in decode_layoutreturn()
5931 if (status) in decode_layoutreturn()
5932 return status; in decode_layoutreturn()
5938 status = decode_layout_stateid(xdr, &res->stateid); in decode_layoutreturn()
5941 return status; in decode_layoutreturn()
5950 int status; in decode_layoutcommit() local
5952 status = decode_op_hdr(xdr, OP_LAYOUTCOMMIT); in decode_layoutcommit()
5953 res->status = status; in decode_layoutcommit()
5954 if (status) in decode_layoutcommit()
5955 return status; in decode_layoutcommit()
5975 int status; in decode_test_stateid() local
5978 status = decode_op_hdr(xdr, OP_TEST_STATEID); in decode_test_stateid()
5979 if (status) in decode_test_stateid()
5980 return status; in decode_test_stateid()
5992 res->status = be32_to_cpup(p++); in decode_test_stateid()
5994 return status; in decode_test_stateid()
6000 res->status = decode_op_hdr(xdr, OP_FREE_STATEID); in decode_free_stateid()
6001 return res->status; in decode_free_stateid()
6032 int status; in nfs4_xdr_dec_open_downgrade() local
6034 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_downgrade()
6035 if (status) in nfs4_xdr_dec_open_downgrade()
6037 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_downgrade()
6038 if (status) in nfs4_xdr_dec_open_downgrade()
6040 status = decode_putfh(xdr); in nfs4_xdr_dec_open_downgrade()
6041 if (status) in nfs4_xdr_dec_open_downgrade()
6044 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_open_downgrade()
6045 res->lr_ret = status; in nfs4_xdr_dec_open_downgrade()
6046 if (status) in nfs4_xdr_dec_open_downgrade()
6049 status = decode_open_downgrade(xdr, res); in nfs4_xdr_dec_open_downgrade()
6051 return status; in nfs4_xdr_dec_open_downgrade()
6062 int status; in nfs4_xdr_dec_access() local
6064 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_access()
6065 if (status) in nfs4_xdr_dec_access()
6067 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_access()
6068 if (status) in nfs4_xdr_dec_access()
6070 status = decode_putfh(xdr); in nfs4_xdr_dec_access()
6071 if (status != 0) in nfs4_xdr_dec_access()
6073 status = decode_access(xdr, &res->supported, &res->access); in nfs4_xdr_dec_access()
6074 if (status != 0) in nfs4_xdr_dec_access()
6079 return status; in nfs4_xdr_dec_access()
6090 int status; in nfs4_xdr_dec_lookup() local
6092 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup()
6093 if (status) in nfs4_xdr_dec_lookup()
6095 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup()
6096 if (status) in nfs4_xdr_dec_lookup()
6098 status = decode_putfh(xdr); in nfs4_xdr_dec_lookup()
6099 if (status) in nfs4_xdr_dec_lookup()
6101 status = decode_lookup(xdr); in nfs4_xdr_dec_lookup()
6102 if (status) in nfs4_xdr_dec_lookup()
6104 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup()
6105 if (status) in nfs4_xdr_dec_lookup()
6107 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); in nfs4_xdr_dec_lookup()
6109 return status; in nfs4_xdr_dec_lookup()
6120 int status; in nfs4_xdr_dec_lookupp() local
6122 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookupp()
6123 if (status) in nfs4_xdr_dec_lookupp()
6125 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookupp()
6126 if (status) in nfs4_xdr_dec_lookupp()
6128 status = decode_putfh(xdr); in nfs4_xdr_dec_lookupp()
6129 if (status) in nfs4_xdr_dec_lookupp()
6131 status = decode_lookupp(xdr); in nfs4_xdr_dec_lookupp()
6132 if (status) in nfs4_xdr_dec_lookupp()
6134 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookupp()
6135 if (status) in nfs4_xdr_dec_lookupp()
6137 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); in nfs4_xdr_dec_lookupp()
6139 return status; in nfs4_xdr_dec_lookupp()
6151 int status; in nfs4_xdr_dec_lookup_root() local
6153 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lookup_root()
6154 if (status) in nfs4_xdr_dec_lookup_root()
6156 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lookup_root()
6157 if (status) in nfs4_xdr_dec_lookup_root()
6159 status = decode_putrootfh(xdr); in nfs4_xdr_dec_lookup_root()
6160 if (status) in nfs4_xdr_dec_lookup_root()
6162 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_lookup_root()
6163 if (status == 0) in nfs4_xdr_dec_lookup_root()
6164 status = decode_getfattr_label(xdr, res->fattr, in nfs4_xdr_dec_lookup_root()
6167 return status; in nfs4_xdr_dec_lookup_root()
6178 int status; in nfs4_xdr_dec_remove() local
6180 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_remove()
6181 if (status) in nfs4_xdr_dec_remove()
6183 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_remove()
6184 if (status) in nfs4_xdr_dec_remove()
6186 status = decode_putfh(xdr); in nfs4_xdr_dec_remove()
6187 if (status) in nfs4_xdr_dec_remove()
6189 status = decode_remove(xdr, &res->cinfo); in nfs4_xdr_dec_remove()
6191 return status; in nfs4_xdr_dec_remove()
6202 int status; in nfs4_xdr_dec_rename() local
6204 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_rename()
6205 if (status) in nfs4_xdr_dec_rename()
6207 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_rename()
6208 if (status) in nfs4_xdr_dec_rename()
6210 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6211 if (status) in nfs4_xdr_dec_rename()
6213 status = decode_savefh(xdr); in nfs4_xdr_dec_rename()
6214 if (status) in nfs4_xdr_dec_rename()
6216 status = decode_putfh(xdr); in nfs4_xdr_dec_rename()
6217 if (status) in nfs4_xdr_dec_rename()
6219 status = decode_rename(xdr, &res->old_cinfo, &res->new_cinfo); in nfs4_xdr_dec_rename()
6221 return status; in nfs4_xdr_dec_rename()
6232 int status; in nfs4_xdr_dec_link() local
6234 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_link()
6235 if (status) in nfs4_xdr_dec_link()
6237 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_link()
6238 if (status) in nfs4_xdr_dec_link()
6240 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6241 if (status) in nfs4_xdr_dec_link()
6243 status = decode_savefh(xdr); in nfs4_xdr_dec_link()
6244 if (status) in nfs4_xdr_dec_link()
6246 status = decode_putfh(xdr); in nfs4_xdr_dec_link()
6247 if (status) in nfs4_xdr_dec_link()
6249 status = decode_link(xdr, &res->cinfo); in nfs4_xdr_dec_link()
6250 if (status) in nfs4_xdr_dec_link()
6256 status = decode_restorefh(xdr); in nfs4_xdr_dec_link()
6257 if (status) in nfs4_xdr_dec_link()
6261 return status; in nfs4_xdr_dec_link()
6272 int status; in nfs4_xdr_dec_create() local
6274 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create()
6275 if (status) in nfs4_xdr_dec_create()
6277 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_create()
6278 if (status) in nfs4_xdr_dec_create()
6280 status = decode_putfh(xdr); in nfs4_xdr_dec_create()
6281 if (status) in nfs4_xdr_dec_create()
6283 status = decode_create(xdr, &res->dir_cinfo); in nfs4_xdr_dec_create()
6284 if (status) in nfs4_xdr_dec_create()
6286 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_create()
6287 if (status) in nfs4_xdr_dec_create()
6291 return status; in nfs4_xdr_dec_create()
6311 int status; in nfs4_xdr_dec_getattr() local
6313 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getattr()
6314 if (status) in nfs4_xdr_dec_getattr()
6316 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getattr()
6317 if (status) in nfs4_xdr_dec_getattr()
6319 status = decode_putfh(xdr); in nfs4_xdr_dec_getattr()
6320 if (status) in nfs4_xdr_dec_getattr()
6322 status = decode_getfattr_label(xdr, res->fattr, res->label, res->server); in nfs4_xdr_dec_getattr()
6324 return status; in nfs4_xdr_dec_getattr()
6354 int status; in nfs4_xdr_dec_setacl() local
6356 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setacl()
6357 if (status) in nfs4_xdr_dec_setacl()
6359 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setacl()
6360 if (status) in nfs4_xdr_dec_setacl()
6362 status = decode_putfh(xdr); in nfs4_xdr_dec_setacl()
6363 if (status) in nfs4_xdr_dec_setacl()
6365 status = decode_setattr(xdr); in nfs4_xdr_dec_setacl()
6367 return status; in nfs4_xdr_dec_setacl()
6379 int status; in nfs4_xdr_dec_getacl() local
6385 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getacl()
6386 if (status) in nfs4_xdr_dec_getacl()
6388 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getacl()
6389 if (status) in nfs4_xdr_dec_getacl()
6391 status = decode_putfh(xdr); in nfs4_xdr_dec_getacl()
6392 if (status) in nfs4_xdr_dec_getacl()
6394 status = decode_getacl(xdr, rqstp, res); in nfs4_xdr_dec_getacl()
6397 return status; in nfs4_xdr_dec_getacl()
6408 int status; in nfs4_xdr_dec_close() local
6410 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_close()
6411 if (status) in nfs4_xdr_dec_close()
6413 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_close()
6414 if (status) in nfs4_xdr_dec_close()
6416 status = decode_putfh(xdr); in nfs4_xdr_dec_close()
6417 if (status) in nfs4_xdr_dec_close()
6420 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_close()
6421 res->lr_ret = status; in nfs4_xdr_dec_close()
6422 if (status) in nfs4_xdr_dec_close()
6426 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_close()
6427 if (status != 0) in nfs4_xdr_dec_close()
6430 status = decode_close(xdr, res); in nfs4_xdr_dec_close()
6432 return status; in nfs4_xdr_dec_close()
6443 int status; in nfs4_xdr_dec_open() local
6445 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open()
6446 if (status) in nfs4_xdr_dec_open()
6448 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open()
6449 if (status) in nfs4_xdr_dec_open()
6451 status = decode_putfh(xdr); in nfs4_xdr_dec_open()
6452 if (status) in nfs4_xdr_dec_open()
6454 status = decode_open(xdr, res); in nfs4_xdr_dec_open()
6455 if (status) in nfs4_xdr_dec_open()
6457 status = decode_getfh(xdr, &res->fh); in nfs4_xdr_dec_open()
6458 if (status) in nfs4_xdr_dec_open()
6466 return status; in nfs4_xdr_dec_open()
6478 int status; in nfs4_xdr_dec_open_confirm() local
6480 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_confirm()
6481 if (status) in nfs4_xdr_dec_open_confirm()
6483 status = decode_putfh(xdr); in nfs4_xdr_dec_open_confirm()
6484 if (status) in nfs4_xdr_dec_open_confirm()
6486 status = decode_open_confirm(xdr, res); in nfs4_xdr_dec_open_confirm()
6488 return status; in nfs4_xdr_dec_open_confirm()
6500 int status; in nfs4_xdr_dec_open_noattr() local
6502 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_open_noattr()
6503 if (status) in nfs4_xdr_dec_open_noattr()
6505 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_open_noattr()
6506 if (status) in nfs4_xdr_dec_open_noattr()
6508 status = decode_putfh(xdr); in nfs4_xdr_dec_open_noattr()
6509 if (status) in nfs4_xdr_dec_open_noattr()
6511 status = decode_open(xdr, res); in nfs4_xdr_dec_open_noattr()
6512 if (status) in nfs4_xdr_dec_open_noattr()
6520 return status; in nfs4_xdr_dec_open_noattr()
6532 int status; in nfs4_xdr_dec_setattr() local
6534 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setattr()
6535 if (status) in nfs4_xdr_dec_setattr()
6537 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_setattr()
6538 if (status) in nfs4_xdr_dec_setattr()
6540 status = decode_putfh(xdr); in nfs4_xdr_dec_setattr()
6541 if (status) in nfs4_xdr_dec_setattr()
6543 status = decode_setattr(xdr); in nfs4_xdr_dec_setattr()
6544 if (status) in nfs4_xdr_dec_setattr()
6548 return status; in nfs4_xdr_dec_setattr()
6559 int status; in nfs4_xdr_dec_lock() local
6561 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lock()
6562 if (status) in nfs4_xdr_dec_lock()
6564 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lock()
6565 if (status) in nfs4_xdr_dec_lock()
6567 status = decode_putfh(xdr); in nfs4_xdr_dec_lock()
6568 if (status) in nfs4_xdr_dec_lock()
6570 status = decode_lock(xdr, res); in nfs4_xdr_dec_lock()
6572 return status; in nfs4_xdr_dec_lock()
6583 int status; in nfs4_xdr_dec_lockt() local
6585 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_lockt()
6586 if (status) in nfs4_xdr_dec_lockt()
6588 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_lockt()
6589 if (status) in nfs4_xdr_dec_lockt()
6591 status = decode_putfh(xdr); in nfs4_xdr_dec_lockt()
6592 if (status) in nfs4_xdr_dec_lockt()
6594 status = decode_lockt(xdr, res); in nfs4_xdr_dec_lockt()
6596 return status; in nfs4_xdr_dec_lockt()
6607 int status; in nfs4_xdr_dec_locku() local
6609 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_locku()
6610 if (status) in nfs4_xdr_dec_locku()
6612 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_locku()
6613 if (status) in nfs4_xdr_dec_locku()
6615 status = decode_putfh(xdr); in nfs4_xdr_dec_locku()
6616 if (status) in nfs4_xdr_dec_locku()
6618 status = decode_locku(xdr, res); in nfs4_xdr_dec_locku()
6620 return status; in nfs4_xdr_dec_locku()
6627 int status; in nfs4_xdr_dec_release_lockowner() local
6629 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_release_lockowner()
6630 if (!status) in nfs4_xdr_dec_release_lockowner()
6631 status = decode_release_lockowner(xdr); in nfs4_xdr_dec_release_lockowner()
6632 return status; in nfs4_xdr_dec_release_lockowner()
6644 int status; in nfs4_xdr_dec_readlink() local
6646 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readlink()
6647 if (status) in nfs4_xdr_dec_readlink()
6649 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readlink()
6650 if (status) in nfs4_xdr_dec_readlink()
6652 status = decode_putfh(xdr); in nfs4_xdr_dec_readlink()
6653 if (status) in nfs4_xdr_dec_readlink()
6655 status = decode_readlink(xdr, rqstp); in nfs4_xdr_dec_readlink()
6657 return status; in nfs4_xdr_dec_readlink()
6668 int status; in nfs4_xdr_dec_readdir() local
6670 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_readdir()
6671 if (status) in nfs4_xdr_dec_readdir()
6673 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_readdir()
6674 if (status) in nfs4_xdr_dec_readdir()
6676 status = decode_putfh(xdr); in nfs4_xdr_dec_readdir()
6677 if (status) in nfs4_xdr_dec_readdir()
6679 status = decode_readdir(xdr, rqstp, res); in nfs4_xdr_dec_readdir()
6681 return status; in nfs4_xdr_dec_readdir()
6692 int status; in nfs4_xdr_dec_read() local
6694 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_read()
6695 res->op_status = hdr.status; in nfs4_xdr_dec_read()
6696 if (status) in nfs4_xdr_dec_read()
6698 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_read()
6699 if (status) in nfs4_xdr_dec_read()
6701 status = decode_putfh(xdr); in nfs4_xdr_dec_read()
6702 if (status) in nfs4_xdr_dec_read()
6704 status = decode_read(xdr, rqstp, res); in nfs4_xdr_dec_read()
6705 if (!status) in nfs4_xdr_dec_read()
6706 status = res->count; in nfs4_xdr_dec_read()
6708 return status; in nfs4_xdr_dec_read()
6719 int status; in nfs4_xdr_dec_write() local
6721 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_write()
6722 res->op_status = hdr.status; in nfs4_xdr_dec_write()
6723 if (status) in nfs4_xdr_dec_write()
6725 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_write()
6726 if (status) in nfs4_xdr_dec_write()
6728 status = decode_putfh(xdr); in nfs4_xdr_dec_write()
6729 if (status) in nfs4_xdr_dec_write()
6731 status = decode_write(xdr, res); in nfs4_xdr_dec_write()
6732 if (status) in nfs4_xdr_dec_write()
6736 if (!status) in nfs4_xdr_dec_write()
6737 status = res->count; in nfs4_xdr_dec_write()
6739 return status; in nfs4_xdr_dec_write()
6750 int status; in nfs4_xdr_dec_commit() local
6752 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_commit()
6753 res->op_status = hdr.status; in nfs4_xdr_dec_commit()
6754 if (status) in nfs4_xdr_dec_commit()
6756 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_commit()
6757 if (status) in nfs4_xdr_dec_commit()
6759 status = decode_putfh(xdr); in nfs4_xdr_dec_commit()
6760 if (status) in nfs4_xdr_dec_commit()
6762 status = decode_commit(xdr, res); in nfs4_xdr_dec_commit()
6764 return status; in nfs4_xdr_dec_commit()
6775 int status; in nfs4_xdr_dec_fsinfo() local
6777 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsinfo()
6778 if (!status) in nfs4_xdr_dec_fsinfo()
6779 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fsinfo()
6780 if (!status) in nfs4_xdr_dec_fsinfo()
6781 status = decode_putfh(xdr); in nfs4_xdr_dec_fsinfo()
6782 if (!status) in nfs4_xdr_dec_fsinfo()
6783 status = decode_fsinfo(xdr, res->fsinfo); in nfs4_xdr_dec_fsinfo()
6784 return status; in nfs4_xdr_dec_fsinfo()
6795 int status; in nfs4_xdr_dec_pathconf() local
6797 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_pathconf()
6798 if (!status) in nfs4_xdr_dec_pathconf()
6799 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_pathconf()
6800 if (!status) in nfs4_xdr_dec_pathconf()
6801 status = decode_putfh(xdr); in nfs4_xdr_dec_pathconf()
6802 if (!status) in nfs4_xdr_dec_pathconf()
6803 status = decode_pathconf(xdr, res->pathconf); in nfs4_xdr_dec_pathconf()
6804 return status; in nfs4_xdr_dec_pathconf()
6815 int status; in nfs4_xdr_dec_statfs() local
6817 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_statfs()
6818 if (!status) in nfs4_xdr_dec_statfs()
6819 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_statfs()
6820 if (!status) in nfs4_xdr_dec_statfs()
6821 status = decode_putfh(xdr); in nfs4_xdr_dec_statfs()
6822 if (!status) in nfs4_xdr_dec_statfs()
6823 status = decode_statfs(xdr, res->fsstat); in nfs4_xdr_dec_statfs()
6824 return status; in nfs4_xdr_dec_statfs()
6836 int status; in nfs4_xdr_dec_server_caps() local
6838 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_server_caps()
6839 if (status) in nfs4_xdr_dec_server_caps()
6841 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_server_caps()
6842 if (status) in nfs4_xdr_dec_server_caps()
6844 status = decode_putfh(xdr); in nfs4_xdr_dec_server_caps()
6845 if (status) in nfs4_xdr_dec_server_caps()
6847 status = decode_server_caps(xdr, res); in nfs4_xdr_dec_server_caps()
6849 return status; in nfs4_xdr_dec_server_caps()
6859 int status; in nfs4_xdr_dec_renew() local
6861 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_renew()
6862 if (!status) in nfs4_xdr_dec_renew()
6863 status = decode_renew(xdr); in nfs4_xdr_dec_renew()
6864 return status; in nfs4_xdr_dec_renew()
6876 int status; in nfs4_xdr_dec_setclientid() local
6878 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid()
6879 if (!status) in nfs4_xdr_dec_setclientid()
6880 status = decode_setclientid(xdr, res); in nfs4_xdr_dec_setclientid()
6881 return status; in nfs4_xdr_dec_setclientid()
6892 int status; in nfs4_xdr_dec_setclientid_confirm() local
6894 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_setclientid_confirm()
6895 if (!status) in nfs4_xdr_dec_setclientid_confirm()
6896 status = decode_setclientid_confirm(xdr); in nfs4_xdr_dec_setclientid_confirm()
6897 return status; in nfs4_xdr_dec_setclientid_confirm()
6909 int status; in nfs4_xdr_dec_delegreturn() local
6911 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_delegreturn()
6912 if (status) in nfs4_xdr_dec_delegreturn()
6914 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_delegreturn()
6915 if (status) in nfs4_xdr_dec_delegreturn()
6917 status = decode_putfh(xdr); in nfs4_xdr_dec_delegreturn()
6918 if (status != 0) in nfs4_xdr_dec_delegreturn()
6921 status = decode_layoutreturn(xdr, res->lr_res); in nfs4_xdr_dec_delegreturn()
6922 res->lr_ret = status; in nfs4_xdr_dec_delegreturn()
6923 if (status) in nfs4_xdr_dec_delegreturn()
6927 status = decode_getfattr(xdr, res->fattr, res->server); in nfs4_xdr_dec_delegreturn()
6928 if (status != 0) in nfs4_xdr_dec_delegreturn()
6931 status = decode_delegreturn(xdr); in nfs4_xdr_dec_delegreturn()
6933 return status; in nfs4_xdr_dec_delegreturn()
6945 int status; in nfs4_xdr_dec_fs_locations() local
6947 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fs_locations()
6948 if (status) in nfs4_xdr_dec_fs_locations()
6950 status = decode_sequence(xdr, &res->seq_res, req); in nfs4_xdr_dec_fs_locations()
6951 if (status) in nfs4_xdr_dec_fs_locations()
6953 status = decode_putfh(xdr); in nfs4_xdr_dec_fs_locations()
6954 if (status) in nfs4_xdr_dec_fs_locations()
6958 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
6962 if (status) in nfs4_xdr_dec_fs_locations()
6965 status = decode_renew(xdr); in nfs4_xdr_dec_fs_locations()
6967 status = decode_lookup(xdr); in nfs4_xdr_dec_fs_locations()
6968 if (status) in nfs4_xdr_dec_fs_locations()
6971 status = decode_getfattr_generic(xdr, in nfs4_xdr_dec_fs_locations()
6977 return status; in nfs4_xdr_dec_fs_locations()
6989 int status; in nfs4_xdr_dec_secinfo() local
6991 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo()
6992 if (status) in nfs4_xdr_dec_secinfo()
6994 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo()
6995 if (status) in nfs4_xdr_dec_secinfo()
6997 status = decode_putfh(xdr); in nfs4_xdr_dec_secinfo()
6998 if (status) in nfs4_xdr_dec_secinfo()
7000 status = decode_secinfo(xdr, res); in nfs4_xdr_dec_secinfo()
7002 return status; in nfs4_xdr_dec_secinfo()
7014 int status; in nfs4_xdr_dec_fsid_present() local
7016 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_fsid_present()
7017 if (status) in nfs4_xdr_dec_fsid_present()
7019 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_fsid_present()
7020 if (status) in nfs4_xdr_dec_fsid_present()
7022 status = decode_putfh(xdr); in nfs4_xdr_dec_fsid_present()
7023 if (status) in nfs4_xdr_dec_fsid_present()
7025 status = decode_getfh(xdr, res->fh); in nfs4_xdr_dec_fsid_present()
7026 if (status) in nfs4_xdr_dec_fsid_present()
7029 status = decode_renew(xdr); in nfs4_xdr_dec_fsid_present()
7031 return status; in nfs4_xdr_dec_fsid_present()
7043 int status; in nfs4_xdr_dec_bind_conn_to_session() local
7045 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_bind_conn_to_session()
7046 if (!status) in nfs4_xdr_dec_bind_conn_to_session()
7047 status = decode_bind_conn_to_session(xdr, res); in nfs4_xdr_dec_bind_conn_to_session()
7048 return status; in nfs4_xdr_dec_bind_conn_to_session()
7059 int status; in nfs4_xdr_dec_exchange_id() local
7061 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_exchange_id()
7062 if (!status) in nfs4_xdr_dec_exchange_id()
7063 status = decode_exchange_id(xdr, res); in nfs4_xdr_dec_exchange_id()
7064 return status; in nfs4_xdr_dec_exchange_id()
7075 int status; in nfs4_xdr_dec_create_session() local
7077 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_create_session()
7078 if (!status) in nfs4_xdr_dec_create_session()
7079 status = decode_create_session(xdr, res); in nfs4_xdr_dec_create_session()
7080 return status; in nfs4_xdr_dec_create_session()
7091 int status; in nfs4_xdr_dec_destroy_session() local
7093 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_session()
7094 if (!status) in nfs4_xdr_dec_destroy_session()
7095 status = decode_destroy_session(xdr, res); in nfs4_xdr_dec_destroy_session()
7096 return status; in nfs4_xdr_dec_destroy_session()
7107 int status; in nfs4_xdr_dec_destroy_clientid() local
7109 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_destroy_clientid()
7110 if (!status) in nfs4_xdr_dec_destroy_clientid()
7111 status = decode_destroy_clientid(xdr, res); in nfs4_xdr_dec_destroy_clientid()
7112 return status; in nfs4_xdr_dec_destroy_clientid()
7123 int status; in nfs4_xdr_dec_sequence() local
7125 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_sequence()
7126 if (!status) in nfs4_xdr_dec_sequence()
7127 status = decode_sequence(xdr, res, rqstp); in nfs4_xdr_dec_sequence()
7128 return status; in nfs4_xdr_dec_sequence()
7142 int status; in nfs4_xdr_dec_get_lease_time() local
7144 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_get_lease_time()
7145 if (!status) in nfs4_xdr_dec_get_lease_time()
7146 status = decode_sequence(xdr, &res->lr_seq_res, rqstp); in nfs4_xdr_dec_get_lease_time()
7147 if (!status) in nfs4_xdr_dec_get_lease_time()
7148 status = decode_putrootfh(xdr); in nfs4_xdr_dec_get_lease_time()
7149 if (!status) in nfs4_xdr_dec_get_lease_time()
7150 status = decode_fsinfo(xdr, res->lr_fsinfo); in nfs4_xdr_dec_get_lease_time()
7151 return status; in nfs4_xdr_dec_get_lease_time()
7165 int status; in nfs4_xdr_dec_reclaim_complete() local
7167 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_reclaim_complete()
7168 if (!status) in nfs4_xdr_dec_reclaim_complete()
7169 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_reclaim_complete()
7170 if (!status) in nfs4_xdr_dec_reclaim_complete()
7171 status = decode_reclaim_complete(xdr, NULL); in nfs4_xdr_dec_reclaim_complete()
7172 return status; in nfs4_xdr_dec_reclaim_complete()
7184 int status; in nfs4_xdr_dec_getdeviceinfo() local
7186 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_getdeviceinfo()
7187 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7189 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_getdeviceinfo()
7190 if (status != 0) in nfs4_xdr_dec_getdeviceinfo()
7192 status = decode_getdeviceinfo(xdr, res); in nfs4_xdr_dec_getdeviceinfo()
7194 return status; in nfs4_xdr_dec_getdeviceinfo()
7206 int status; in nfs4_xdr_dec_layoutget() local
7208 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutget()
7209 if (status) in nfs4_xdr_dec_layoutget()
7211 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutget()
7212 if (status) in nfs4_xdr_dec_layoutget()
7214 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutget()
7215 if (status) in nfs4_xdr_dec_layoutget()
7217 status = decode_layoutget(xdr, rqstp, res); in nfs4_xdr_dec_layoutget()
7219 return status; in nfs4_xdr_dec_layoutget()
7231 int status; in nfs4_xdr_dec_layoutreturn() local
7233 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutreturn()
7234 if (status) in nfs4_xdr_dec_layoutreturn()
7236 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutreturn()
7237 if (status) in nfs4_xdr_dec_layoutreturn()
7239 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutreturn()
7240 if (status) in nfs4_xdr_dec_layoutreturn()
7242 status = decode_layoutreturn(xdr, res); in nfs4_xdr_dec_layoutreturn()
7244 return status; in nfs4_xdr_dec_layoutreturn()
7256 int status; in nfs4_xdr_dec_layoutcommit() local
7258 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_layoutcommit()
7259 if (status) in nfs4_xdr_dec_layoutcommit()
7261 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_layoutcommit()
7262 if (status) in nfs4_xdr_dec_layoutcommit()
7264 status = decode_putfh(xdr); in nfs4_xdr_dec_layoutcommit()
7265 if (status) in nfs4_xdr_dec_layoutcommit()
7267 status = decode_layoutcommit(xdr, rqstp, res); in nfs4_xdr_dec_layoutcommit()
7268 if (status) in nfs4_xdr_dec_layoutcommit()
7272 return status; in nfs4_xdr_dec_layoutcommit()
7284 int status; in nfs4_xdr_dec_secinfo_no_name() local
7286 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_secinfo_no_name()
7287 if (status) in nfs4_xdr_dec_secinfo_no_name()
7289 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_secinfo_no_name()
7290 if (status) in nfs4_xdr_dec_secinfo_no_name()
7292 status = decode_putrootfh(xdr); in nfs4_xdr_dec_secinfo_no_name()
7293 if (status) in nfs4_xdr_dec_secinfo_no_name()
7295 status = decode_secinfo_no_name(xdr, res); in nfs4_xdr_dec_secinfo_no_name()
7297 return status; in nfs4_xdr_dec_secinfo_no_name()
7309 int status; in nfs4_xdr_dec_test_stateid() local
7311 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_test_stateid()
7312 if (status) in nfs4_xdr_dec_test_stateid()
7314 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_test_stateid()
7315 if (status) in nfs4_xdr_dec_test_stateid()
7317 status = decode_test_stateid(xdr, res); in nfs4_xdr_dec_test_stateid()
7319 return status; in nfs4_xdr_dec_test_stateid()
7331 int status; in nfs4_xdr_dec_free_stateid() local
7333 status = decode_compound_hdr(xdr, &hdr); in nfs4_xdr_dec_free_stateid()
7334 if (status) in nfs4_xdr_dec_free_stateid()
7336 status = decode_sequence(xdr, &res->seq_res, rqstp); in nfs4_xdr_dec_free_stateid()
7337 if (status) in nfs4_xdr_dec_free_stateid()
7339 status = decode_free_stateid(xdr, res); in nfs4_xdr_dec_free_stateid()
7341 return status; in nfs4_xdr_dec_free_stateid()