Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dmkbimage285 file_size=`$decompress $tarfile | wc -c | tr -d ' '`
286 file_size=$(($file_size / $block_size + 1))
290 file_size=$(($file_size + $file_size / 10))
299 cylinders=$(($file_size / $cyl_size + 2));;
300 1.20) [ $file_size -ge $bk_120 ] && error wont_fit;
305 1.44) [ $file_size -ge $bk_144 ] && error wont_fit;
310 1.60) [ $file_size -ge $bk_160 ] && error wont_fit;
316 1.68) [ $file_size -ge $bk_168 ] && error wont_fit;
321 1.74) [ $file_size -ge $bk_174 ] && error wont_fit;
326 2.88) [ $file_size -ge $bk_288 ] && error wont_fit;
/illumos-gate/usr/src/test/zfs-tests/tests/functional/quota/
H A Dquota.kshlib59 typeset -i file_size=`ls -ls $MNTPT/$TESTFILE1 | awk '{ print $1 }'`
61 (( file_size = file_size * 512 ))
63 (( file_size > limit )) && \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/userquota/
H A Duserquota_004_pos.ksh57 typeset file_size='100m'
67 log_must user_run $QUSER1 mkfile $file_size $QFILE
74 if [[ "$(($user_used/1024/1024))m" != "$file_size" ]]; then
76 log_fail "userused for user $QUSER1 expected to be $file_size, " \
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.c113 bblock->file_size = sb.st_size; in read_bootblock_from_file()
145 if (read(fd, bblock->file, bblock->file_size) != bblock->file_size) { in read_bootblock_from_file()
162 P2ROUNDUP(bblock->file_size, 8)); in read_bootblock_from_file()
218 bblock->file_size = size; in read_bootblock_from_disk()
306 bblock_hs.src_size = bblock_file->file_size; in is_update_necessary()
327 hs.src_size = bblock->file_size; in add_bootblock_einfo()
369 mboot->load_end_addr = bblock->file_size; in prepare_bootblock()
539 buf_size = src_bblock->file_size + SECTOR_SIZE; in propagate_bootblock()
548 dest_bblock->file_size = src_bblock->file_size; in propagate_bootblock()
550 dest_bblock->file_size); in propagate_bootblock()
[all …]
H A Dinstallboot.h55 uint32_t file_size; member
/illumos-gate/usr/src/test/zfs-tests/tests/functional/projectquota/
H A Dprojectquota_003_pos.ksh55 typeset file_size='10m'
65 log_must user_run $PUSER mkfile $file_size $PRJDIR/qf
69 if [[ "$(($project_used/1024/1024))m" != "$file_size" ]]; then
71 log_fail "projectused for project $PRJID1 expected to be $file_size, " \
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c602 buf_size = src_stage2->file_size + SECTOR_SIZE; in propagate_bootblock()
611 dest_stage2->file_size = src_stage2->file_size; in propagate_bootblock()
614 P2ROUNDUP(dest_stage2->file_size, 8); in propagate_bootblock()
959 mboot->load_end_addr = stage2->file_size; in prepare_fake_multiboot()
972 hs.src_size = stage2->file_size; in add_stage2_einfo()
1118 stage2->file_size = sb.st_size; in read_stage2_from_file()
1126 buf_size = stage2->file_size + SECTOR_SIZE; in read_stage2_from_file()
1129 buf_size = stage2->file_size; in read_stage2_from_file()
1157 if (read(fd, stage2->file, stage2->file_size) < 0) { in read_stage2_from_file()
1281 stage2->file_size = size; in read_stage2_from_disk()
[all …]
H A Dinstallgrub.h56 uint32_t file_size; member
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_restore_writer.c397 file_size = size_left; in tar_getdir()
702 rv = restore_file(&fp, nmp, file_size, in tar_getdir()
760 huge_size -= file_size; in tar_getdir()
916 file_size = min(file_size, in tar_getdir()
918 file_size = max(0, file_size); in tar_getdir()
925 file_size, size_left, lnk_end); in tar_getdir()
928 file_size = min(file_size, in tar_getdir()
930 file_size = max(0, file_size); in tar_getdir()
937 file_size, size_left, nm_end); in tar_getdir()
1992 long file_size, in load_acl_info() argument
[all …]
H A Dtlm_backup_reader.c229 (void) snprintf(buf, len, "%lld %s", file_size, fullname); in output_humongus_header()
854 longlong_t file_size; /* real size of this file */ in tlm_output_file() local
895 if (file_size < 0) { in tlm_output_file()
963 file_size = real_size; in tlm_output_file()
964 if (file_size > TLM_MAX_TAR_IMAGE) { in tlm_output_file()
965 if (output_humongus_header(fullname, file_size, in tlm_output_file()
981 file_size = 0; in tlm_output_file()
986 if (file_size == 0) { in tlm_output_file()
998 while (file_size > 0) { in tlm_output_file()
999 int section_size = llmin(file_size, in tlm_output_file()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/mkholes/
H A Dmkholes.c87 static off_t file_size = 0; in push_segment() local
100 if (file_size >= off + len) in push_segment()
102 file_size = off + len; in push_segment()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/removal/
H A Dremoval.kshlib102 typeset file_size=$(stat -c%s $file 2>/dev/null)
103 typeset nblocks=$((file_size / block_size))
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend.kshlib472 file_size=$((($RANDOM * $RANDOM % ($maxsize - 1)) + 1))
502 bs=$file_size count=1 >/dev/null 2>&1 || \
505 truncate -s $file_size $file_name || \
516 file_size=$((($RANDOM % 64) + 1))
520 bs=$file_size count=1 >/dev/null 2>&1 || \
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppinput.c466 unsigned long file_size; in ppload() local
486 file_size = pp.member->size; in ppload()
502 file_size = sfseek(sp, 0L, SEEK_END); in ppload()
506 file_size = pp.in->buflen; in ppload()
507 …if (!(sp = sfnew(NiL, pp.in->buffer + ((pp.in->flags & IN_static) ? 0 : PPBAKSIZ), file_size, -1, … in ppload()
518 p = file_offset + file_size - 22; in ppload()
/illumos-gate/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c787 off_t file_size, ret; in remap_shared_buf() local
805 file_size = lseek(fd, 0, SEEK_END); in remap_shared_buf()
806 if (file_size == -1) { in remap_shared_buf()
827 file_size = 0; in remap_shared_buf()
835 while (file_size < shared_bufsize) { in remap_shared_buf()
842 file_size += buf_size; in remap_shared_buf()
/illumos-gate/usr/src/cmd/mail/
H A Dprintmail.c106 file_size = stbufp->st_size; in printmail()
213 if (stbufp->st_size != file_size) { in printmail()
224 file_size = stbufp->st_size; in printmail()
H A Dinit.c82 int file_size; variable
/illumos-gate/usr/src/test/smbclient-tests/include/
H A Dutils_common.ksh105 file_size() { function
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_006_pos.ksh78 typeset file_size=$2
82 typeset file_diff=$(echo "$file_size - $estimate_size" | bc)
/illumos-gate/usr/src/test/smbclient-tests/tests/smbfs/create/
H A Dtp_create_004.ksh74 size=$(file_size $TMNT/file50000)
H A Dtp_create_003.ksh81 size=$(file_size $TMNT/file30)
H A Dtp_create_009.ksh76 size=$(file_size $TMNT/file)
/illumos-gate/usr/src/lib/print/libpapi-ipp/common/
H A Dpapi_impl.h90 papi_attribute_t **request, ssize_t file_size);
/illumos-gate/usr/src/cmd/boot/installboot/i386/
H A Dinstallboot.h93 uint32_t file_size; member
/illumos-gate/usr/src/cmd/luxadm/
H A Dqlgcupdate.c580 static int file_size; in q_findSbusfile() local
592 file_size = statinfo.st_size; in q_findSbusfile()
594 if ((sbus_info = (char *)malloc(file_size)) == NULL) { in q_findSbusfile()
600 if (read(fd, sbus_info, file_size) < 0) { in q_findSbusfile()
610 file_size, strlen(qlgc2200Sbus))) != -1) { in q_findSbusfile()

12