Searched refs:vldb (Results 1 - 8 of 8) sorted by relevance

/linux-4.1.27/fs/afs/
H A Dvlocation.c39 struct afs_cache_vlocation *vldb) afs_vlocation_access_vl_by_name()
45 _enter("%s,%s", cell->name, vl->vldb.name); afs_vlocation_access_vl_by_name()
55 ret = afs_vl_get_entry_by_name(&addr, key, vl->vldb.name, vldb, afs_vlocation_access_vl_by_name()
97 struct afs_cache_vlocation *vldb) afs_vlocation_access_vl_by_id()
113 ret = afs_vl_get_entry_by_id(&addr, key, volid, voltype, vldb, afs_vlocation_access_vl_by_id()
156 vl->vldb.name); afs_vlocation_access_vl_by_id()
185 memcpy(vl->vldb.name, name, namesz); afs_vlocation_alloc()
197 struct afs_cache_vlocation *vldb) afs_vlocation_update_record()
205 vl->vldb.name, afs_vlocation_update_record()
206 vl->vldb.vidmask, afs_vlocation_update_record()
207 ntohl(vl->vldb.servers[0].s_addr), afs_vlocation_update_record()
208 vl->vldb.srvtmask[0], afs_vlocation_update_record()
209 ntohl(vl->vldb.servers[1].s_addr), afs_vlocation_update_record()
210 vl->vldb.srvtmask[1], afs_vlocation_update_record()
211 ntohl(vl->vldb.servers[2].s_addr), afs_vlocation_update_record()
212 vl->vldb.srvtmask[2]); afs_vlocation_update_record()
215 vl->vldb.vid[0], afs_vlocation_update_record()
216 vl->vldb.vid[1], afs_vlocation_update_record()
217 vl->vldb.vid[2]); afs_vlocation_update_record()
219 if (vl->vldb.vidmask & AFS_VOL_VTM_RW) { afs_vlocation_update_record()
220 vid = vl->vldb.vid[0]; afs_vlocation_update_record()
222 } else if (vl->vldb.vidmask & AFS_VOL_VTM_RO) { afs_vlocation_update_record()
223 vid = vl->vldb.vid[1]; afs_vlocation_update_record()
225 } else if (vl->vldb.vidmask & AFS_VOL_VTM_BAK) { afs_vlocation_update_record()
226 vid = vl->vldb.vid[2]; afs_vlocation_update_record()
237 ret = afs_vlocation_access_vl_by_id(vl, key, vid, voltype, vldb); afs_vlocation_update_record()
243 vl->vldb.name, vid, vl->cell->name, ret); afs_vlocation_update_record()
256 vl->vldb.name, vid, vl->cell->name); afs_vlocation_update_record()
268 struct afs_cache_vlocation *vldb) afs_vlocation_apply_update()
271 vldb->name, vldb->vidmask, afs_vlocation_apply_update()
272 ntohl(vldb->servers[0].s_addr), vldb->srvtmask[0], afs_vlocation_apply_update()
273 ntohl(vldb->servers[1].s_addr), vldb->srvtmask[1], afs_vlocation_apply_update()
274 ntohl(vldb->servers[2].s_addr), vldb->srvtmask[2]); afs_vlocation_apply_update()
277 vldb->vid[0], vldb->vid[1], vldb->vid[2]); afs_vlocation_apply_update()
279 if (strcmp(vldb->name, vl->vldb.name) != 0) afs_vlocation_apply_update()
282 vl->vldb.name, vldb->name); afs_vlocation_apply_update()
284 vl->vldb = *vldb; afs_vlocation_apply_update()
298 struct afs_cache_vlocation vldb; afs_vlocation_fill_in_record() local
305 memset(&vldb, 0, sizeof(vldb)); afs_vlocation_fill_in_record()
318 ret = afs_vlocation_update_record(vl, key, &vldb); afs_vlocation_fill_in_record()
322 ret = afs_vlocation_access_vl_by_name(vl, key, &vldb); afs_vlocation_fill_in_record()
325 vl->vldb.name, vl->cell->name); afs_vlocation_fill_in_record()
330 afs_vlocation_apply_update(vl, &vldb); afs_vlocation_fill_in_record()
385 if (namesz >= sizeof(vl->vldb.name)) { afs_vlocation_lookup()
394 if (vl->vldb.name[namesz] != '\0') afs_vlocation_lookup()
396 if (memcmp(vl->vldb.name, name, namesz) == 0) afs_vlocation_lookup()
496 _enter("%s", vl->vldb.name); afs_put_vlocation()
623 struct afs_cache_vlocation vldb; afs_vlocation_updater() local
663 _debug("update %s", vl->vldb.name); afs_vlocation_updater()
668 ret = afs_vlocation_update_record(vl, NULL, &vldb); afs_vlocation_updater()
672 afs_vlocation_apply_update(vl, &vldb); afs_vlocation_updater()
37 afs_vlocation_access_vl_by_name(struct afs_vlocation *vl, struct key *key, struct afs_cache_vlocation *vldb) afs_vlocation_access_vl_by_name() argument
93 afs_vlocation_access_vl_by_id(struct afs_vlocation *vl, struct key *key, afs_volid_t volid, afs_voltype_t voltype, struct afs_cache_vlocation *vldb) afs_vlocation_access_vl_by_id() argument
195 afs_vlocation_update_record(struct afs_vlocation *vl, struct key *key, struct afs_cache_vlocation *vldb) afs_vlocation_update_record() argument
267 afs_vlocation_apply_update(struct afs_vlocation *vl, struct afs_cache_vlocation *vldb) afs_vlocation_apply_update() argument
H A Dcache.c58 .name = "AFS.vldb",
140 _enter("{%s},%p,%u", vlocation->vldb.name, buffer, bufmax); afs_vlocation_cache_get_key()
142 klen = strnlen(vlocation->vldb.name, sizeof(vlocation->vldb.name)); afs_vlocation_cache_get_key()
146 memcpy(buffer, vlocation->vldb.name, klen); afs_vlocation_cache_get_key()
161 _enter("{%s},%p,%u", vlocation->vldb.name, buffer, bufmax); afs_vlocation_cache_get_aux()
168 memcpy(buffer, (uint8_t *)&vlocation->vldb.nservers, dlen); afs_vlocation_cache_get_aux()
186 _enter("{%s},%p,%u", vlocation->vldb.name, buffer, buflen); afs_vlocation_cache_check_aux()
198 if (!vlocation->valid || vlocation->vldb.rtime == cvldb->rtime) { afs_vlocation_cache_check_aux()
199 memcpy((uint8_t *)&vlocation->vldb.nservers, buffer, dlen); afs_vlocation_cache_check_aux()
206 if (memcmp(&vlocation->vldb, buffer, dlen) != 0) { afs_vlocation_cache_check_aux()
208 if (memcmp(&vlocation->vldb.vid, &cvldb->vid, afs_vlocation_cache_check_aux()
H A Dvolume.c67 if (params->force && !(vlocation->vldb.vidmask & (1 << params->type))) afs_volume_lookup()
71 for (loop = 0; loop < vlocation->vldb.nservers; loop++) afs_volume_lookup()
72 srvtmask |= vlocation->vldb.srvtmask[loop]; afs_volume_lookup()
107 volume->vid = vlocation->vldb.vid[params->type]; afs_volume_lookup()
117 if (vlocation->vldb.srvtmask[loop] & (1 << volume->type)) { afs_volume_lookup()
119 volume->cell, &vlocation->vldb.servers[loop]); afs_volume_lookup()
225 _enter("%s", volume->vlocation->vldb.name); afs_volume_pick_fileserver()
314 volume->vlocation->vldb.name, ntohl(server->addr.s_addr), afs_volume_release_fileserver()
H A Dvnode.c274 vnode->volume->vlocation->vldb.name, afs_vnode_fetch_status()
402 vnode->volume->vlocation->vldb.name, afs_vnode_fetch_data()
459 vnode->volume->vlocation->vldb.name, afs_vnode_create()
515 vnode->volume->vlocation->vldb.name, afs_vnode_remove()
570 dvnode->volume->vlocation->vldb.name, afs_vnode_link()
574 vnode->volume->vlocation->vldb.name, afs_vnode_link()
641 vnode->volume->vlocation->vldb.name, afs_vnode_symlink()
700 orig_dvnode->volume->vlocation->vldb.name, afs_vnode_rename()
704 new_dvnode->volume->vlocation->vldb.name, afs_vnode_rename()
777 vnode->volume->vlocation->vldb.name, afs_vnode_store_data()
831 vnode->volume->vlocation->vldb.name, afs_vnode_setattr()
883 vnode->volume->vlocation->vldb.name, afs_vnode_get_volume_status()
922 vnode->volume->vlocation->vldb.name, afs_vnode_set_lock()
960 vnode->volume->vlocation->vldb.name, afs_vnode_extend_lock()
998 vnode->volume->vlocation->vldb.name, afs_vnode_release_lock()
H A Dcallback.c406 _debug("update %s", vnode->vldb.name);
411 ret = afs_vnode_update_record(vl, &vldb);
414 afs_vnode_apply_update(vl, &vldb);
H A Dproc.c479 vlocation->vldb.vid[0], afs_proc_cell_volumes_show()
480 vlocation->vldb.vid[1], afs_proc_cell_volumes_show()
481 vlocation->vldb.vid[2], afs_proc_cell_volumes_show()
482 vlocation->vldb.name); afs_proc_cell_volumes_show()
H A Dsuper.c323 strlcpy(sb->s_id, as->volume->vlocation->vldb.name, sizeof(sb->s_id)); afs_fill_super()
H A Dinternal.h258 struct afs_cache_vlocation vldb; /* volume information DB record */ member in struct:afs_vlocation

Completed in 135 milliseconds