Lines Matching +full:four +full:- +full:byte
1 /* SPDX-License-Identifier: GPL-2.0 */
20 * The file handle starts with a sequence of four-byte words.
25 * All four-byte values are in host-byte-order.
32 * 0 - 4 byte device id (ms-2-bytes major, ls-2-bytes minor), 4byte inode number
35 * 1 - 4 byte user specified identifier
36 * 2 - 4 byte major, 4 byte minor, 4 byte inode number - DEPRECATED
37 * 3 - 4 byte device id, encoded for user-space, 4 byte inode number
38 * 4 - 4 byte inode number and 4 byte uuid
39 * 5 - 8 byte uuid
40 * 6 - 16 byte uuid
41 * 7 - 8 byte inode number and 16 byte uuid
64 return (u32 *)&fh->fh_raw[4]; in fh_fsid()
97 bool fh_post_saved; /* post-op attrs saved */
98 bool fh_pre_saved; /* pre-op attrs saved */
100 /* Pre-op attributes saved when inode is locked */
105 * pre-op nfsv4 change attr: note must check IS_I_VERSION(inode)
110 /* Post-op attributes saved in fh_fill_post_attrs() */
115 #define SET_FH_FLAG(c, f) ((c)->fh_flags |= (f))
116 #define HAS_FH_FLAG(c, f) ((c)->fh_flags & (f))
172 /* 4 byte fsid and inode number */ in mk_fsid()
179 /* 8 byte fsid */ in mk_fsid()
186 /* 16 byte fsid - NFSv3+ only */ in mk_fsid()
191 /* 8 byte inode and 16 byte fsid */ in mk_fsid()
233 WARN_ON(src->fh_dentry); in fh_copy()
242 dst->fh_size = src->fh_size; in fh_copy_shallow()
243 memcpy(&dst->fh_raw, &src->fh_raw, src->fh_size); in fh_copy_shallow()
250 fhp->fh_maxsize = maxsize; in fh_init()
257 if (fh1->fh_size != fh2->fh_size) in fh_match()
259 if (memcmp(fh1->fh_raw, fh2->fh_raw, fh1->fh_size) != 0) in fh_match()
270 if (fh1->fh_fsid_type != fh2->fh_fsid_type) in fh_fsid_match()
272 if (memcmp(fsid1, fsid2, key_len(fh1->fh_fsid_type)) != 0) in fh_fsid_match()
278 * fh_want_write - Get write access to an export
292 if (fhp->fh_want_write) in fh_want_write()
294 ret = mnt_want_write(fhp->fh_export->ex_path.mnt); in fh_want_write()
296 fhp->fh_want_write = true; in fh_want_write()
301 * fh_drop_write - Release write access on an export
306 if (fhp->fh_want_write) { in fh_drop_write()
307 fhp->fh_want_write = false; in fh_drop_write()
308 mnt_drop_write(fhp->fh_export->ex_path.mnt); in fh_drop_write()
313 * knfsd_fh_hash - calculate the crc32 hash for the filehandle
314 * @fh - pointer to filehandle
321 return ~crc32_le(0xFFFFFFFF, fh->fh_raw, fh->fh_size); in knfsd_fh_hash()
325 * fh_clear_pre_post_attrs - Reset pre/post attributes
331 fhp->fh_post_saved = false; in fh_clear_pre_post_attrs()
332 fhp->fh_pre_saved = false; in fh_clear_pre_post_attrs()