Home
last modified time | relevance | path

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

12

/freebsd/sys/security/mac_veriexec/
H A Dveriexec_metadata.c56 dev_t fsid; /**< file system identifier of the mount point */ member
117 " files=%d\n", (uintmax_t)fileid, gen, (uintmax_t)fsid, in get_veriexec_file()
125 if (lp->fsid == fsid) in get_veriexec_file()
131 (uintmax_t)lp->fsid)); in get_veriexec_file()
192 sbuf_printf(sbp, " FS id: %ju\n", (uintmax_t)lp->fsid); in mac_veriexec_print_db_head()
262 if (lp->fsid == fsid) break; in free_veriexec_dev()
314 if (lp->fsid == fsid) break; in find_veriexec_dev()
345 lp->fsid = fsid; in find_veriexec_dev()
413 error = free_veriexec_dev(fsid, &veriexec_dev_head); in mac_veriexec_metadata_unmounted()
654 lp = find_veriexec_dev(fsid, head); in mac_veriexec_metadata_add_file()
[all …]
H A Dmac_veriexec_internal.h79 int mac_veriexec_metadata_get_file_flags(dev_t fsid, long fileid,
81 int mac_veriexec_metadata_get_file_info(dev_t fsid, long fileid,
86 int mac_veriexec_metadata_unmounted(dev_t fsid, struct thread *td);
H A Dmac_veriexec.h177 int mac_veriexec_metadata_add_file(int file_dev, dev_t fsid, long fileid,
181 const char *mac_veriexec_metadata_get_file_label(dev_t fsid, long fileid,
183 int mac_veriexec_metadata_has_file(dev_t fsid, long fileid,
H A Dmac_veriexec.c228 dev_t fsid; in mac_veriexec_vfs_unmounted() local
230 fsid = SLOT(mp->mnt_label); in mac_veriexec_vfs_unmounted()
231 if (fsid) { in mac_veriexec_vfs_unmounted()
233 (uintmax_t)fsid); in mac_veriexec_vfs_unmounted()
234 mac_veriexec_metadata_unmounted(fsid, td); in mac_veriexec_vfs_unmounted()
/freebsd/sbin/umount/
H A Dumount.c72 fsid_t *fsid, dowhat what);
76 int parsehexfsid(const char *hex, fsid_t *fsid);
486 getmntentry(const char *fromname, const char *onname, fsid_t *fsid, dowhat what) in getmntentry() argument
518 if (fsid != NULL && fsidcmp(&sfs->f_fsid, fsid) != 0) in getmntentry()
596 fsid_t fsid; in checkmntlist() local
599 if (parsehexfsid(mntname, &fsid) == 0) in checkmntlist()
600 sfs = getmntentry(NULL, NULL, &fsid, FIND); in checkmntlist()
631 parsehexfsid(const char *hex, fsid_t *fsid) in parsehexfsid() argument
636 if (strlen(hex) != sizeof(*fsid) * 2) in parsehexfsid()
639 for (i = 0; i < (int)sizeof(*fsid); i++) { in parsehexfsid()
[all …]
/freebsd/usr.sbin/autofs/
H A Dautounmountd.c61 automounted_find(fsid_t fsid) in automounted_find() argument
66 if (fsidcmp(&af->af_fsid, &fsid) == 0) in automounted_find()
74 automounted_add(fsid_t fsid, const char *mountpoint) in automounted_add() argument
82 af->af_fsid = fsid; in automounted_add()
152 unmount_by_fsid(const fsid_t fsid, const char *mountpoint) in unmount_by_fsid() argument
157 ret = asprintf(&fsid_str, "FSID:%d:%d", fsid.val[0], fsid.val[1]); in unmount_by_fsid()
H A Dautomount.c231 flush_autofs(const char *fspath, const fsid_t *fsid) in flush_autofs() argument
245 __DECONST(void *, fsid), sizeof(*fsid)); in flush_autofs()
/freebsd/usr.sbin/fstyp/
H A Dhammer.c63 static hammer_uuid_t fsid, fstype; in test_ondisk() local
79 memcpy(&fsid, &ondisk->vol_fsid, sizeof(fsid)); in test_ondisk()
85 if (memcmp(&ondisk->vol_fsid, &fsid, sizeof(fsid))) in test_ondisk()
H A Dhammer2_disk.h1244 uuid_t fsid; /* 0040 */ member
/freebsd/usr.bin/fstat/
H A Dfuser.c93 dev_t fsid; member
154 reqfile->fsid = sb.st_dev; in addfile()
304 if (flags & CFLAG && reqfiles[i].fsid == vn.vn_fsid) { in dofiles()
307 else if (reqfiles[i].fsid == vn.vn_fsid && in dofiles()
H A Dfstat.c73 uint64_t fsid; member
253 if (d->fsid == vn.vn_fsid) { in print_file_info()
632 cur->fsid = statbuf.st_dev; in getfname()
/freebsd/lib/libugidfw/
H A Dugidfw.c785 bsde_parse_fsid(char *spec, struct fsid *fsid, size_t buflen, char *errstr) in bsde_parse_fsid() argument
795 *fsid = buf.f_fsid; in bsde_parse_fsid()
809 struct fsid fsid; in bsde_parse_object() local
869 if (bsde_parse_fsid(argv[current+1], &fsid, in bsde_parse_object()
953 object->mbo_fsid = fsid; in bsde_parse_object()
/freebsd/contrib/tcpdump/
H A Dprint-nfs.c851 my_fsid fsid; in nfs_printfh() local
881 Parse_fh(ndo, (const u_char *)dp, len, &fsid, &ino, NULL, &sfsname, 0); in nfs_printfh()
902 fsid.Fsid_dev.Major, fsid.Fsid_dev.Minor); in nfs_printfh()
905 if(fsid.Fsid_dev.Minor == 257) in nfs_printfh()
907 ND_PRINT("%s", fsid.Opaque_Handle); in nfs_printfh()
/freebsd/contrib/openbsm/bsm/
H A Dlibbsm.h231 u_int32_t fsid; member
240 u_int32_t fsid; member
/freebsd/include/rpcsvc/
H A Dnfs_prot.x120 unsigned fsid; /* device # */ member
400 uint64 fsid; /* device # */ member
/freebsd/sys/kern/
H A Dvfs_subr.c941 vfs_getvfs(fsid_t *fsid) in vfs_getvfs() argument
945 CTR2(KTR_VFS, "%s: fsid %p", __func__, fsid); in vfs_getvfs()
948 if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) { in vfs_getvfs()
955 CTR2(KTR_VFS, "%s: lookup failed for %p id", __func__, fsid); in vfs_getvfs()
970 vfs_busyfs(fsid_t *fsid) in vfs_busyfs() argument
979 CTR2(KTR_VFS, "%s: fsid %p", __func__, fsid); in vfs_busyfs()
980 hash = fsid->val[0] ^ fsid->val[1]; in vfs_busyfs()
983 if (mp == NULL || fsidcmp(&mp->mnt_stat.f_fsid, fsid) != 0) in vfs_busyfs()
989 if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) in vfs_busyfs()
997 if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) { in vfs_busyfs()
[all …]
H A Dvfs_mount.c1721 fsid_t fsid; in kern_unmount() local
1741 if (sscanf(fsidbuf, "FSID:%d:%d", &fsid.val[0], &fsid.val[1]) != 2) { in kern_unmount()
1746 mp = vfs_getvfs(&fsid); in kern_unmount()
/freebsd/contrib/lib9p/
H A Dfcall.h287 uint64_t fsid; /* file system identifier */ member
H A Dpack.c617 l9p_pu64(msg, &fcall->rstatfs.statfs.fsid); in l9p_pufcall()
/freebsd/usr.bin/truss/
H A Dsyscalls.c2212 char fsid[17]; in print_arg() local
2214 bzero(fsid, sizeof(fsid)); in print_arg()
2217 snprintf(&fsid[i*2], in print_arg()
2218 sizeof(fsid) - (i*2), "%02x", in print_arg()
2224 buf.f_mntfromname, fsid); in print_arg()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_vfsops.c1103 uint64_t fsid = dmu_objset_fsid_guid(zfsvfs->z_os); in zfs_statvfs() local
1139 statp->f_fsid.val[0] = (uint32_t)fsid; in zfs_statvfs()
1140 statp->f_fsid.val[1] = (uint32_t)(fsid >> 32); in zfs_statvfs()
/freebsd/lib/libprocstat/
H A Dlibprocstat.c1383 uint64_t fsid; in procstat_get_vnode_info_sysctl() local
1397 fsid = kve->kve_vn_fsid; in procstat_get_vnode_info_sysctl()
1407 fsid = kif->kf_un.kf_file.kf_file_fsid; in procstat_get_vnode_info_sysctl()
1442 vn->vn_fsid = fsid; in procstat_get_vnode_info_sysctl()
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_io.c1676 READ_TOKEN_U_INT32(buf, len, tok->tt.attr32.fsid, tok->len, err); in fetch_attr32_tok()
1707 print_4_bytes(fp, tok->tt.attr32.fsid, "%u"); in print_attr32_tok()
1724 print_4_bytes(fp, tok->tt.attr32.fsid, "%u"); in print_attr32_tok()
1757 READ_TOKEN_U_INT32(buf, len, tok->tt.attr64.fsid, tok->len, err); in fetch_attr64_tok()
1788 print_4_bytes(fp, tok->tt.attr64.fsid, "%u"); in print_attr64_tok()
1805 print_4_bytes(fp, tok->tt.attr64.fsid, "%u"); in print_attr64_tok()
/freebsd/sys/sys/
H A Dmount.h51 typedef struct fsid { int32_t val[2]; } fsid_t; /* filesystem id type */ argument
/freebsd/usr.sbin/mountd/
H A Dmountd.c2497 ex_search(fsid_t *fsid, struct exportlisthead *exhp) in ex_search() argument
2502 i = EXPHASH(fsid); in ex_search()
2504 if (fsidcmp(&ep->ex_fs, fsid) == 0) in ex_search()

12