Home
last modified time | relevance | path

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

1234

/Linux-v5.15/fs/ceph/
Dcache.c34 struct ceph_fsid fsid; member
55 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs() local
63 if (memcmp(&ent->fsid, fsid, sizeof(*fsid))) in ceph_fscache_register_fs()
71 fsid); in ceph_fscache_register_fs()
82 memcpy(&ent->fsid, fsid, sizeof(*fsid)); in ceph_fscache_register_fs()
90 &ent->fsid, sizeof(ent->fsid) + uniq_len, in ceph_fscache_register_fs()
100 fsid); in ceph_fscache_register_fs()
Dsuper.c55 u64 fsid; in ceph_statfs() local
103 fsid = le64_to_cpu(*(__le64 *)(&monc->monmap->fsid)) ^ in ceph_statfs()
104 le64_to_cpu(*((__le64 *)&monc->monmap->fsid + 1)); in ceph_statfs()
107 buf->f_fsid = u64_to_fsid(fsid); in ceph_statfs()
1014 ceph_fsid_compare(&opt->fsid, &fsc->client->fsid)) { in ceph_compare_super()
/Linux-v5.15/fs/notify/fanotify/
Dfanotify.c38 static unsigned int fanotify_hash_fsid(__kernel_fsid_t *fsid) in fanotify_hash_fsid() argument
40 return hash_32(fsid->val[0], FANOTIFY_EVENT_HASH_BITS) ^ in fanotify_hash_fsid()
41 hash_32(fsid->val[1], FANOTIFY_EVENT_HASH_BITS); in fanotify_hash_fsid()
71 return fanotify_fsid_equal(&ffe1->fsid, &ffe2->fsid) && in fanotify_fid_event_equal()
108 if (!fanotify_fsid_equal(&fne1->fsid, &fne2->fsid)) in fanotify_name_event_equal()
498 __kernel_fsid_t *fsid, in fanotify_alloc_fid_event() argument
509 ffe->fsid = *fsid; in fanotify_alloc_fid_event()
510 *hash ^= fanotify_hash_fsid(fsid); in fanotify_alloc_fid_event()
518 __kernel_fsid_t *fsid, in fanotify_alloc_name_event() argument
541 fne->fsid = *fsid; in fanotify_alloc_name_event()
[all …]
Dfanotify_user.c319 static int copy_fid_info_to_user(__kernel_fsid_t *fsid, struct fanotify_fh *fh, in copy_fid_info_to_user() argument
360 info.fsid = *fsid; in copy_fid_info_to_user()
1016 __kernel_fsid_t *fsid) in fanotify_add_new_mark() argument
1038 ret = fsnotify_add_mark_locked(mark, connp, type, 0, fsid); in fanotify_add_new_mark()
1056 __kernel_fsid_t *fsid) in fanotify_add_mark() argument
1064 fsn_mark = fanotify_add_new_mark(group, connp, type, fsid); in fanotify_add_mark()
1081 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_vfsmount_mark() argument
1084 FSNOTIFY_OBJ_TYPE_VFSMOUNT, mask, flags, fsid); in fanotify_add_vfsmount_mark()
1089 unsigned int flags, __kernel_fsid_t *fsid) in fanotify_add_sb_mark() argument
1092 FSNOTIFY_OBJ_TYPE_SB, mask, flags, fsid); in fanotify_add_sb_mark()
[all …]
Dfanotify.h175 __kernel_fsid_t fsid; member
189 __kernel_fsid_t fsid; member
202 return &FANOTIFY_FE(event)->fsid; in fanotify_event_fsid()
204 return &FANOTIFY_NE(event)->fsid; in fanotify_event_fsid()
/Linux-v5.15/fs/notify/
Dmark.c500 __kernel_fsid_t *fsid) in fsnotify_attach_connector_to_object() argument
513 if (fsid) { in fsnotify_attach_connector_to_object()
514 conn->fsid = *fsid; in fsnotify_attach_connector_to_object()
517 conn->fsid.val[0] = conn->fsid.val[1] = 0; in fsnotify_attach_connector_to_object()
576 int allow_dups, __kernel_fsid_t *fsid) in fsnotify_add_mark_list() argument
587 if (fsid && WARN_ON_ONCE(!fsid->val[0] && !fsid->val[1])) in fsnotify_add_mark_list()
595 err = fsnotify_attach_connector_to_object(connp, type, fsid); in fsnotify_add_mark_list()
599 } else if (fsid && !(conn->flags & FSNOTIFY_CONN_FLAG_HAS_FSID)) { in fsnotify_add_mark_list()
600 conn->fsid = *fsid; in fsnotify_add_mark_list()
604 } else if (fsid && (conn->flags & FSNOTIFY_CONN_FLAG_HAS_FSID) && in fsnotify_add_mark_list()
[all …]
/Linux-v5.15/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.15/fs/nfs/
Dnfs4getroot.c37 memcpy(&server->fsid, &fsinfo.fattr->fsid, sizeof(server->fsid)); in nfs4_get_rootfh()
Dclient.c1034 memcpy(&server->fsid, &fattr->fsid, sizeof(server->fsid)); in nfs_create_server()
1037 (unsigned long long) server->fsid.major, in nfs_create_server()
1038 (unsigned long long) server->fsid.minor); in nfs_create_server()
1081 server->fsid = fattr->fsid; in nfs_clone_server()
1273 char fsid[34]; // 2 * 16 for %llx, 1 for ':', 1 for '\0' in nfs_volume_list_show() local
1289 snprintf(fsid, sizeof(fsid), "%llx:%llx", in nfs_volume_list_show()
1290 (unsigned long long) server->fsid.major, in nfs_volume_list_show()
1291 (unsigned long long) server->fsid.minor); in nfs_volume_list_show()
1299 fsid, in nfs_volume_list_show()
/Linux-v5.15/fs/overlayfs/
Dinode.c95 static void ovl_map_dev_ino(struct dentry *dentry, struct kstat *stat, int fsid) in ovl_map_dev_ino() argument
120 stat->ino |= ((u64)fsid) << (xinoshift + 1); in ovl_map_dev_ino()
149 stat->dev = OVL_FS(dentry->d_sb)->fs[fsid].pseudo_dev; in ovl_map_dev_ino()
162 int fsid = 0; in ovl_getattr() local
188 fsid = ovl_layer_lower(dentry)->fsid; in ovl_getattr()
218 fsid = ovl_layer_lower(dentry)->fsid; in ovl_getattr()
253 ovl_map_dev_ino(dentry, stat, fsid); in ovl_getattr()
735 static void ovl_map_ino(struct inode *inode, unsigned long ino, int fsid) in ovl_map_ino() argument
751 inode->i_ino |= (unsigned long)fsid << (xinoshift + 1); in ovl_map_ino()
774 unsigned long ino, int fsid) in ovl_inode_init() argument
[all …]
Dsuper.c1224 upper_layer->fsid = 0; in ovl_get_upper()
1704 int fsid; in ovl_get_layers() local
1706 err = fsid = ovl_get_fsid(ofs, &stack[i]); in ovl_get_layers()
1746 layers[ofs->numlayer].fsid = fsid; in ovl_get_layers()
1747 layers[ofs->numlayer].fs = &ofs->fs[fsid]; in ovl_get_layers()
1749 ofs->fs[fsid].is_lower = true; in ovl_get_layers()
1929 int fsid = lowerpath->layer->fsid; in ovl_get_root() local
1944 fsid = 0; in ovl_get_root()
1954 ovl_inode_init(d_inode(root), &oip, ino, fsid); in ovl_get_root()
/Linux-v5.15/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()
220 static int parse_fsid(const char *str, struct ceph_fsid *fsid) in parse_fsid() argument
240 fsid->fsid[i] = d & 0xff; in parse_fsid()
247 dout("parse_fsid ret %d got fsid %pU\n", err, fsid); in parse_fsid()
468 err = parse_fsid(param->string, &opt->fsid); in ceph_parse_param()
679 seq_printf(m, "fsid=%pU,", &opt->fsid); in ceph_print_client_options()
846 &client->fsid); in __ceph_open_session()
Dmon_client.c73 struct ceph_fsid fsid; in ceph_monmap_decode() local
90 ceph_decode_copy_safe(p, end, &fsid, sizeof(fsid), e_inval); in ceph_monmap_decode()
115 dout("%s fsid %pU epoch %u num_mon %d\n", __func__, &fsid, epoch, in ceph_monmap_decode()
125 monmap->fsid = fsid; in ceph_monmap_decode()
560 if (ceph_check_fsid(client, &monmap->fsid) < 0) { in ceph_monc_handle_map()
803 h->fsid = monc->monmap->fsid; in ceph_monc_do_statfs()
1000 h->fsid = monc->monmap->fsid; in do_mon_command_vargs()
/Linux-v5.15/Documentation/filesystems/
Dcramfs.rst102 >32 ulelong x fsid.crc 0x%x
103 >36 ulelong x fsid.edition %d
104 >40 ulelong x fsid.blocks %d
105 >44 ulelong x fsid.files %d
112 >544 ulelong x fsid.crc 0x%x
113 >548 ulelong x fsid.edition %d
114 >552 ulelong x fsid.blocks %d
115 >556 ulelong x fsid.files %d
/Linux-v5.15/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.15/fs/nfsd/
Dnfsxdr.c222 u32 fsid; in svcxdr_encode_fattr() local
247 fsid = (u32)fhp->fh_export->ex_fsid; in svcxdr_encode_fattr()
250 fsid = ((u32 *)fhp->fh_export->ex_uuid)[0]; in svcxdr_encode_fattr()
251 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[1]; in svcxdr_encode_fattr()
252 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[2]; in svcxdr_encode_fattr()
253 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[3]; in svcxdr_encode_fattr()
256 fsid = new_encode_dev(stat->dev); in svcxdr_encode_fattr()
259 *p++ = cpu_to_be32(fsid); in svcxdr_encode_fattr()
Dnfsfh.h99 u32 fsid, unsigned char *uuid) in mk_fsid() argument
109 fsidv[0] = fsid; in mk_fsid()
/Linux-v5.15/include/linux/ceph/
Dceph_fs.h183 struct ceph_fsid fsid; member
194 struct ceph_fsid fsid; member
201 struct ceph_fsid fsid; member
209 struct ceph_fsid fsid; member
215 struct ceph_fsid fsid; member
231 struct ceph_fsid fsid; member
Dlibceph.h48 struct ceph_fsid fsid; member
125 struct ceph_fsid fsid; member
297 extern int ceph_check_fsid(struct ceph_client *client, struct ceph_fsid *fsid);
/Linux-v5.15/include/linux/
Dfsnotify_backend.h356 __kernel_fsid_t fsid; /* fsid of filesystem containing object */ member
526 __kernel_fsid_t *fsid);
530 int allow_dups, __kernel_fsid_t *fsid);
534 __kernel_fsid_t *fsid);
Dstatfs.h47 extern int vfs_get_fsid(struct dentry *dentry, __kernel_fsid_t *fsid);
/Linux-v5.15/fs/btrfs/
Dvolumes.c372 static struct btrfs_fs_devices *alloc_fs_devices(const u8 *fsid, in alloc_fs_devices() argument
387 if (fsid) in alloc_fs_devices()
388 memcpy(fs_devs->fsid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
392 else if (fsid) in alloc_fs_devices()
393 memcpy(fs_devs->metadata_uuid, fsid, BTRFS_FSID_SIZE); in alloc_fs_devices()
434 const u8 *fsid, const u8 *metadata_fsid) in find_fsid() argument
438 ASSERT(fsid); in find_fsid()
443 if (memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE) == 0 in find_fsid()
448 if (memcmp(fsid, fs_devices->fsid, BTRFS_FSID_SIZE) == 0) in find_fsid()
469 memcmp(disk_super->metadata_uuid, fs_devices->fsid, in find_fsid_with_metadata_uuid()
[all …]
/Linux-v5.15/include/uapi/linux/
Ddlm_plock.h38 __u32 fsid; member
Dcramfs_fs.h61 struct cramfs_info fsid; /* unique filesystem info */ member

1234