Lines Matching full:file
16 * get and set the file layout
18 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument
20 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout()
24 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_get_layout()
65 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument
67 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout()
71 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout()
79 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_set_layout()
137 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument
139 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout_policy()
178 * number, network address) for a given file offset.
180 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) in ceph_ioctl_get_dataloc() argument
183 struct inode *inode = file_inode(file); in ceph_ioctl_get_dataloc()
242 static long ceph_ioctl_lazyio(struct file *file) in ceph_ioctl_lazyio() argument
244 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_lazyio()
245 struct inode *inode = file_inode(file); in ceph_ioctl_lazyio()
256 doutc(cl, "file %p %p %llx.%llx marked lazy\n", file, inode, in ceph_ioctl_lazyio()
261 doutc(cl, "file %p %p %llx.%llx already lazy\n", file, inode, in ceph_ioctl_lazyio()
267 static long ceph_ioctl_syncio(struct file *file) in ceph_ioctl_syncio() argument
269 struct ceph_file_info *fi = file->private_data; in ceph_ioctl_syncio()
275 static int vet_mds_for_fscrypt(struct file *file) in vet_mds_for_fscrypt() argument
278 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(file_inode(file)->i_sb); in vet_mds_for_fscrypt()
294 static long ceph_set_encryption_policy(struct file *file, unsigned long arg) in ceph_set_encryption_policy() argument
297 struct inode *inode = file_inode(file); in ceph_set_encryption_policy()
304 ret = vet_mds_for_fscrypt(file); in ceph_set_encryption_policy()
312 ret = ceph_get_caps(file, CEPH_CAP_FILE_SHARED, 0, -1, &got); in ceph_set_encryption_policy()
316 ret = fscrypt_ioctl_set_policy(file, (const void __user *)arg); in ceph_set_encryption_policy()
359 long ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ceph_ioctl() argument
361 struct inode *inode = file_inode(file); in ceph_ioctl()
365 doutc(fsc->client, "file %p %p %llx.%llx cmd %s arg %lu\n", file, in ceph_ioctl()
369 return ceph_ioctl_get_layout(file, (void __user *)arg); in ceph_ioctl()
372 return ceph_ioctl_set_layout(file, (void __user *)arg); in ceph_ioctl()
375 return ceph_ioctl_set_layout_policy(file, (void __user *)arg); in ceph_ioctl()
378 return ceph_ioctl_get_dataloc(file, (void __user *)arg); in ceph_ioctl()
381 return ceph_ioctl_lazyio(file); in ceph_ioctl()
384 return ceph_ioctl_syncio(file); in ceph_ioctl()
387 return ceph_set_encryption_policy(file, arg); in ceph_ioctl()
390 ret = vet_mds_for_fscrypt(file); in ceph_ioctl()
393 return fscrypt_ioctl_get_policy(file, (void __user *)arg); in ceph_ioctl()
396 ret = vet_mds_for_fscrypt(file); in ceph_ioctl()
399 return fscrypt_ioctl_get_policy_ex(file, (void __user *)arg); in ceph_ioctl()
402 ret = vet_mds_for_fscrypt(file); in ceph_ioctl()
405 return fscrypt_ioctl_add_key(file, (void __user *)arg); in ceph_ioctl()
408 return fscrypt_ioctl_remove_key(file, (void __user *)arg); in ceph_ioctl()
411 return fscrypt_ioctl_remove_key_all_users(file, in ceph_ioctl()
415 return fscrypt_ioctl_get_key_status(file, (void __user *)arg); in ceph_ioctl()
418 ret = vet_mds_for_fscrypt(file); in ceph_ioctl()
421 return fscrypt_ioctl_get_nonce(file, (void __user *)arg); in ceph_ioctl()