Searched refs:fsinf (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/fs/cifs/
H A Dioctl.c150 struct smb_mnt_fs_info *fsinf; smb_mnt_get_fsinfo() local
152 fsinf = kzalloc(sizeof(struct smb_mnt_fs_info), GFP_KERNEL); smb_mnt_get_fsinfo()
153 if (fsinf == NULL) smb_mnt_get_fsinfo()
156 fsinf->version = 1; smb_mnt_get_fsinfo()
157 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; smb_mnt_get_fsinfo()
158 fsinf->device_characteristics = smb_mnt_get_fsinfo()
160 fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); smb_mnt_get_fsinfo()
161 fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes); smb_mnt_get_fsinfo()
162 fsinf->max_path_component = smb_mnt_get_fsinfo()
165 fsinf->vol_serial_number = tcon->vol_serial_number; smb_mnt_get_fsinfo()
166 fsinf->vol_create_time = le64_to_cpu(tcon->vol_create_time); smb_mnt_get_fsinfo()
167 fsinf->share_flags = tcon->share_flags; smb_mnt_get_fsinfo()
168 fsinf->share_caps = le32_to_cpu(tcon->capabilities); smb_mnt_get_fsinfo()
169 fsinf->sector_flags = tcon->ss_flags; smb_mnt_get_fsinfo()
170 fsinf->optimal_sector_size = tcon->perf_sector_size; smb_mnt_get_fsinfo()
171 fsinf->max_bytes_chunk = tcon->max_bytes_chunk; smb_mnt_get_fsinfo()
172 fsinf->maximal_access = tcon->maximal_access; smb_mnt_get_fsinfo()
174 fsinf->cifs_posix_caps = le64_to_cpu(tcon->fsUnixInfo.Capability); smb_mnt_get_fsinfo()
176 if (copy_to_user(arg, fsinf, sizeof(struct smb_mnt_fs_info))) smb_mnt_get_fsinfo()
179 kfree(fsinf); smb_mnt_get_fsinfo()

Completed in 49 milliseconds