Home
last modified time | relevance | path

Searched refs:fsid (Results 1 – 25 of 32) 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
104 get_veriexec_file(struct veriexec_devhead *head, dev_t fsid, long fileid, in get_veriexec_file() argument
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()
233 mac_veriexec_metadata_has_file(dev_t fsid, long fileid, unsigned long gen) in mac_veriexec_metadata_has_file() argument
236 return (mac_veriexec_metadata_get_file_info(fsid, fileid, gen, NULL, in mac_veriexec_metadata_has_file()
254 free_veriexec_dev(dev_t fsid, struct veriexec_devhead *head) in free_veriexec_dev() argument
262 if (lp->fsid == fsid) break; in free_veriexec_dev()
[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.c226 dev_t fsid; in mac_veriexec_vfs_unmounted() local
228 fsid = SLOT(mp->mnt_label); in mac_veriexec_vfs_unmounted()
229 if (fsid) { in mac_veriexec_vfs_unmounted()
231 (uintmax_t)fsid); in mac_veriexec_vfs_unmounted()
232 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);
252 * Do magic checks on mountpoint/device/fsid, and then call unmount(2).
413 /* XXX, non-root users get a zero fsid, so don't warn. */ in umountfs()
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, FIN in checkmntlist()
631 parsehexfsid(const char * hex,fsid_t * fsid) parsehexfsid() argument
[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.c65 static hammer_uuid_t fsid, fstype; in test_ondisk() local
81 memcpy(&fsid, &ondisk->vol_fsid, sizeof(fsid)); in test_ondisk()
87 if (memcmp(&ondisk->vol_fsid, &fsid, sizeof(fsid))) in test_ondisk()
H A Dhammer2_disk.h1246 uuid_t fsid; /* 0040 */ member
/freebsd/tests/sys/kern/
H A Djail_lookup_root.c104 fsid_t fsid; in ATF_TC_CLEANUP() local
110 fsid = fs.f_fsid; in ATF_TC_CLEANUP()
114 if (fsid.val[0] != fs.f_fsid.val[0] || in ATF_TC_CLEANUP()
115 fsid.val[1] != fs.f_fsid.val[1]) { in ATF_TC_CLEANUP()
/freebsd/usr.bin/fstat/
H A Dfuser.c92 dev_t fsid; member
152 reqfile->fsid = sb.st_dev; in addfile()
293 if (flags & CFLAG && reqfiles[i].fsid == vn.vn_fsid) { in dofiles()
296 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()
644 cur->fsid = statbuf.st_dev; in getfname()
/freebsd/tools/test/stress2/misc/
H A Dsyzkaller89.sh152 // fsid: fsid {
/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.c859 my_fsid fsid; in nfs_printfh() local
889 Parse_fh(ndo, (const u_char *)dp, len, &fsid, &ino, NULL, &sfsname, 0); in nfs_printfh()
912 fsid.Fsid_dev.Major, fsid.Fsid_dev.Minor); in nfs_printfh()
915 if(fsid.Fsid_dev.Minor == UINT_MAX && fsid.Fsid_dev.Major == UINT_MAX) in nfs_printfh()
917 fn_print_str(ndo, (const u_char *)fsid.Opaque_Handle); in nfs_printfh()
/freebsd/sys/fs/p9fs/
H A Dp9_protocol.h176 uint64_t fsid; /* file system id */ member
H A Dp9_client.c1102 &stat->bavail, &stat->files, &stat->ffree, &stat->fsid, in p9_client_statfs()
1115 (uintmax_t)stat->fsid, (uintmax_t)stat->namelen); in p9_client_statfs()
/freebsd/include/rpcsvc/
H A Dnfs_prot.x120 unsigned fsid; /* device # */ member
400 uint64 fsid; /* device # */ member
/freebsd/contrib/openbsm/bsm/
H A Dlibbsm.h231 u_int32_t fsid; member
240 u_int32_t fsid; member
/freebsd/contrib/lib9p/
H A Dfcall.h287 uint64_t fsid; /* file system identifier */ member
/freebsd/sys/kern/
H A Dvfs_subr.c996 vfs_getvfs(fsid_t *fsid) in vfs_getvfs() argument
1000 CTR2(KTR_VFS, "%s: fsid %p", __func__, fsid); in vfs_getvfs()
1003 if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) { in vfs_getvfs()
1010 CTR2(KTR_VFS, "%s: lookup failed for %p id", __func__, fsid); in vfs_getvfs()
1025 vfs_busyfs(fsid_t *fsid) in vfs_busyfs() argument
1034 CTR2(KTR_VFS, "%s: fsid %p", __func__, fsid); in vfs_busyfs()
1035 hash = fsid->val[0] ^ fsid->val[1]; in vfs_busyfs()
1038 if (mp == NULL || fsidcmp(&mp->mnt_stat.f_fsid, fsid) != 0) in vfs_busyfs()
1044 if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) in vfs_busyfs()
1052 if (fsidcmp(&mp->mnt_stat.f_fsid, fsid) == 0) { in vfs_busyfs()
[all …]
H A Dvfs_mount.c1770 fsid_t fsid; in kern_unmount() local
1791 if (sscanf(fsidbuf, "FSID:%d:%d", &fsid.val[0], &fsid.val[1]) != 2) { in kern_unmount()
1796 mp = vfs_getvfs(&fsid); in kern_unmount()
/freebsd/usr.bin/truss/
H A Dsyscalls.c2304 char fsid[17]; in print_arg() local
2306 bzero(fsid, sizeof(fsid)); in print_arg()
2309 snprintf(&fsid[i*2], in print_arg()
2310 sizeof(fsid) - (i*2), "%02x", in print_arg()
2316 buf.f_mntfromname, fsid); in print_arg()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_vfsops.c986 uint64_t fsid = dmu_objset_fsid_guid(zfsvfs->z_os); in zfs_statvfs() local
1022 statp->f_fsid.val[0] = (uint32_t)fsid; in zfs_statvfs()
1023 statp->f_fsid.val[1] = (uint32_t)(fsid >> 32); in zfs_statvfs()
/freebsd/lib/libprocstat/
H A Dlibprocstat.c1388 uint64_t fsid; in procstat_get_vnode_info_sysctl() local
1402 fsid = kve->kve_vn_fsid; in procstat_get_vnode_info_sysctl()
1412 fsid = kif->kf_un.kf_file.kf_file_fsid; in procstat_get_vnode_info_sysctl()
1447 vn->vn_fsid = fsid; in procstat_get_vnode_info_sysctl()

12