| /illumos-gate/usr/src/uts/common/fs/pcfs/ |
| H A D | pc_alloc.c | 45 static pc_cluster32_t pc_getcluster(struct pcfs *fsp, pc_cluster32_t cn); 61 struct pcfs *fsp; /* pcfs that file is in */ in pc_bmap() local 67 fsp = VFSTOPCFS(vp->v_vfsp); in pc_bmap() 76 if (!IS_FAT32(fsp) && (vp->v_flag & VROOT)) { in pc_bmap() 79 lbn = pc_cltodb(fsp, lcn); in pc_bmap() 80 if (lbn >= fsp->pcfs_rdirsec) { in pc_bmap() 84 *dbnp = pc_dbdaddr(fsp, fsp->pcfs_rdirstart + lbn); in pc_bmap() 86 ASSERT (*contigbp >= fsp->pcfs_secsize); in pc_bmap() 88 fsp->pcfs_secsize * (fsp->pcfs_rdirsec - lbn)); in pc_bmap() 93 if (lcn >= fsp->pcfs_ncluster) { in pc_bmap() [all …]
|
| H A D | pc_vfsops.c | 94 static int pc_readfat(struct pcfs *fsp, uchar_t *fatp); 95 static int pc_writefat(struct pcfs *fsp, daddr_t start); 97 static int pc_getfattype(struct pcfs *fsp); 98 static void pcfs_parse_mntopts(struct pcfs *fsp); 459 struct pcfs *fsp; in pcfs_device_ismounted() local 475 for (fsp = pc_mounttab; fsp; fsp = fsp->pcfs_nxt) in pcfs_device_ismounted() 476 if (fsp->pcfs_xdev == xdev && in pcfs_device_ismounted() 477 fsp->pcfs_ldrive == dos_ldrive) { in pcfs_device_ismounted() 553 pcfs_parse_mntopts(struct pcfs *fsp) in pcfs_parse_mntopts() argument 558 struct vfs *vfsp = fsp->pcfs_vfs; in pcfs_parse_mntopts() [all …]
|
| H A D | pc_node.c | 86 struct pcfs *fsp, /* filsystem for node */ in pc_getnode() argument 96 ASSERT(fsp->pcfs_flags & PCFS_LOCKED); in pc_getnode() 101 scluster = pc_getstartcluster(fsp, ep); in pc_getnode() 111 hp = &pcdhead[PCDHASH(fsp, scluster)]; in pc_getnode() 115 if ((fsp == VFSTOPCFS(PCTOV(pcp)->v_vfsp)) && in pc_getnode() 124 hp = &pcfhead[PCFHASH(fsp, blkno, offset)]; in pc_getnode() 128 if ((fsp == VFSTOPCFS(PCTOV(pcp)->v_vfsp)) && in pc_getnode() 159 if (IS_FAT32(fsp)) { in pc_getnode() 162 scluster = fsp->pcfs_rdirstart; in pc_getnode() 163 if (pc_fileclsize(fsp, scluster, &ncl)) { in pc_getnode() [all …]
|
| H A D | pc_vnops.c | 227 struct pcfs *fsp; in pcfs_read() local 231 fsp = VFSTOPCFS(vp->v_vfsp); in pcfs_read() 232 if (error = pc_verify(fsp)) in pcfs_read() 234 error = pc_lockfs(fsp, 0, 0); in pcfs_read() 238 pc_unlockfs(fsp); in pcfs_read() 242 if ((fsp->pcfs_vfs->vfs_flag & VFS_RDONLY) == 0) { in pcfs_read() 243 pc_mark_acc(fsp, pcp); in pcfs_read() 245 pc_unlockfs(fsp); in pcfs_read() 261 struct pcfs *fsp; in pcfs_write() local 265 fsp = VFSTOPCFS(vp->v_vfsp); in pcfs_write() [all …]
|
| H A D | pc_dir.c | 137 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp); in pc_direnter() local 165 if (PCA_IS_HIDDEN(fsp, dp->pc_entry.pcd_attr)) { in pc_direnter() 178 pc_getnode(fsp, slot.sl_blkno, slot.sl_offset, in pc_direnter() 224 boff = pc_blkoff(fsp, offset); in pc_direnter() 229 blkno = pc_daddrdb(fsp, bp->b_blkno); in pc_direnter() 233 *pcpp = pc_getnode(fsp, blkno, boff, ep); in pc_direnter() 236 (*pcpp)->pc_size = fsp->pcfs_clsize; in pc_direnter() 241 error = pc_syncfat(fsp); in pc_direnter() 277 struct pcfs *fsp = VFSTOPCFS(vp->v_vfsp); in pc_makedirentry() local 302 if (!IS_FAT32(fsp)) in pc_makedirentry() [all …]
|
| /illumos-gate/usr/src/cmd/fs.d/ufs/fstyp/ |
| H A D | fstyp.c | 211 struct fs *fsp = &h->afs; in get_attr() local 215 ADD_INT32(h, "magic", fsp->fs_magic); in get_attr() 217 fsp->fs_postblformat == FS_42POSTBLFMT ? "static" : "dynamic"); in get_attr() 218 t = (time_t)fsp->fs_time; in get_attr() 222 ADD_INT32(h, "sblkno", fsp->fs_sblkno); in get_attr() 223 ADD_INT32(h, "cblkno", fsp->fs_cblkno); in get_attr() 224 ADD_INT32(h, "iblkno", fsp->fs_iblkno); in get_attr() 225 ADD_INT32(h, "dblkno", fsp->fs_dblkno); in get_attr() 226 ADD_INT32(h, "sbsize", fsp->fs_sbsize); in get_attr() 227 ADD_INT32(h, "cgsize", fsp->fs_cgsize); in get_attr() [all …]
|
| /illumos-gate/usr/src/uts/common/fs/hsfs/ |
| H A D | hsfs_node.c | 110 static void hs_addfreeb(struct hsfs *fsp, struct hsnode *hp); 112 uint_t last_offset, char *nm, int nmlen, struct hsfs *fsp, 115 static int strip_trailing(struct hsfs *fsp, char *nm, int len); 116 static int hs_namelen(struct hsfs *fsp, char *nm, int len); 211 struct hsfs *fsp; in hs_hsnode_cache_reclaim() local 218 for (fsp = hs_mounttab; fsp != NULL; fsp = fsp->hsfs_next) { in hs_hsnode_cache_reclaim() 222 (void) dnlc_purge_vfsp(fsp->hsfs_vfs, 0); in hs_hsnode_cache_reclaim() 227 rw_enter(&fsp->hsfs_hash_lock, RW_WRITER); in hs_hsnode_cache_reclaim() 228 mutex_enter(&fsp->hsfs_free_lock); in hs_hsnode_cache_reclaim() 229 for (hp = fsp->hsfs_free_f; hp != NULL; hp = fsp->hsfs_free_f) { in hs_hsnode_cache_reclaim() [all …]
|
| H A D | hsfs_vfsops.c | 217 extern void hsched_init(struct hsfs *fsp, int fsid, 220 extern void hsfs_init_kstats(struct hsfs *fsp, int fsid); 221 extern void hsfs_fini_kstats(struct hsfs *fsp); 233 static int hs_getrootvp(struct vfs *vfsp, struct hsfs *fsp, size_t pathsize); 234 static int hs_findhsvol(struct hsfs *fsp, struct vnode *vp, 236 static int hs_parsehsvol(struct hsfs *fsp, uchar_t *volp, 238 static int hs_findisovol(struct hsfs *fsp, struct vnode *vp, 243 static int hs_parseisovol(struct hsfs *fsp, uchar_t *volp, 372 struct hsfs *fsp; in hsfs_unmount() local 384 fsp = VFS_TO_HSFS(vfsp); in hsfs_unmount() [all …]
|
| H A D | hsfs_subr.c | 307 hs_log_bogus_disk_warning(fsp, errtype, data) in hs_log_bogus_disk_warning() argument 308 struct hsfs *fsp; in hs_log_bogus_disk_warning() 313 if (fsp->hsfs_err_flags & (1 << errtype)) 317 fsp->hsfs_fsmnt); 338 fsp->hsfs_err_flags |= (1 << errtype); 348 struct hsfs *fsp; in hsfs_kstats_update() local 360 fsp = ksp->ks_private; in hsfs_kstats_update() 363 mutex_enter(&(fsp->hqueue->strategy_lock)); in hsfs_kstats_update() 364 mutex_enter(&(fsp->hqueue->hsfs_queue_lock)); in hsfs_kstats_update() 366 cache_read_pages = fsp->cache_read_pages; in hsfs_kstats_update() [all …]
|
| H A D | hsfs_susp_subr.c | 87 struct hsfs *fsp, /* filesystem pointer */ in parse_sua() argument 93 uchar_t *tmp_SUA_p = (SUA_p + fsp->hsfs_sua_off); in parse_sua() 94 int tmp_SUA_len = (SUA_len - fsp->hsfs_sua_off); in parse_sua() 113 hs_log_bogus_disk_warning(fsp, HSFS_ERR_NEG_SUA_LEN, 0); in parse_sua() 118 hs_log_bogus_disk_warning(fsp, HSFS_ERR_BAD_SUA_LEN, 0); in parse_sua() 133 sig_args.fsp = fsp; in parse_sua() 154 if (get_cont_area(fsp, &cont_p, &cont_info)) { in parse_sua() 254 if (!IS_IMPL_BIT_SET(sig_args_p->fsp, impl_bit_num)) in parse_signatures() 367 struct hsfs *fsp; in hs_check_root_dirent() local 379 fsp = VFS_TO_HSFS(vp->v_vfsp); in hs_check_root_dirent() [all …]
|
| H A D | hsfs_vnops.c | 138 static void hsched_enqueue_io(struct hsfs *fsp, struct hio *hsio, int ra); 139 int hsched_invoke_strategy(struct hsfs *fsp); 256 struct hsfs *fsp; in hsfs_getattr() local 259 fsp = VFS_TO_HSFS(vp->v_vfsp); in hsfs_getattr() 288 (hp->hs_dirent.xar_len << fsp->hsfs_vol.lbn_shift), DEV_BSIZE); in hsfs_getattr() 318 struct hsfs *fsp; in hsfs_inactive() local 323 fsp = VFS_TO_HSFS(vp->v_vfsp); in hsfs_inactive() 330 rw_enter(&fsp->hsfs_hash_lock, RW_WRITER); in hsfs_inactive() 343 rw_exit(&fsp->hsfs_hash_lock); in hsfs_inactive() 362 hs_freenode(vp, fsp, nopag in hsfs_inactive() 407 struct hsfs *fsp; hsfs_readdir() local 712 hsfs_getpage_ra(struct vnode * vp,u_offset_t off,struct seg * seg,caddr_t addr,struct hsnode * hp,struct hsfs * fsp,int xarsiz,offset_t bof,int chunk_lbn_count,int chunk_data_bytes) hsfs_getpage_ra() argument 996 struct hsfs *fsp; hsfs_getapage() local 1469 struct hsfs *fsp; hsfs_getpage() local 1838 hsched_init(struct hsfs * fsp,int fsid,struct modlinkage * modlinkage) hsched_init() argument 1964 hsched_invoke_strategy(struct hsfs * fsp) hsched_invoke_strategy() argument 2219 hsched_enqueue_io(struct hsfs * fsp,struct hio * hsio,int ra) hsched_enqueue_io() argument 2243 struct hsfs *fsp; hsfs_pathconf() local [all...] |
| H A D | hsfs_susp.c | 134 SET_SUSP_BIT(sig_args_p->fsp); in share_protocol() 136 sig_args_p->fsp->hsfs_sua_off = SP_SUA_OFFSET(sp_ptr); in share_protocol() 175 SET_IMPL_BIT(sig_args_p->fsp, index); in share_ext_ref()
|
| /illumos-gate/usr/src/uts/common/fs/ufs/ |
| H A D | ufs_vfsops.c | 469 struct fs *fsp; in ufs_mountroot() local 494 fsp = getfs(vfsp); in ufs_mountroot() 507 fsp = ufsvfsp->vfs_fs; in ufs_mountroot() 510 (fsp->fs_rolled == FS_NEED_ROLL)) { in ufs_mountroot() 514 ufsvfsp, fsp); in ufs_mountroot() 516 fsp->fs_rolled = FS_ALL_ROLLED; in ufs_mountroot() 569 fsp = getfs(vfsp); in ufs_mountroot() 570 clkset(doclkset ? fsp->fs_time : -1); in ufs_mountroot() 584 struct fs *fsp = (struct fs *)bp->b_un.b_addr; in remountfs() local 631 if (fsp->fs_flags & FSLARGEFILES) { in remountfs() [all …]
|
| /illumos-gate/usr/src/uts/common/sys/fs/ |
| H A D | hsfs_susp.h | 54 #define SET_IMPL_BIT(fsp, y) ((fsp->hsfs_ext_impl) |= (0x01L) << (y)) argument 55 #define UNSET_IMPL_BIT(fsp, y) ((fsp->hsfs_ext_impl) &= ~((0x01L) << (y))) argument 56 #define IS_IMPL_BIT_SET(fsp, y) ((fsp->hsfs_ext_impl) & ((0x01L) << (y))) argument 65 #define SET_SUSP_BIT(fsp) (SET_IMPL_BIT((fsp), HAVE_SUSP)) argument 66 #define UNSET_SUSP_BIT(fsp) (UNSET_IMPL_BIT((fsp), HAVE_SUSP)) argument 67 #define IS_SUSP_IMPLEMENTED(fsp) (IS_IMPL_BIT_SET(fsp, 0) ? 1 : 0) argument 230 struct hsfs *fsp; /* file system */ member
|
| H A D | hsfs_impl.h | 59 extern void hs_freenode(vnode_t *vp, struct hsfs *fsp, int nopage); 61 extern int hs_parsedir(struct hsfs *fsp, uchar_t *dirp, 78 extern void hs_log_bogus_disk_warning(struct hsfs *fsp, int errtype,
|
| /illumos-gate/usr/src/cmd/fs.d/ |
| H A D | df.c | 1259 g_output(struct df_request *dfrp, struct statvfs64 *fsp) in g_output() argument 1261 fsblkcnt64_t available_blocks = fsp->f_bavail; in g_output() 1262 fsblkcnt64_t total_blocks = fsp->f_blocks; in g_output() 1331 NCOL3_WIDTH, fsp->f_bsize, SCOL3_WIDTH, block_size_str, in g_output() 1332 NCOL4_WIDTH, fsp->f_frsize, SCOL4_WIDTH, frag_size_str); in g_output() 1343 adjust_total_blocks(dfrp, &total_blocks, fsp->f_frsize); in g_output() 1347 total_blocks, fsp->f_frsize, 512), in g_output() 1350 fsp->f_bfree, fsp->f_frsize, 512), in g_output() 1353 available_blocks, fsp->f_frsize, 512), in g_output() 1356 fsp->f_files, 1, 1), in g_output() [all …]
|
| /illumos-gate/usr/src/uts/common/inet/ipf/ |
| H A D | solaris.c | 320 filterstats_t *fsp; in ipf_kstat_update() local 329 fsp = ksp->ks_private; in ipf_kstat_update() 331 fkp->fks_pass.value.ul = fsp->fr_pass; in ipf_kstat_update() 332 fkp->fks_block.value.ul = fsp->fr_block; in ipf_kstat_update() 333 fkp->fks_nom.value.ul = fsp->fr_nom; in ipf_kstat_update() 334 fkp->fks_short.value.ul = fsp->fr_short; in ipf_kstat_update() 335 fkp->fks_ppkl.value.ul = fsp->fr_ppkl; in ipf_kstat_update() 336 fkp->fks_bpkl.value.ul = fsp->fr_bpkl; in ipf_kstat_update() 337 fkp->fks_npkl.value.ul = fsp->fr_npkl; in ipf_kstat_update() 338 fkp->fks_pkl.value.ul = fsp->fr_pkl; in ipf_kstat_update() [all …]
|
| /illumos-gate/usr/src/lib/libipmi/common/ |
| H A D | ipmi_entity.c | 111 ipmi_sdr_full_sensor_t *fsp = in ipmi_entity_sdr_parse() local 113 *id = fsp->is_fs_entity_id; in ipmi_entity_sdr_parse() 114 *instance = fsp->is_fs_entity_instance; in ipmi_entity_sdr_parse() 115 *logical = fsp->is_fs_entity_logical; in ipmi_entity_sdr_parse() 291 ipmi_sdr_full_sensor_t *fsp; in ipmi_entity_present_sdr() local 303 fsp = (ipmi_sdr_full_sensor_t *)sdrp->is_record; in ipmi_entity_present_sdr() 304 number = fsp->is_fs_number; in ipmi_entity_present_sdr() 305 sensor_type = fsp->is_fs_type; in ipmi_entity_present_sdr() 306 reading_type = fsp->is_fs_reading_type; in ipmi_entity_present_sdr() 410 ipmi_sdr_full_sensor_t *fsp; in ipmi_entity_present() local [all …]
|
| H A D | ipmi_sdr.c | 279 ipmi_sdr_full_sensor_t *fsp = in ipmi_sdr_refresh() local 284 namelen = fsp->is_fs_idlen; in ipmi_sdr_refresh() 285 type = fsp->is_fs_idtype; in ipmi_sdr_refresh() 286 name = fsp->is_fs_idstring; in ipmi_sdr_refresh() 287 e_id = fsp->is_fs_entity_id; in ipmi_sdr_refresh() 288 e_inst = fsp->is_fs_entity_instance; in ipmi_sdr_refresh() 290 tmp = LE_IN16(&fsp->is_fs_assert_mask); in ipmi_sdr_refresh() 291 (void) memcpy(&fsp->is_fs_assert_mask, &tmp, in ipmi_sdr_refresh() 294 tmp = LE_IN16(&fsp->is_fs_deassert_mask); in ipmi_sdr_refresh() 295 (void) memcpy(&fsp->is_fs_deassert_mask, &tmp, in ipmi_sdr_refresh() [all …]
|
| /illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
| H A D | fncs.c | 301 free_fstatus(FSTATUS *fsp) in free_fstatus() argument 303 if (fsp != NULL) { in free_fstatus() 304 if (fsp->form != NULL) in free_fstatus() 305 free_form(fsp->form); in free_fstatus() 306 if (fsp->alert != NULL) in free_fstatus() 307 free_alert(fsp->alert); in free_fstatus() 308 if (fsp->users_allowed != NULL) in free_fstatus() 309 unload_list(&fsp->users_allowed); in free_fstatus() 310 if (fsp->users_denied != NULL) in free_fstatus() 311 unload_list(&fsp->users_denied); in free_fstatus() [all …]
|
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | ttyname.c | 106 static char *_ttyname_common(struct stat64 *fsp, char *buffer, 201 _ttyname_common(struct stat64 *fsp, char *buffer, uint_t match_mask) in _ttyname_common() argument 233 if (spclp->spcl_rdev == fsp->st_rdev) { in _ttyname_common() 237 } else if (spclp->spcl_fsdev == fsp->st_dev && in _ttyname_common() 238 spclp->spcl_rdev == fsp->st_rdev && in _ttyname_common() 239 spclp->spcl_inum == fsp->st_ino) { in _ttyname_common() 259 (minor(spclp->spcl_rdev) == major(fsp->st_rdev))) in _ttyname_common() 266 if ((retval = ispty(fsp, match_mask)) != NULL) in _ttyname_common() 289 if ((pt = ispts(fsp, match_mask)) != NULL) { in _ttyname_common() 296 == 0) ? MAX_SRCH_DEPTH : 1), 0, fsp); in _ttyname_common() [all …]
|
| /illumos-gate/usr/src/cmd/fm/ipmitopo/common/ |
| H A D | ipmitopo.c | 48 ipmi_sdr_full_sensor_t *fsp; in sdr_print() local 68 fsp = (ipmi_sdr_full_sensor_t *)sdrp->is_record; in sdr_print() 69 sensor_number = fsp->is_fs_number; in sdr_print() 70 sensor_type = fsp->is_fs_type; in sdr_print() 71 reading_type = fsp->is_fs_reading_type; in sdr_print()
|
| /illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
| H A D | mkfs.c | 621 struct file_set_desc *fsp; in volseqinit() local 908 fsp = (struct file_set_desc *)&buf; in volseqinit() 909 tp = &fsp->fsd_tag; in volseqinit() 916 setstamp(&fsp->fsd_time); in volseqinit() 917 fsp->fsd_ilevel = 3; in volseqinit() 918 fsp->fsd_mi_level = 3; in volseqinit() 919 fsp->fsd_cs_list = 1; in volseqinit() 920 fsp->fsd_mcs_list = 1; in volseqinit() 921 fsp->fsd_fs_no = 0; in volseqinit() 922 fsp->fsd_fsd_no = 0; in volseqinit() [all …]
|
| /illumos-gate/usr/src/cmd/ed/ |
| H A D | ed.c | 178 static char *fsp; variable 2858 for (fsp = line; *fsp && *fsp != '\n'; fsp += len) { in fspec() 2859 if ((len = mblen(fsp, MB_CUR_MAX)) <= 0) in fspec() 2861 switch (*fsp) { in fspec() 2865 if (*(fsp+1) == ':') { in fspec() 2872 fsp++; in fspec() 2892 if (*(fsp+1) != '>') fsprtn = -1; in fspec() 2909 while (*++fsp >= '0' && *fsp <= '9') in numb() 2910 n = 10*n + *fsp-'0'; in numb() 2911 fsp--; in numb() [all …]
|
| /illumos-gate/usr/src/cmd/fs.d/ufs/labelit/ |
| H A D | labelit.c | 141 struct fs *fsp, *altfsp; in label() local 188 fsp = &sblock; in label() 209 p = (char *)&(fs_rotbl(fsp)[blk]); in label() 282 bcopy((char *)&(fs_rotbl(fsp)[blk]), in label() 297 p = (char *)&(fs_rotbl(fsp)[blk]); in label()
|