Lines Matching full:ea

656 	 * EA $LXMOD which contains in its S_DT part the mandatory file type.  in cifs_query_path_info()
659 struct smb2_file_full_ea_info *ea; in cifs_query_path_info() local
662 ea = (struct smb2_file_full_ea_info *)data->wsl.eas; in cifs_query_path_info()
664 ea = (void *)((u8 *)ea + next); in cifs_query_path_info()
665 next = le32_to_cpu(ea->next_entry_offset); in cifs_query_path_info()
667 if (le16_to_cpu(ea->ea_value_length)) { in cifs_query_path_info()
668 ea->next_entry_offset = cpu_to_le32(ALIGN(sizeof(*ea) + in cifs_query_path_info()
669 ea->ea_name_length + 1 + in cifs_query_path_info()
670 le16_to_cpu(ea->ea_value_length), 4)); in cifs_query_path_info()
671 ea = (void *)((u8 *)ea + le32_to_cpu(ea->next_entry_offset)); in cifs_query_path_info()
675 &ea->ea_data[SMB2_WSL_XATTR_NAME_LEN + 1], in cifs_query_path_info()
678 ea->next_entry_offset = cpu_to_le32(0); in cifs_query_path_info()
679 ea->flags = 0; in cifs_query_path_info()
680 ea->ea_name_length = SMB2_WSL_XATTR_NAME_LEN; in cifs_query_path_info()
681 ea->ea_value_length = cpu_to_le16(SMB2_WSL_XATTR_MODE_SIZE); in cifs_query_path_info()
682 memcpy(&ea->ea_data[0], SMB2_WSL_XATTR_MODE, SMB2_WSL_XATTR_NAME_LEN + 1); in cifs_query_path_info()
683 data->wsl.eas_len += ALIGN(sizeof(*ea) + SMB2_WSL_XATTR_NAME_LEN + 1 + in cifs_query_path_info()
687 /* It is an error if EA $LXMOD has wrong size. */ in cifs_query_path_info()
692 * of EA $LXMOD failed. It is needed only for in cifs_query_path_info()
694 * handle the case when EA is missing. in cifs_query_path_info()
702 * EA $LXDEV which contains major and minor device numbers. in cifs_query_path_info()
705 struct smb2_file_full_ea_info *ea; in cifs_query_path_info() local
708 ea = (struct smb2_file_full_ea_info *)data->wsl.eas; in cifs_query_path_info()
710 ea = (void *)((u8 *)ea + next); in cifs_query_path_info()
711 next = le32_to_cpu(ea->next_entry_offset); in cifs_query_path_info()
713 if (le16_to_cpu(ea->ea_value_length)) { in cifs_query_path_info()
714 ea->next_entry_offset = cpu_to_le32(ALIGN(sizeof(*ea) + in cifs_query_path_info()
715 ea->ea_name_length + 1 + in cifs_query_path_info()
716 le16_to_cpu(ea->ea_value_length), 4)); in cifs_query_path_info()
717 ea = (void *)((u8 *)ea + le32_to_cpu(ea->next_entry_offset)); in cifs_query_path_info()
721 &ea->ea_data[SMB2_WSL_XATTR_NAME_LEN + 1], in cifs_query_path_info()
724 ea->next_entry_offset = cpu_to_le32(0); in cifs_query_path_info()
725 ea->flags = 0; in cifs_query_path_info()
726 ea->ea_name_length = SMB2_WSL_XATTR_NAME_LEN; in cifs_query_path_info()
727 ea->ea_value_length = cpu_to_le16(SMB2_WSL_XATTR_DEV_SIZE); in cifs_query_path_info()
728 memcpy(&ea->ea_data[0], SMB2_WSL_XATTR_DEV, SMB2_WSL_XATTR_NAME_LEN + 1); in cifs_query_path_info()
729 data->wsl.eas_len += ALIGN(sizeof(*ea) + SMB2_WSL_XATTR_NAME_LEN + 1 + in cifs_query_path_info()
733 /* It is an error if EA $LXDEV has wrong size. */ in cifs_query_path_info()
738 * of EA $LXDEV failed. It is needed only for in cifs_query_path_info()
740 * handle the case when EA is missing. in cifs_query_path_info()