Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 84) sorted by relevance

1234

/fs/btrfs/
A Duuid-tree.c21 key->objectid = get_unaligned_le64(uuid); in btrfs_uuid_to_key()
22 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key()
48 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_lookup()
108 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_add()
169 btrfs_uuid_to_key(uuid, type, &key); in btrfs_uuid_tree_remove()
259 const u8 *uuid, u8 type, u64 subvolid) in btrfs_check_uuid_tree_entry() argument
278 if (memcmp(uuid, subvol_root->root_item.uuid, BTRFS_UUID_SIZE)) in btrfs_check_uuid_tree_entry()
344 u8 uuid[BTRFS_UUID_SIZE]; in btrfs_uuid_tree_iterate() local
348 put_unaligned_le64(key.objectid, uuid); in btrfs_uuid_tree_iterate()
449 if (!btrfs_is_empty_uuid(root_item.uuid) || in btrfs_uuid_scan_kthread()
[all …]
A Duuid-tree.h11 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
13 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
A Dvolumes.c671 if (memcmp(device->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE)) in btrfs_open_one_device()
836 .uuid = disk_super->dev_item.uuid, in device_list_add()
2478 memcpy(args->uuid, disk_super->dev_item.uuid, BTRFS_UUID_SIZE); in btrfs_get_dev_args_from_path()
2495 kfree(args->uuid); in btrfs_put_dev_args_from_path()
2497 args->uuid = NULL; in btrfs_put_dev_args_from_path()
6814 if (args->uuid && memcmp(device->uuid, args->uuid, BTRFS_UUID_SIZE) != 0) in dev_args_match_device()
6930 if (uuid) in btrfs_alloc_device()
6931 memcpy(dev->uuid, uuid, BTRFS_UUID_SIZE); in btrfs_alloc_device()
6954 devid, uuid); in btrfs_report_missing_device()
6957 devid, uuid); in btrfs_report_missing_device()
[all …]
/fs/afs/
A Dvlclient.c46 struct afs_uuid *uuid; in afs_deliver_vl_get_entry_by_name_u() local
62 uuid = (struct afs_uuid *)&entry->fs_server[n]; in afs_deliver_vl_get_entry_by_name_u()
63 uuid->time_low = xdr->time_low; in afs_deliver_vl_get_entry_by_name_u()
64 uuid->time_mid = htons(ntohl(xdr->time_mid)); in afs_deliver_vl_get_entry_by_name_u()
69 uuid->node[j] = (u8)ntohl(xdr->node[j]); in afs_deliver_vl_get_entry_by_name_u()
259 const uuid_t *uuid) in afs_vl_get_addrs_u() argument
291 r->uuid.time_low = u->time_low; in afs_vl_get_addrs_u()
297 r->uuid.node[i] = htonl(u->node[i]); in afs_vl_get_addrs_u()
635 const uuid_t *uuid) in afs_yfsvl_get_endpoints() argument
645 sizeof(__be32) * 2 + sizeof(*uuid), in afs_yfsvl_get_endpoints()
[all …]
A Dcmservice.c420 if (memcmp(r, &call->net->uuid, sizeof(call->net->uuid)) == 0) in SRXAFSCB_ProbeUuid()
498 __be32 uuid[11]; in SRXAFSCB_TellMeAboutYourself() member
513 reply.ia.uuid[0] = call->net->uuid.time_low; in SRXAFSCB_TellMeAboutYourself()
514 reply.ia.uuid[1] = htonl(ntohs(call->net->uuid.time_mid)); in SRXAFSCB_TellMeAboutYourself()
515 reply.ia.uuid[2] = htonl(ntohs(call->net->uuid.time_hi_and_version)); in SRXAFSCB_TellMeAboutYourself()
516 reply.ia.uuid[3] = htonl((s8) call->net->uuid.clock_seq_hi_and_reserved); in SRXAFSCB_TellMeAboutYourself()
517 reply.ia.uuid[4] = htonl((s8) call->net->uuid.clock_seq_low); in SRXAFSCB_TellMeAboutYourself()
519 reply.ia.uuid[loop + 5] = htonl((s8) call->net->uuid.node[loop]); in SRXAFSCB_TellMeAboutYourself()
A Dserver.c43 _enter("%pU", uuid); in afs_find_server_by_uuid()
49 diff = memcmp(uuid, &server->uuid, sizeof(*uuid)); in afs_find_server_by_uuid()
86 diff = memcmp(&(*candidate)->uuid, &server->uuid, sizeof(uuid_t)); in afs_install_server()
128 server->uuid = *uuid; in afs_alloc_server()
163 alist = afs_yfsvl_get_endpoints(&vc, &server->uuid); in afs_vl_lookup_addrs()
165 alist = afs_vl_get_addrs_u(&vc, &server->uuid); in afs_vl_lookup_addrs()
179 const uuid_t *uuid, u32 addr_version) in afs_lookup_server() argument
186 _enter("%p,%pU", cell->net, uuid); in afs_lookup_server()
189 server = afs_find_server_by_uuid(cell, uuid); in afs_lookup_server()
202 candidate = afs_alloc_server(cell, uuid); in afs_lookup_server()
[all …]
A Dserver_list.c94 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list()
95 &server->uuid, in afs_alloc_server_list()
96 sizeof(server->uuid)) >= 0) in afs_alloc_server_list()
210 diff = memcmp(&pn->server->uuid, &po->server->uuid, in afs_reattach_volume_to_servers()
211 sizeof(pn->server->uuid)); in afs_reattach_volume_to_servers()
A Dcm_security.c224 uuidsize = sizeof(server->uuid); in afs_create_yfs_cm_token()
271 memcpy(xdr, &net->uuid, 16); /* appdata.initiatorUuid */ in afs_create_yfs_cm_token()
273 memcpy(xdr, &server->uuid, 16); /* appdata.acceptorUuid */ in afs_create_yfs_cm_token()
307 memcpy(xdr, &server->uuid, uuidsize); in afs_create_yfs_cm_token()
A Dfs_probe.c148 _enter("%pU,%u", &server->uuid, index); in afs_fileserver_probe_result()
227 estate->probe_seq, &server->uuid, index, in afs_fileserver_probe_result()
245 _enter("%pU", &server->uuid); in afs_fs_probe_fileserver()
469 _debug("probe %pU", &server->uuid); in afs_fs_probe_dispatcher()
/fs/nfs_common/
A Dnfslocalio.c69 uuid_gen(&nfs_uuid->uuid); in nfs_uuid_begin()
91 static nfs_uuid_t * nfs_uuid_lookup_locked(const uuid_t *uuid) in nfs_uuid_lookup_locked() argument
96 if (uuid_equal(&nfs_uuid->uuid, uuid)) in nfs_uuid_lookup_locked()
104 void nfs_uuid_is_local(const uuid_t *uuid, struct list_head *list, in nfs_uuid_is_local() argument
111 nfs_uuid = nfs_uuid_lookup_locked(uuid); in nfs_uuid_is_local()
265 struct nfsd_file *nfs_open_local_fh(nfs_uuid_t *uuid, in nfs_open_local_fh() argument
285 net = rcu_dereference(uuid->net); in nfs_open_local_fh()
292 localio = nfs_to->nfsd_open_local_fh(net, uuid->dom, rpc_clnt, cred, in nfs_open_local_fh()
294 if (!IS_ERR(localio) && nfs_uuid_add_file(uuid, nfl) < 0) { in nfs_open_local_fh()
/fs/nfsd/
A Dlocalio.c144 uuid_t uuid; member
153 nfs_uuid_is_local(&argp->uuid, &nn->local_clients, in localio_proc_uuid_is_local()
164 u8 uuid[UUID_SIZE]; in localio_decode_uuidarg() local
166 if (decode_opaque_fixed(xdr, uuid, UUID_SIZE)) in localio_decode_uuidarg()
168 import_uuid(&argp->uuid, uuid); in localio_decode_uuidarg()
A Dnfsfh.h146 u32 fsid, unsigned char *uuid) in mk_fsid() argument
171 up = (u32*)uuid; in mk_fsid()
178 up = (u32*)uuid; in mk_fsid()
185 memcpy(fsidv, uuid, 16); in mk_fsid()
191 memcpy(fsidv+2, uuid, 16); in mk_fsid()
/fs/xfs/
A Dxfs_buf_item_recover.c821 uuid_t *uuid; in xlog_recover_get_buf_lsn() local
845 uuid = &hdr->rt_uuid; in xlog_recover_get_buf_lsn()
861 uuid = &btb->bb_u.s.bb_uuid; in xlog_recover_get_buf_lsn()
871 uuid = &btb->bb_u.l.bb_uuid; in xlog_recover_get_buf_lsn()
876 uuid = &((struct xfs_agf *)blk)->agf_uuid; in xlog_recover_get_buf_lsn()
880 uuid = &((struct xfs_agfl *)blk)->agfl_uuid; in xlog_recover_get_buf_lsn()
884 uuid = &((struct xfs_agi *)blk)->agi_uuid; in xlog_recover_get_buf_lsn()
894 uuid = &((struct xfs_dir3_blk_hdr *)blk)->uuid; in xlog_recover_get_buf_lsn()
917 uuid = &((struct xfs_dsb *)blk)->sb_uuid; in xlog_recover_get_buf_lsn()
924 if (!uuid_equal(&mp->m_sb.sb_meta_uuid, uuid)) in xlog_recover_get_buf_lsn()
[all …]
A Dxfs_mount.c67 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_mount() local
71 super_set_uuid(mp->m_super, uuid->b, sizeof(*uuid)); in xfs_uuid_mount()
76 if (uuid_is_null(uuid)) { in xfs_uuid_mount()
87 if (uuid_equal(uuid, &xfs_uuid_table[i])) in xfs_uuid_mount()
97 xfs_uuid_table[hole] = *uuid; in xfs_uuid_mount()
104 xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); in xfs_uuid_mount()
112 uuid_t *uuid = &mp->m_sb.sb_uuid; in xfs_uuid_unmount() local
122 if (!uuid_equal(uuid, &xfs_uuid_table[i])) in xfs_uuid_unmount()
/fs/bcachefs/
A Dsb-members.c233 pr_uuid(out, m.uuid.b); in member_to_text()
553 nr_deleted += uuid_equal(&m.uuid, &BCH_SB_MEMBER_DELETED_UUID); in bch2_sb_member_alloc()
555 if (!bch2_is_zero(&m.uuid, sizeof(m.uuid))) in bch2_sb_member_alloc()
597 if (uuid_equal(&m->uuid, &BCH_SB_MEMBER_DELETED_UUID)) { in bch2_sb_members_clean_deleted()
598 memset(&m->uuid, 0, sizeof(m->uuid)); in bch2_sb_members_clean_deleted()
A Dsuper.c229 static struct bch_fs *__bch2_uuid_to_fs(__uuid_t uuid) in __bch2_uuid_to_fs() argument
236 if (!memcmp(&c->disk_sb.sb->uuid, &uuid, sizeof(uuid))) in __bch2_uuid_to_fs()
242 struct bch_fs *bch2_uuid_to_fs(__uuid_t uuid) in bch2_uuid_to_fs() argument
247 c = __bch2_uuid_to_fs(uuid); in bch2_uuid_to_fs()
750 __bch2_uuid_to_fs(c->sb.uuid)) { in bch2_fs_online()
1268 if (!uuid_equal(&fs->sb->uuid, &sb->sb->uuid)) in bch2_dev_in_fs()
1504 ca->uuid = member->uuid; in __bch2_dev_alloc()
1878 m->uuid = BCH_SB_MEMBER_DELETED_UUID; in bch2_dev_remove()
1880 memset(&m->uuid, 0, sizeof(m->uuid)); in bch2_dev_remove()
1923 if (__bch2_uuid_to_fs(c->sb.uuid)) in bch2_dev_add()
[all …]
A Dsb-members.h313 return !bch2_is_zero(&m->uuid, sizeof(m->uuid)) && in bch2_member_alive()
314 !uuid_equal(&m->uuid, &BCH_SB_MEMBER_DELETED_UUID); in bch2_member_alive()
A Dutil.h121 static inline void uuid_unparse_lower(u8 *uuid, char *out) in uuid_unparse_lower() argument
123 sprintf(out, "%pUb", uuid); in uuid_unparse_lower()
129 static inline void pr_uuid(struct printbuf *out, u8 *uuid) in pr_uuid() argument
133 uuid_unparse_lower(uuid, uuid_str); in pr_uuid()
/fs/jfs/
A Djfs_logmgr.h65 uuid_t uuid; /* 16: 128-bit journal uuid */ member
68 uuid_t uuid; member
400 uuid_t uuid; /* 16: 128-bit uuid of log device */ member
A Djfs_logmgr.c1074 if (!uuid_equal(&log->uuid, &sbi->loguuid)) { in lmLogOpen()
1111 uuid_copy(&log->uuid, &sbi->loguuid); in lmLogOpen()
1317 if (!uuid_equal(&logsuper->uuid, &log->uuid)) { in lmLogInit()
1714 uuid_t *uuid = &sbi->uuid; in lmLogFileSystem() local
1725 if (uuid_is_null(&logsuper->active[i].uuid)) { in lmLogFileSystem()
1726 uuid_copy(&logsuper->active[i].uuid, uuid); in lmLogFileSystem()
1737 if (uuid_equal(&logsuper->active[i].uuid, uuid)) { in lmLogFileSystem()
1738 uuid_copy(&logsuper->active[i].uuid, in lmLogFileSystem()
/fs/kernfs/
A Dmount.c398 uuid_t uuid; in kernfs_get_tree() local
399 uuid_gen(&uuid); in kernfs_get_tree()
400 super_set_uuid(sb, uuid.b, sizeof(uuid)); in kernfs_get_tree()
/fs/overlayfs/
A Dutil.c795 uuid_t uuid; in ovl_init_uuid_xattr() local
799 res = ovl_path_getxattr(ofs, upperpath, OVL_XATTR_UUID, uuid.b, in ovl_init_uuid_xattr()
813 if (ofs->config.uuid == OVL_UUID_AUTO) { in ovl_init_uuid_xattr()
818 ofs->config.uuid = OVL_UUID_NULL; in ovl_init_uuid_xattr()
822 ofs->config.uuid = OVL_UUID_ON; in ovl_init_uuid_xattr()
830 uuid_gen(&uuid); in ovl_init_uuid_xattr()
834 res = ovl_setxattr(ofs, upperpath->dentry, OVL_XATTR_UUID, uuid.b, in ovl_init_uuid_xattr()
840 super_set_uuid(sb, uuid.b, sizeof(uuid)); in ovl_init_uuid_xattr()
844 ofs->config.uuid = OVL_UUID_NULL; in ovl_init_uuid_xattr()
A Dparams.c81 return ovl_parameter_uuid[config->uuid].name; in ovl_uuid_mode()
643 config->uuid = result.uint_32; in ovl_parse_param()
790 ofs->config.uuid = ovl_uuid_def(); in ovl_init_fs_context()
869 if (!config->upperdir && config->uuid == OVL_UUID_ON) { in ovl_fs_params_verify()
871 config->uuid = OVL_UUID_NULL; in ovl_fs_params_verify()
1055 if (ofs->config.uuid != ovl_uuid_def()) in ovl_show_options()
/fs/nfs/
A Dlocalio.c76 const u8 *uuid = data; in localio_xdr_enc_uuidargs() local
78 encode_opaque_fixed(xdr, uuid, UUID_SIZE); in localio_xdr_enc_uuidargs()
143 u8 uuid[UUID_SIZE]; in nfs_server_uuid_is_local() local
145 .rpc_argp = &uuid, in nfs_server_uuid_is_local()
154 export_uuid(uuid, &clp->cl_uuid.uuid); in nfs_server_uuid_is_local()
/fs/ocfs2/
A Dstack_user.c149 char uuid[OCFS2_TEXT_UUID_LEN]; member
275 static void ocfs2_control_send_down(const char *uuid, in ocfs2_control_send_down() argument
282 c = ocfs2_connection_find(uuid); in ocfs2_control_send_down()
460 ocfs2_control_send_down(msg->uuid, nodenum); in ocfs2_control_do_down_msg()
473 WARN_ON(offsetof(struct ocfs2_control_message_down, uuid) != in ocfs2_control_message()

Completed in 76 milliseconds

1234