Lines Matching refs:fsinf
124 struct smb_mnt_fs_info *fsinf; in smb_mnt_get_fsinfo() local
126 fsinf = kzalloc(sizeof(struct smb_mnt_fs_info), GFP_KERNEL); in smb_mnt_get_fsinfo()
127 if (fsinf == NULL) in smb_mnt_get_fsinfo()
130 fsinf->version = 1; in smb_mnt_get_fsinfo()
131 fsinf->protocol_id = tcon->ses->server->vals->protocol_id; in smb_mnt_get_fsinfo()
132 fsinf->device_characteristics = in smb_mnt_get_fsinfo()
134 fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); in smb_mnt_get_fsinfo()
135 fsinf->fs_attributes = le32_to_cpu(tcon->fsAttrInfo.Attributes); in smb_mnt_get_fsinfo()
136 fsinf->max_path_component = in smb_mnt_get_fsinfo()
138 fsinf->vol_serial_number = tcon->vol_serial_number; in smb_mnt_get_fsinfo()
139 fsinf->vol_create_time = le64_to_cpu(tcon->vol_create_time); in smb_mnt_get_fsinfo()
140 fsinf->share_flags = tcon->share_flags; in smb_mnt_get_fsinfo()
141 fsinf->share_caps = le32_to_cpu(tcon->capabilities); in smb_mnt_get_fsinfo()
142 fsinf->sector_flags = tcon->ss_flags; in smb_mnt_get_fsinfo()
143 fsinf->optimal_sector_size = tcon->perf_sector_size; in smb_mnt_get_fsinfo()
144 fsinf->max_bytes_chunk = tcon->max_bytes_chunk; in smb_mnt_get_fsinfo()
145 fsinf->maximal_access = tcon->maximal_access; in smb_mnt_get_fsinfo()
146 fsinf->cifs_posix_caps = le64_to_cpu(tcon->fsUnixInfo.Capability); in smb_mnt_get_fsinfo()
148 if (copy_to_user(arg, fsinf, sizeof(struct smb_mnt_fs_info))) in smb_mnt_get_fsinfo()
151 kfree(fsinf); in smb_mnt_get_fsinfo()