Lines Matching +full:four +full:- +full:byte

1 /* SPDX-License-Identifier: GPL-2.0 */
18 * The file handle starts with a sequence of four-byte words.
23 * All four-byte values are in host-byte-order.
30 * 0 - 4 byte device id (ms-2-bytes major, ls-2-bytes minor), 4byte inode number
33 * 1 - 4 byte user specified identifier
34 * 2 - 4 byte major, 4 byte minor, 4 byte inode number - DEPRECATED
35 * 3 - 4 byte device id, encoded for user-space, 4 byte inode number
36 * 4 - 4 byte inode number and 4 byte uuid
37 * 5 - 8 byte uuid
38 * 6 - 16 byte uuid
39 * 7 - 8 byte inode number and 16 byte uuid
59 u32 fh_fsid[]; /* flexible-array member */
92 bool fh_post_saved; /* post-op attrs saved */
93 bool fh_pre_saved; /* pre-op attrs saved */
95 /* Pre-op attributes saved when inode is locked */
100 * pre-op nfsv4 change attr: note must check IS_I_VERSION(inode)
105 /* Post-op attributes saved in fh_fill_post_attrs() */
110 #define SET_FH_FLAG(c, f) ((c)->fh_flags |= (f))
111 #define HAS_FH_FLAG(c, f) ((c)->fh_flags & (f))
167 /* 4 byte fsid and inode number */ in mk_fsid()
174 /* 8 byte fsid */ in mk_fsid()
181 /* 16 byte fsid - NFSv3+ only */ in mk_fsid()
186 /* 8 byte inode and 16 byte fsid */ in mk_fsid()
225 WARN_ON(src->fh_dentry); in fh_copy()
234 dst->fh_size = src->fh_size; in fh_copy_shallow()
235 memcpy(&dst->fh_raw, &src->fh_raw, src->fh_size); in fh_copy_shallow()
242 fhp->fh_maxsize = maxsize; in fh_init()
249 if (fh1->fh_size != fh2->fh_size) in fh_match()
251 if (memcmp(fh1->fh_raw, fh2->fh_raw, fh1->fh_size) != 0) in fh_match()
259 if (fh1->fh_fsid_type != fh2->fh_fsid_type) in fh_fsid_match()
261 if (memcmp(fh1->fh_fsid, fh2->fh_fsid, key_len(fh1->fh_fsid_type)) != 0) in fh_fsid_match()
268 * knfsd_fh_hash - calculate the crc32 hash for the filehandle
269 * @fh - pointer to filehandle
276 return ~crc32_le(0xFFFFFFFF, fh->fh_raw, fh->fh_size); in knfsd_fh_hash()
286 * fh_clear_pre_post_attrs - Reset pre/post attributes
292 fhp->fh_post_saved = false; in fh_clear_pre_post_attrs()
293 fhp->fh_pre_saved = false; in fh_clear_pre_post_attrs()