Lines Matching refs:fsinf
138 struct smb_mnt_fs_info *fsinf; in smb_mnt_get_fsinfo() local
140 fsinf = kzalloc(sizeof(struct smb_mnt_fs_info), GFP_KERNEL); in smb_mnt_get_fsinfo()
141 if (fsinf == NULL) in smb_mnt_get_fsinfo()
144 fsinf->version = 1; in smb_mnt_get_fsinfo()
145 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
146 fsinf->tcon_flags = tcon->Flags; in smb_mnt_get_fsinfo()
147 fsinf->device_characteristics = in smb_mnt_get_fsinfo()
149 fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in smb_mnt_get_fsinfo()
150 fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes); in smb_mnt_get_fsinfo()
151 fsinf->max_path_component = in smb_mnt_get_fsinfo()
153 fsinf->vol_serial_number = tcon->vol_serial_number; in smb_mnt_get_fsinfo()
154 fsinf->vol_create_time = le64_to_cpu(tcon->vol_create_time); in smb_mnt_get_fsinfo()
155 fsinf->share_flags = tcon->share_flags; in smb_mnt_get_fsinfo()
156 fsinf->share_caps = le32_to_cpu(tcon->capabilities); in smb_mnt_get_fsinfo()
157 fsinf->sector_flags = tcon->ss_flags; in smb_mnt_get_fsinfo()
158 fsinf->optimal_sector_size = tcon->perf_sector_size; in smb_mnt_get_fsinfo()
159 fsinf->max_bytes_chunk = tcon->max_bytes_chunk; in smb_mnt_get_fsinfo()
160 fsinf->maximal_access = tcon->maximal_access; in smb_mnt_get_fsinfo()
161 fsinf->cifs_posix_caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in smb_mnt_get_fsinfo()
163 if (copy_to_user(arg, fsinf, sizeof(struct smb_mnt_fs_info))) in smb_mnt_get_fsinfo()
166 kfree(fsinf); in smb_mnt_get_fsinfo()