Home
last modified time | relevance | path

Searched refs:fsid (Results 1 – 25 of 83) sorted by relevance

1234

/Linux-v5.4/fs/notify/
Dmark.c474 __kernel_fsid_t *fsid) in fsnotify_attach_connector_to_object() argument
487 if (fsid) { in fsnotify_attach_connector_to_object()
488 conn->fsid = *fsid; in fsnotify_attach_connector_to_object()
491 conn->fsid.val[0] = conn->fsid.val[1] = 0; in fsnotify_attach_connector_to_object()
545 int allow_dups, __kernel_fsid_t *fsid) in fsnotify_add_mark_list() argument
556 if (fsid && WARN_ON_ONCE(!fsid->val[0] && !fsid->val[1])) in fsnotify_add_mark_list()
564 err = fsnotify_attach_connector_to_object(connp, type, fsid); in fsnotify_add_mark_list()
568 } else if (fsid && !(conn->flags & FSNOTIFY_CONN_FLAG_HAS_FSID)) { in fsnotify_add_mark_list()
569 conn->fsid = *fsid; in fsnotify_add_mark_list()
573 } else if (fsid && (conn->flags & FSNOTIFY_CONN_FLAG_HAS_FSID) && in fsnotify_add_mark_list()
[all …]
/Linux-v5.4/fs/notify/fanotify/
Dfanotify.c215 __kernel_fsid_t *fsid) in fanotify_encode_fid() argument
243 fid->fsid = *fsid; in fanotify_encode_fid()
251 fsid->val[0], fsid->val[1], type, bytes, err); in fanotify_encode_fid()
282 __kernel_fsid_t *fsid) in fanotify_alloc_event() argument
326 event->fh_type = fanotify_encode_fid(event, id, gfp, fsid); in fanotify_alloc_event()
349 __kernel_fsid_t fsid = {}; in fanotify_get_fsid() local
365 fsid = conn->fsid; in fanotify_get_fsid()
366 if (WARN_ON_ONCE(!fsid.val[0] && !fsid.val[1])) in fanotify_get_fsid()
368 return fsid; in fanotify_get_fsid()
371 return fsid; in fanotify_get_fsid()
[all …]
Dfanotify.h33 __kernel_fsid_t fsid; member
50 return fid1->fsid.val[0] == fid2->fsid.val[0] && in fanotify_fid_equal()
51 fid1->fsid.val[1] == fid2->fsid.val[1] && in fanotify_fid_equal()
145 __kernel_fsid_t *fsid);
Dfanotify_user.c224 info.fsid = event->fid.fsid; in copy_fid_to_user()
680 __kernel_fsid_t *fsid) in fanotify_add_new_mark() argument
693 ret = fsnotify_add_mark_locked(mark, connp, type, 0, fsid); in fanotify_add_new_mark()
706 __kernel_fsid_t *fsid) in fanotify_add_mark() argument
714 fsn_mark = fanotify_add_new_mark(group, connp, type, fsid); in fanotify_add_mark()
731 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_vfsmount_mark() argument
734 FSNOTIFY_OBJ_TYPE_VFSMOUNT, mask, flags, fsid); in fanotify_add_vfsmount_mark()
739 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_sb_mark() argument
742 FSNOTIFY_OBJ_TYPE_SB, mask, flags, fsid); in fanotify_add_sb_mark()
747 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_inode_mark() argument
[all …]
/Linux-v5.4/fs/ceph/
Dcache.c33 struct ceph_fsid fsid; member
54 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs() local
62 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs()
69 pr_err("fscache cookie already registered for fsid %pU\n", fsid); in ceph_fscache_register_fs()
81 memcpy(&ent->fsid, fsid, sizeof(*fsid)); in ceph_fscache_register_fs()
89 &ent->fsid, sizeof(ent->fsid) + uniq_len, in ceph_fscache_register_fs()
99 fsid); in ceph_fscache_register_fs()
Dsuper.c51 u64 fsid; in ceph_statfs() local
99 fsid = le64_to_cpu(*(__le64 *)(&monc->monmap->fsid)) ^ in ceph_statfs()
100 le64_to_cpu(*((__le64 *)&monc->monmap->fsid + 1)); in ceph_statfs()
103 buf->f_fsid.val[0] = fsid & 0xffffffff; in ceph_statfs()
104 buf->f_fsid.val[1] = fsid >> 32; in ceph_statfs()
1042 ceph_fsid_compare(&opt->fsid, &other->client->fsid)) { in ceph_compare_super()
/Linux-v5.4/fs/orangefs/
Dorangefs-utils.c16 __s32 fsid = ORANGEFS_FS_ID_NULL; in fsid_of_op() local
21 fsid = op->upcall.req.io.refn.fs_id; in fsid_of_op()
24 fsid = op->upcall.req.lookup.parent_refn.fs_id; in fsid_of_op()
27 fsid = op->upcall.req.create.parent_refn.fs_id; in fsid_of_op()
30 fsid = op->upcall.req.getattr.refn.fs_id; in fsid_of_op()
33 fsid = op->upcall.req.remove.parent_refn.fs_id; in fsid_of_op()
36 fsid = op->upcall.req.mkdir.parent_refn.fs_id; in fsid_of_op()
39 fsid = op->upcall.req.readdir.refn.fs_id; in fsid_of_op()
42 fsid = op->upcall.req.setattr.refn.fs_id; in fsid_of_op()
45 fsid = op->upcall.req.sym.parent_refn.fs_id; in fsid_of_op()
[all …]
Ddevorangefs-req.c105 static int fs_mount_pending(__s32 fsid) in fs_mount_pending() argument
112 if (orangefs_sb->fs_id == fsid) { in fs_mount_pending()
193 __s32 fsid; in orangefs_devreq_read() local
201 fsid = fsid_of_op(op); in orangefs_devreq_read()
202 if (fsid != ORANGEFS_FS_ID_NULL) { in orangefs_devreq_read()
205 ret = fs_mount_pending(fsid); in orangefs_devreq_read()
235 fsid); in orangefs_devreq_read()
/Linux-v5.4/net/ceph/
Dceph_common.c105 int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid) in ceph_check_fsid() argument
108 if (ceph_fsid_compare(&client->fsid, fsid)) { in ceph_check_fsid()
110 &client->fsid, fsid); in ceph_check_fsid()
114 memcpy(&client->fsid, fsid, sizeof(*fsid)); in ceph_check_fsid()
217 static int parse_fsid(const char *str, struct ceph_fsid *fsid) in parse_fsid() argument
237 fsid->fsid[i] = d & 0xff; in parse_fsid()
244 dout("parse_fsid ret %d got fsid %pU\n", err, fsid); in parse_fsid()
441 err = parse_fsid(argstr[0].from, &opt->fsid); in ceph_parse_options()
591 seq_printf(m, "fsid=%pU,", &opt->fsid); in ceph_print_client_options()
760 &client->fsid); in __ceph_open_session()
Dmon_client.c46 struct ceph_fsid fsid; in ceph_monmap_decode() local
56 ceph_decode_need(&p, end, sizeof(fsid) + 2*sizeof(u32), bad); in ceph_monmap_decode()
57 ceph_decode_copy(&p, &fsid, sizeof(fsid)); in ceph_monmap_decode()
67 m->fsid = fsid; in ceph_monmap_decode()
487 if (ceph_check_fsid(monc->client, &monmap->fsid) < 0) { in ceph_monc_handle_map()
730 h->fsid = monc->monmap->fsid; in ceph_monc_do_statfs()
926 h->fsid = monc->monmap->fsid; in ceph_monc_blacklist_add()
/Linux-v5.4/fs/nfs/
Dnfs4getroot.c37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh()
Dclient.c988 memcpy(&server->fsid, &fattr->fsid, sizeof(server->fsid)); in nfs_create_server()
991 (unsigned long long) server->fsid.major, in nfs_create_server()
992 (unsigned long long) server->fsid.minor); in nfs_create_server()
1035 server->fsid = fattr->fsid; in nfs_clone_server()
1227 char fsid[34]; // 2 * 16 for %llx, 1 for ':', 1 for '\0' in nfs_volume_list_show() local
1243 snprintf(fsid, sizeof(fsid), "%llx:%llx", in nfs_volume_list_show()
1244 (unsigned long long) server->fsid.major, in nfs_volume_list_show()
1245 (unsigned long long) server->fsid.minor); in nfs_volume_list_show()
1253 fsid, in nfs_volume_list_show()
/Linux-v5.4/Documentation/filesystems/
Dcramfs.txt98 >32 ulelong x fsid.crc 0x%x
99 >36 ulelong x fsid.edition %d
100 >40 ulelong x fsid.blocks %d
101 >44 ulelong x fsid.files %d
108 >544 ulelong x fsid.crc 0x%x
109 >548 ulelong x fsid.edition %d
110 >552 ulelong x fsid.blocks %d
111 >556 ulelong x fsid.files %d
/Linux-v5.4/fs/dlm/
Dplock.c88 op->info.fsid = ls->ls_global_id; in do_unlock_close()
124 op->info.fsid = ls->ls_global_id; in dlm_posix_lock()
274 op->info.fsid = ls->ls_global_id; in dlm_posix_unlock()
335 op->info.fsid = ls->ls_global_id; in dlm_posix_get()
436 if (op->info.fsid == info.fsid && in dev_write()
458 log_print("dev_write no op %x %llx", info.fsid, in dev_write()
/Linux-v5.4/include/linux/
Dfsnotify_backend.h298 __kernel_fsid_t fsid; /* fsid of filesystem containing object */ member
444 __kernel_fsid_t *fsid);
448 int allow_dups, __kernel_fsid_t *fsid);
452 __kernel_fsid_t *fsid);
Dstatfs.h45 extern int vfs_get_fsid(struct dentry *dentry, __kernel_fsid_t *fsid);
/Linux-v5.4/include/linux/ceph/
Dceph_fs.h171 struct ceph_fsid fsid; member
182 struct ceph_fsid fsid; member
189 struct ceph_fsid fsid; member
197 struct ceph_fsid fsid; member
203 struct ceph_fsid fsid; member
219 struct ceph_fsid fsid; member
Dlibceph.h49 struct ceph_fsid fsid; member
120 struct ceph_fsid fsid; member
280 extern int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid);
/Linux-v5.4/fs/overlayfs/
Dinode.c107 stat->ino |= ((u64)lower_layer->fsid) << shift; in ovl_map_dev_ino()
127 } else if (lower_layer && lower_layer->fsid) { in ovl_map_dev_ino()
549 unsigned long ino, int fsid) in ovl_fill_inode() argument
564 if (xinobits && fsid && !(ino >> (64 - xinobits))) in ovl_fill_inode()
565 inode->i_ino |= (unsigned long)fsid << (64 - xinobits); in ovl_fill_inode()
878 int fsid = bylower ? oip->lowerpath->layer->fsid : 0; in ovl_get_inode() local
929 ovl_fill_inode(inode, realinode->i_mode, realinode->i_rdev, ino, fsid); in ovl_get_inode()
Dreaddir.c440 static u64 ovl_remap_lower_ino(u64 ino, int xinobits, int fsid, in ovl_remap_lower_ino() argument
449 return ino | ((u64)fsid) << (64 - xinobits); in ovl_remap_lower_ino()
511 ovl_layer_lower(this)->fsid, in ovl_cache_update_ino()
640 int fsid; member
661 ino = ovl_remap_lower_ino(ino, rdt->xinobits, rdt->fsid, in ovl_fill_real()
696 rdt.fsid = lower_layer->fsid; in ovl_iterate_real()
/Linux-v5.4/include/uapi/linux/
Ddlm_plock.h38 __u32 fsid; member
Dcramfs_fs.h61 struct cramfs_info fsid; /* unique filesystem info */ member
/Linux-v5.4/fs/btrfs/
Dvolumes.c314 static struct btrfs_fs_devices *alloc_fs_devices(const u8 *fsid, in alloc_fs_devices() argument
328 if (fsid) in alloc_fs_devices()
329 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
333 else if (fsid) in alloc_fs_devices()
334 memcpy(fs_devs->metadata_uuid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
413 const u8 *fsid, const u8 *metadata_fsid) in find_fsid() argument
417 ASSERT(fsid); in find_fsid()
428 memcmp(metadata_fsid, fs_devices->fsid, in find_fsid()
430 memcmp(fs_devices->fsid, fs_devices->metadata_uuid, in find_fsid()
444 fs_devices->fsid, BTRFS_FSID_SIZE) != 0 && in find_fsid()
[all …]
Dsysfs.h26 const u8 *fsid);
/Linux-v5.4/fs/nfsd/
Dnfsfh.h90 u32 fsid, unsigned char *uuid) in mk_fsid() argument
100 fsidv[0] = fsid; in mk_fsid()

1234