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 */
94 bool fh_post_saved; /* post-op attrs saved */
95 bool fh_pre_saved; /* pre-op attrs saved */
97 /* Pre-op attributes saved when inode is locked */
102 * pre-op nfsv4 change attr: note must check IS_I_VERSION(inode)
107 /* Post-op attributes saved in fh_fill_post_attrs() */
112 #define SET_FH_FLAG(c, f) ((c)->fh_flags |= (f))
113 #define HAS_FH_FLAG(c, f) ((c)->fh_flags & (f))
169 /* 4 byte fsid and inode number */ in mk_fsid()
176 /* 8 byte fsid */ in mk_fsid()
183 /* 16 byte fsid - NFSv3+ only */ in mk_fsid()
188 /* 8 byte inode and 16 byte fsid */ in mk_fsid()
229 WARN_ON(src->fh_dentry); in fh_copy()
238 dst->fh_size = src->fh_size; in fh_copy_shallow()
239 memcpy(&dst->fh_raw, &src->fh_raw, src->fh_size); in fh_copy_shallow()
246 fhp->fh_maxsize = maxsize; in fh_init()
253 if (fh1->fh_size != fh2->fh_size) in fh_match()
255 if (memcmp(fh1->fh_raw, fh2->fh_raw, fh1->fh_size) != 0) in fh_match()
263 if (fh1->fh_fsid_type != fh2->fh_fsid_type) in fh_fsid_match()
265 if (memcmp(fh1->fh_fsid, fh2->fh_fsid, key_len(fh1->fh_fsid_type)) != 0) in fh_fsid_match()
272 * knfsd_fh_hash - calculate the crc32 hash for the filehandle
273 * @fh - pointer to filehandle
280 return ~crc32_le(0xFFFFFFFF, fh->fh_raw, fh->fh_size); in knfsd_fh_hash()
290 * fh_clear_pre_post_attrs - Reset pre/post attributes
296 fhp->fh_post_saved = false; in fh_clear_pre_post_attrs()
297 fhp->fh_pre_saved = false; in fh_clear_pre_post_attrs()