/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | fs.h | 146 struct fs struct 253 #define fs_postbl(fs, cylno) \ argument 254 (((fs)->fs_postblformat == FS_42POSTBLFMT) \ 255 ? ((fs)->fs_opostbl[cylno]) \ 256 : ((short *)((char *)(fs) + (fs)->fs_postbloff) + (cylno) * (fs)->fs_nrpos)) 257 #define fs_rotbl(fs) \ argument 258 (((fs)->fs_postblformat == FS_42POSTBLFMT) \ 259 ? ((fs)->fs_space) \ 260 : ((u_char *)((char *)(fs) + (fs)->fs_rotbloff))) 267 #define fs_cs(fs, indx) \ argument [all …]
|
H A D | ufs2.h | 244 struct fs { struct 354 #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb) argument 355 #define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb) argument 361 #define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c))) argument 362 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument 363 #define cgstart(fs, c) \ argument 364 ((fs)->fs_magic == FS_UFS2_MAGIC ? cgbase(fs, c) : \ 365 (cgbase(fs, c) + (fs)->fs_old_cgoffset * ((c) & ~((fs)->fs_old_cgmask)))) 373 #define ino_to_cg(fs, x) ((x) / (fs)->fs_ipg) argument 374 #define ino_to_fsba(fs, x) \ argument [all …]
|
H A D | ufs.h | 62 struct fs { struct 208 #define INOPB(fs) ((fs)->fs_inopb) argument 209 #define itoo(fs, x) ((x) % (grub_uint32_t)INOPB(fs)) argument 210 #define itog(fs, x) ((x) / (grub_uint32_t)(fs)->fs_ipg) argument 211 #define itod(fs, x) ((grub_daddr32_t)(cgimin(fs, itog(fs, x)) + \ argument 212 (blkstofrags((fs), \ 213 ((x) % (grub_uint32_t)(fs)->fs_ipg / (grub_uint32_t)INOPB(fs)))))) 216 #define UFS_NINDIR(fs) ((fs)->fs_nindir) /* # of indirects */ argument 217 #define blkoff(fs, loc) ((int)((loc & ~(fs)->fs_bmask))) argument 218 #define lblkno(fs, loc) ((grub_int32_t)((loc) >> (fs)->fs_bshift)) argument [all …]
|
/titanic_41/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 238 struct fs { struct 408 #define fs_postbl(fs, cylno) \ argument 409 (((fs)->fs_postblformat != FS_DYNAMICPOSTBLFMT) \ 410 ? ((fs)->fs_opostbl[cylno]) \ 411 : ((short *)((char *)(fs) + \ 412 (fs)->fs_postbloff) \ 413 + (cylno) * (fs)->fs_nrpos)) 416 #define fs_rotbl(fs) \ argument 417 (((fs)->fs_postblformat != FS_DYNAMICPOSTBLFMT) \ 418 ? ((fs)->fs_space) \ [all …]
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_alloc.c | 107 struct fs *fs; in alloc() local 117 fs = ufsvfsp->vfs_fs; in alloc() 118 if ((unsigned)size > fs->fs_bsize || fragoff(fs, size) != 0) { in alloc() 121 ip->i_dev, fs->fs_bsize, size, fs->fs_fsmnt); in alloc() 124 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in alloc() 126 if (freespace(fs, ufsvfsp) <= 0 && in alloc() 138 if (bpref >= fs->fs_size) in alloc() 141 cg = (int)itog(fs, ip->i_number); in alloc() 143 cg = dtog(fs, bpref); in alloc() 167 cmn_err(CE_NOTE, "alloc: %s: file system full", fs->fs_fsmnt); in alloc() [all …]
|
H A D | ufs_subr.c | 196 struct fs *fs; in ufs_update() local 273 fs = ufsp->vfs_fs; in ufs_update() 291 if ((fs->fs_ronly == 0) && in ufs_update() 292 (fs->fs_clean != FSBAD) && in ufs_update() 293 (fs->fs_clean != FSSUSPEND)) { in ufs_update() 305 if (fs->fs_fmod == 0) { in ufs_update() 310 if (fs->fs_ronly != 0) { in ufs_update() 314 "fs = %s update: ro fs mod\n", fs->fs_fsmnt); in ufs_update() 324 fs->fs_fmod = 0; in ufs_update() 577 struct fs *fs; in ufs_sync_indir() local [all …]
|
H A D | ufs_snap.c | 67 struct fs *fs = ufsvfsp->vfs_fs; in ufs_snap_create() local 86 if (fs->fs_ronly) { in ufs_snap_create() 131 if (fs->fs_clean != FSACTIVE && in ufs_snap_create() 132 fs->fs_clean != FSSTABLE && in ufs_snap_create() 133 fs->fs_clean != FSCLEAN && in ufs_snap_create() 134 fs->fs_clean != FSLOG) { in ufs_snap_create() 165 chunksize = fs->fs_bsize * 4; in ufs_snap_create() 175 if ((chunksize < fs->fs_fsize) || (chunksize % fs->fs_fsize != 0)) { in ufs_snap_create() 180 fragsperchunk = chunksize >> fs->fs_fshift; in ufs_snap_create() 181 nchunks = (fs->fs_size + fragsperchunk) / fragsperchunk; in ufs_snap_create() [all …]
|
H A D | ufs_trans.c | 218 struct fs *fs; in ufs_trans_push_si() local 220 fs = ufsvfsp->vfs_fs; in ufs_trans_push_si() 222 TRANS_LOG(ufsvfsp, (char *)fs->fs_u.fs_csp, in ufs_trans_push_si() 223 ldbtob(fsbtodb(fs, fs->fs_csaddr)), fs->fs_cssize, in ufs_trans_push_si() 224 (caddr_t)fs->fs_u.fs_csp, fs->fs_cssize); in ufs_trans_push_si() 324 struct fs *fs = ufsvfsp->vfs_fs; in ufs_trans_mata_mount() local 335 TRANS_MATAADD(ufsvfsp, ldbtob(SBLOCK), fs->fs_sbsize); in ufs_trans_mata_mount() 337 for (ino = i = 0; i < fs->fs_ncg; ++i, ino += fs->fs_ipg) { in ufs_trans_mata_mount() 339 ldbtob(fsbtodb(fs, cgtod(fs, i))), fs->fs_cgsize); in ufs_trans_mata_mount() 341 ldbtob(fsbtodb(fs, itod(fs, ino))), in ufs_trans_mata_mount() [all …]
|
/titanic_41/usr/src/man/man7fs/ |
H A D | Makefile | 19 MANSECT= 7fs 21 MANFILES= ctfs.7fs \ 22 dcfs.7fs \ 23 dev.7fs \ 24 devfs.7fs \ 25 fd.7fs \ 26 hsfs.7fs \ 27 lofs.7fs \ 28 objfs.7fs \ 29 pcfs.7fs \ [all …]
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cachefslog/ |
H A D | cachefslog.c | 56 stats_cookie_t *fs = NULL; in main() local 102 fs = stats_create_mountpath(argv[optind], prog); in main() 103 if (fs == NULL) { in main() 109 if (! stats_good(fs)) { in main() 110 pr_err(stats_errorstr(fs)); in main() 111 rc = stats_errno(fs); in main() 115 if ((logfile = stats_log_kernel_getname(fs)) == NULL) { in main() 116 pr_err(stats_errorstr(fs)); in main() 117 rc = stats_errno(fs); in main() 126 if ((stats_log_kernel_setname(fs, fpath) != 0) || in main() [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 202 typeset fs=$3 207 verify_fs_create $user $perm $fs 211 verify_fs_destroy $user $perm $fs 215 verify_fs_snapshot $user $perm $fs 219 verify_fs_rollback $user $perm $fs 223 verify_fs_clone $user $perm $fs 227 verify_fs_rename $user $perm $fs 231 verify_fs_mount $user $perm $fs 235 verify_fs_share $user $perm $fs 239 verify_fs_mountpoint $user $perm $fs [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsirand/ |
H A D | fsirand.c | 62 struct fs *fs; in main() local 98 fs = (struct fs *)fsbuf; in main() 99 if ((n = read(fd, (char *)fs, SBSIZE)) != SBSIZE) { in main() 105 if ((fs->fs_magic != FS_MAGIC) && in main() 106 (fs->fs_magic != MTB_UFS_MAGIC)) { in main() 111 if (fs->fs_magic == FS_MAGIC && in main() 112 (fs->fs_version != UFS_EFISTYLE4NONEFI_VERSION_2 && in main() 113 fs->fs_version != UFS_VERSION_MIN)) { in main() 116 fs->fs_version); in main() 119 if (fs->fs_magic == MTB_UFS_MAGIC && in main() [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/userquota/ |
H A D | userquota_011_pos.ksh | 51 for ds in $TESTPOOL/fs $TESTPOOL/fs-rename $TESTPOOL/fs-clone; do 66 -o groupquota@$QGROUP=$GQUOTA_SIZE $TESTPOOL/fs 68 log_must $ZFS snapshot $TESTPOOL/fs@snap 72 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs@snap "$UQUOTA_SIZE" 73 log_must check_quota "groupquota@$QGROUP" $TESTPOOL/fs@snap "$GQUOTA_SIZE" 79 $TESTPOOL/fs@snap $TESTPOOL/fs-clone 84 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs-clone "$UQUOTA_SIZE" 85 log_must check_quota "groupquota@$QGROUP" $TESTPOOL/fs-clone "$GQUOTA_SIZE" 91 log_must $ZFS promote $TESTPOOL/fs-clone 96 log_must check_quota "userquota@$QUSER1" $TESTPOOL/fs-clone "$UQUOTA_SIZE" [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/ |
H A D | zfs_mount.kshlib | 48 typeset fs=${3##/} 53 if [[ -z $pool || -z $fs || -z $mntpoint ]]; then 54 log_note "Missing parameter: (\"$pool\", \"$fs\", \"$mntpoint\")" 74 datasetexists $pool/$fs && \ 75 log_must cleanup_filesystem $pool $fs 83 'ctr') log_must $ZFS create $pool/$fs 84 log_must $ZFS set mountpoint=$mntpoint $pool/$fs 86 'vol') log_must $ZFS create -V $VOLSIZE $pool/$fs 88 *) log_must $ZFS create $pool/$fs 89 log_must $ZFS set mountpoint=$mntpoint $pool/$fs [all …]
|
H A D | zfs_mount_007_pos.ksh | 71 typeset fs=$1 95 val=$(get_prop $prop $fs) || log_fail "get_prop $prop $fs" 105 fs=$TESTPOOL/$TESTFS 109 orig_val=$(get_prop $property $fs) 110 (($? != 0)) && log_fail "get_prop $property $fs" 113 reverse_opt=$(get_reverse_option $fs $property) 114 log_must $ZFS mount -o remount,$reverse_opt $fs 116 cur_val=$(get_prop $property $fs) 117 (($? != 0)) && log_fail "get_prop $property $fs" 131 log_must $ZFS unmount $fs [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs/ |
H A D | zfs_002_pos.ksh | 54 for ds in $fs1 $fs $ctr; do 75 fs=$ctr/$TESTFS 77 snap=$fs@$TESTSNAP 81 typeset cmds=("create $fs" "list $fs" "snapshot $snap" "set snapdir=hidden $fs" \ 82 "get snapdir $fs" "rollback $snap" "inherit snapdir $fs" \ 83 "rename $fs $fs-new" "rename $fs-new $fs" "unmount $fs" \ 84 "mount $fs" "share $fs" "unshare $fs" "send $snap \>$streamf" \ 86 "promote $fs" "destroy -rRf $fs")
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass5.c | 50 struct fs *fs = &sblock; in pass5() local 68 newcg->cg_niblk = fs->fs_ipg; in pass5() 70 if (fs->fs_postblformat != FS_DYNAMICPOSTBLFMT) { in pass5() 72 fs->fs_postblformat); in pass5() 93 newcg->cg_boff = newcg->cg_btotoff + fs->fs_cpg * sizeof (daddr32_t); in pass5() 95 fs->fs_cpg * fs->fs_nrpos * sizeof (uint16_t); in pass5() 98 inomapsize = howmany(fs->fs_ipg, NBBY); in pass5() 100 blkmapsize = howmany(fs->fs_fpg, NBBY); in pass5() 119 j = blknum(fs, (uint64_t)fs->fs_size + fs->fs_frag - 1); in pass5() 120 for (i = fs->fs_size; i < j; i++) in pass5() [all …]
|
/titanic_41/usr/src/uts/sparc/udfs/ |
H A D | Makefile | 68 LDFLAGS += -dy -N fs/specfs 109 -cstyle -p ../../common/fs/udfs/udf_alloc.c 110 -cstyle -p ../../common/fs/udfs/udf_bmap.c 111 -cstyle -p ../../common/fs/udfs/udf_dir.c 112 -cstyle -p ../../common/fs/udfs/udf_inode.c 113 -cstyle -p ../../common/fs/udfs/udf_subr.c 114 -cstyle -p ../../common/fs/udfs/udf_vfsops.c 115 -cstyle -p ../../common/fs/udfs/udf_vnops.c 116 -keywords ../../common/fs/udfs/udf_alloc.c 117 -keywords ../../common/fs/udfs/udf_bmap.c [all …]
|
/titanic_41/usr/src/pkg/manifests/ |
H A D | system-kernel.man7fs.inc | 17 file path=usr/share/man/man7fs/ctfs.7fs 18 file path=usr/share/man/man7fs/dcfs.7fs 19 file path=usr/share/man/man7fs/dev.7fs 20 file path=usr/share/man/man7fs/devfs.7fs 21 file path=usr/share/man/man7fs/fd.7fs 22 file path=usr/share/man/man7fs/hsfs.7fs 23 file path=usr/share/man/man7fs/lofs.7fs 24 file path=usr/share/man/man7fs/objfs.7fs 25 file path=usr/share/man/man7fs/sharefs.7fs 26 file path=usr/share/man/man7fs/tmpfs.7fs [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_006_neg.ksh | 50 if datasetexists $fs ; then 51 log_must $ZFS destroy -rf $fs 53 log_must $ZFS create $fs 61 fs=$TESTPOOL/$TESTFS; snap1=$fs@snap1; snap2=$fs@snap2 62 log_must $ZFS set sharenfs=on $fs 70 log_must $ZFS list $fs > /dev/null 71 log_must $ZFS get mountpoint $fs > /dev/null 72 log_must $ZFS unmount $fs 73 log_must $ZFS mount $fs 74 log_must $ZFS share $fs [all …]
|
/titanic_41/usr/src/cmd/fm/dicts/ |
H A D | ZFS.dict | 31 ereport.fs.zfs.pool.corrupt_cache=1 32 ereport.fs.zfs.device.missing_r=2 33 ereport.fs.zfs.device.missing_nr=3 34 ereport.fs.zfs.device.corrupt_label_r=4 35 ereport.fs.zfs.device.corrupt_label_nr=5 36 ereport.fs.zfs.pool.bad_guid_sum=6 37 ereport.fs.zfs.pool.corrupt_pool=7 38 ereport.fs.zfs.object.corrupt_data=8 39 ereport.fs.zfs.device.failing=9 40 ereport.fs.zfs.device.version_mismatch=10 [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/fsdb/ |
H A D | fsdb.c | 92 #define cg_blks(fs, cgp, cylno) (((cgp))->cg_b[cylno]) argument 140 #define SB (sizeof (struct fs)) 141 #define BLKSIZE (fs->fs_bsize) /* for clarity */ 142 #define FRGSIZE (fs->fs_fsize) 143 #define BLKSHIFT (fs->fs_bshift) 144 #define FRGSHIFT (fs->fs_fshift) 150 #define itob(i) (((u_offset_t)itod(fs, (i)) << \ 151 (u_offset_t)FRGSHIFT) + (u_offset_t)itoo(fs, (i)) * (u_offset_t)INODE) 209 struct fs *fs; variable 211 struct fs un_filesystem; [all …]
|
/titanic_41/usr/src/lib/libc/amd64/sys/ |
H A D | vforkx.s | 82 movl %fs:UL_SIGMASK+12, %r8d /* reinstate signals */ 83 movl %fs:UL_SIGMASK+8, %ecx 84 movl %fs:UL_SIGMASK+4, %edx 85 movl %fs:UL_SIGMASK, %esi 102 movl %fs:UL_VFORK, %edx 109 movl %fs:UL_VFORK, %edx 112 movl %edx, %fs:UL_VFORK 118 movq %rdx, %fs:UL_SCHEDCTL 119 movq %rdx, %fs:UL_SCHEDCTL_CALLED 122 movl %fs:UL_SIGMASK+12, %r8d /* reinstate signals */ [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/mount/ |
H A D | umountall_001.ksh | 36 for fs in 1 2 3 ; do 37 log_must mounted $TESTPOOL/$TESTFS.$fs 46 for fs in $($MOUNT -p | $AWK '{if ($4 == "zfs") print $3}'); do 47 zfs_list="$zfs_list $fs" 50 fs='' 51 for fs in $($UMOUNTALL -n -F zfs 2>&1 | $AWK '{print $2}'); do 53 [[ $fs = $i ]] && continue 2 55 log_fail "umountall -n -F zfs tried to unmount $fs" 57 [[ -n $fs ]] || log_fail "umountall -n -F zfs produced no output"
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | rsend_012_pos.ksh | 130 for fs in "$POOL" "$POOL/pclone" "$POOL/$FS" "$POOL/$FS/fs1" \ 132 rand_set_prop $fs aclinherit "discard" "noallow" "secure" "passthrough" 133 rand_set_prop $fs checksum "on" "off" "fletcher2" "fletcher4" "sha256" 134 rand_set_prop $fs aclmode "discard" "groupmask" "passthrough" 135 rand_set_prop $fs atime "on" "off" 136 rand_set_prop $fs checksum "on" "off" "fletcher2" "fletcher4" "sha256" 137 rand_set_prop $fs compression "on" "off" "lzjb" "gzip" \ 140 rand_set_prop $fs copies "1" "2" "3" 141 rand_set_prop $fs devices "on" "off" 142 rand_set_prop $fs exec "on" "off" [all …]
|