fsid
uint64_t fsid;
fsid = kve->kve_vn_fsid;
fsid = kif->kf_un.kf_file.kf_file_fsid;
vn->vn_fsid = fsid;
bsde_parse_fsid(char *spec, struct fsid *fsid, size_t buflen, char *errstr)
*fsid = buf.f_fsid;
struct fsid fsid;
if (bsde_parse_fsid(argv[current+1], &fsid,
object->mbo_fsid = fsid;
getmntentry(const char *fromname, const char *onname, fsid_t *fsid, dowhat what)
if (fsid != NULL && fsidcmp(&sfs->f_fsid, fsid) != 0)
fsid_t fsid;
if (parsehexfsid(mntname, &fsid) == 0)
sfs = getmntentry(NULL, NULL, &fsid, FIND);
parsehexfsid(const char *hex, fsid_t *fsid)
if (strlen(hex) != sizeof(*fsid) * 2)
for (i = 0; i < (int)sizeof(*fsid); i++) {
((u_char *)fsid)[i] = strtol(hexbuf, NULL, 16);
fsid_t *fsid, dowhat what);
int parsehexfsid(const char *hex, fsid_t *fsid);
&stat->bavail, &stat->files, &stat->ffree, &stat->fsid,
(uintmax_t)stat->fsid, (uintmax_t)stat->namelen);
uint64_t fsid; /* file system id */
fsid_t fsid;
if (sscanf(fsidbuf, "FSID:%d:%d", &fsid.val[0], &fsid.val[1]) != 2) {
mp = vfs_getvfs(&fsid);
vfs_busyfs(fsid_t *fsid)
CTR2(KTR_VFS, "%s: fsid %p", __func__, fsid);
hash = fsid->val[0] ^ fsid->val[1];
if (mp == NULL || fsidcmp(&mp->mnt_stat.f_fsid, fsid) != 0)
if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0)
if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) {
CTR2(KTR_VFS, "%s: lookup failed for %p id", __func__, fsid);
vfs_event_signal(fsid_t *fsid, uint32_t event, intptr_t data __unused)
vfs_getvfs(fsid_t *fsid)
CTR2(KTR_VFS, "%s: fsid %p", __func__, fsid);
if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) {
CTR2(KTR_VFS, "%s: lookup failed for %p id", __func__, fsid);
dev_t fsid;
fsid = SLOT(mp->mnt_label);
if (fsid) {
(uintmax_t)fsid);
mac_veriexec_metadata_unmounted(fsid, td);
int mac_veriexec_metadata_add_file(int file_dev, dev_t fsid, long fileid,
const char *mac_veriexec_metadata_get_file_label(dev_t fsid, long fileid,
int mac_veriexec_metadata_has_file(dev_t fsid, long fileid,
int mac_veriexec_metadata_get_file_flags(dev_t fsid, long fileid,
int mac_veriexec_metadata_get_file_info(dev_t fsid, long fileid,
int mac_veriexec_metadata_unmounted(dev_t fsid, struct thread *td);
get_veriexec_file(struct veriexec_devhead *head, dev_t fsid, long fileid,
" files=%d\n", (uintmax_t)fileid, gen, (uintmax_t)fsid,
if (lp->fsid == fsid)
(uintmax_t)lp->fsid));
sbuf_printf(sbp, " FS id: %ju\n", (uintmax_t)lp->fsid);
mac_veriexec_metadata_has_file(dev_t fsid, long fileid, unsigned long gen)
return (mac_veriexec_metadata_get_file_info(fsid, fileid, gen, NULL,
free_veriexec_dev(dev_t fsid, struct veriexec_devhead *head)
if (lp->fsid == fsid) break;
find_veriexec_dev(dev_t fsid, struct veriexec_devhead *head)
if (lp->fsid == fsid) break;
lp->fsid = fsid;
mac_veriexec_metadata_unmounted(dev_t fsid, struct thread *td)
error = free_veriexec_dev(fsid, &veriexec_dev_head);
error = free_veriexec_dev(fsid, &veriexec_file_dev_head);
mac_veriexec_metadata_get_file_flags(dev_t fsid, long fileid, unsigned long gen,
error = mac_veriexec_metadata_get_file_info(fsid, fileid, gen, NULL,
dev_t fsid; /**< file system identifier of the mount point */
mac_veriexec_metadata_get_file_label(dev_t fsid, long fileid,
error = mac_veriexec_metadata_get_file_info(fsid, fileid, gen, NULL,
mac_veriexec_metadata_add_file(int file_dev, dev_t fsid, long fileid,
lp = find_veriexec_dev(fsid, head);
mac_veriexec_metadata_get_file_info(dev_t fsid, long fileid, unsigned long gen,
__func__, (uintmax_t)fsid, fileid, gen));
ip = get_veriexec_file(search[x], fsid, fileid, gen, found_dev);
fsid_t fsid;
fsid = fs.f_fsid;
if (fsid.val[0] != fs.f_fsid.val[0] ||
fsid.val[1] != fs.f_fsid.val[1]) {
if (d->fsid == vn.vn_fsid) {
cur->fsid = statbuf.st_dev;
uint64_t fsid;
reqfile->fsid = sb.st_dev;
if (flags & CFLAG && reqfiles[i].fsid == vn.vn_fsid) {
else if (reqfiles[i].fsid == vn.vn_fsid &&
dev_t fsid;
char fsid[17];
bzero(fsid, sizeof(fsid));
snprintf(&fsid[i*2],
sizeof(fsid) - (i*2), "%02x",
buf.f_mntfromname, fsid);
flush_autofs(const char *fspath, const fsid_t *fsid)
__DECONST(void *, fsid), sizeof(*fsid));
unmount_by_fsid(const fsid_t fsid, const char *mountpoint)
ret = asprintf(&fsid_str, "FSID:%d:%d", fsid.val[0], fsid.val[1]);
automounted_find(fsid_t fsid)
if (fsidcmp(&af->af_fsid, &fsid) == 0)
automounted_add(fsid_t fsid, const char *mountpoint)
af->af_fsid = fsid;
static hammer_uuid_t fsid, fstype;
memcpy(&fsid, &ondisk->vol_fsid, sizeof(fsid));
if (memcmp(&ondisk->vol_fsid, &fsid, sizeof(fsid)))
uuid_t fsid; /* 0040 */
ex_search(fsid_t *fsid, struct exportlisthead *exhp)
i = EXPHASH(fsid);
if (fsidcmp(&ep->ex_fs, fsid) == 0)