cephfs kernel client针对打开文件的操作
针对打开文件的操作主要体现在struct file_operations数据结构中。在cephfs kernel client中具体实现如下: const struct file_operations ceph_file_fops = { .open = ceph_open, .release = ceph_release, .llseek = ceph_llseek, .read_iter = ceph_read_iter, .write_iter = ceph_write_iter, .mmap = ceph_mmap, .fsync = ceph_fsync, .lock = ceph_lock, .flock = ceph_flock, .splice_read = generic_file_splice_read, .splice_write = iter_file_splice_write, .unlocked_ioctl = ceph_ioctl, .compat_ioctl = ceph_ioctl, .fallocate = ceph_fallocate, }; ceph_open(struct inode *inode, struct file *file) 该函数在打开文件时被调用 |__调用prepare_open_request()函数来创建ceph