Home
last modified time | relevance | path

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

12

/onnv-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;
/onnv-gate/usr/src/cmd/boot/installboot/
H A Dinstallboot.c112 bblock->file_size = sb.st_size; in read_bootblock_from_file()
113 BOOT_DEBUG("bootblock file size is %x\n", bblock->file_size); in read_bootblock_from_file()
117 buf_size = P2ROUNDUP(bblock->file_size, SECTOR_SIZE); in read_bootblock_from_file()
123 buf_size = P2ROUNDUP(bblock->file_size + SECTOR_SIZE, in read_bootblock_from_file()
144 if (read(fd, bblock->file, bblock->file_size) != bblock->file_size) { in read_bootblock_from_file()
161 P2ROUNDUP(bblock->file_size, 8)); in read_bootblock_from_file()
217 bblock->file_size = size; in read_bootblock_from_disk()
303 bblock_hs.src_size = bblock_file->file_size; in is_update_necessary()
324 hs.src_size = bblock->file_size; in add_bootblock_einfo()
326 avail_space = bblock->buf_size - P2ROUNDUP(bblock->file_size, 8); in add_bootblock_einfo()
[all …]
H A Dinstallboot.h54 uint32_t file_size; member
/onnv-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c419 size = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8); in handle_getinfo()
590 buf_size = src_stage2->file_size + SECTOR_SIZE; in propagate_bootblock()
599 dest_stage2->file_size = src_stage2->file_size; in propagate_bootblock()
600 memcpy(dest_stage2->file, src_stage2->file, dest_stage2->file_size); in propagate_bootblock()
602 P2ROUNDUP(dest_stage2->file_size, 8); in propagate_bootblock()
908 mboot->load_end_addr = stage2->file_size; in prepare_fake_multiboot()
921 hs.src_size = stage2->file_size; in add_stage2_einfo()
923 avail_space = stage2->buf_size - P2ROUNDUP(stage2->file_size, 8); in add_stage2_einfo()
1057 stage2->file_size = sb.st_size; in read_stage2_from_file()
1065 buf_size = stage2->file_size + SECTOR_SIZE; in read_stage2_from_file()
[all …]
H A Dinstallgrub.h55 uint32_t file_size; member
/onnv-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_restore_writer.c267 long file_size; /* size of file to restore */ in tar_getdir() local
400 file_size = size_left; in tar_getdir()
484 file_size = oct_atoi(tar_hdr->th_size); in tar_getdir()
702 size_left = restore_file(&fp, nmp, file_size, in tar_getdir()
755 job_stats->js_bytes_total += file_size; in tar_getdir()
759 huge_size -= file_size; in tar_getdir()
800 file_name, file_size, acls, local_commands, in tar_getdir()
895 file_size = min(file_size, in tar_getdir()
897 file_size = max(0, file_size); in tar_getdir()
898 size_left = get_long_name(lib, drv, file_size, longlink, in tar_getdir()
[all …]
H A Dtlm_backup_reader.c198 output_humongus_header(char *fullname, longlong_t file_size, in output_humongus_header() argument
228 (void) snprintf(buf, len, "%lld %s", file_size, fullname); in output_humongus_header()
853 longlong_t file_size; /* real size of this file */ in tlm_output_file() local
892 file_size = tlm_readlink(fullname, snapname, linkname, in tlm_output_file()
894 if (file_size < 0) { in tlm_output_file()
962 file_size = real_size; in tlm_output_file()
963 if (file_size > TLM_MAX_TAR_IMAGE) { in tlm_output_file()
964 if (output_humongus_header(fullname, file_size, in tlm_output_file()
980 file_size = 0; in tlm_output_file()
985 if (file_size == 0) { in tlm_output_file()
[all …]
/onnv-gate/usr/src/lib/libntfs/common/libntfs/
H A Dlogfile.c162 u64 file_size; in ntfs_check_restart_area() local
175 if (ra_ofs + offsetof(RESTART_AREA, file_size) > in ntfs_check_restart_area()
232 file_size = (u64)sle64_to_cpu(ra->file_size); in ntfs_check_restart_area()
234 while (file_size) { in ntfs_check_restart_area()
235 file_size >>= 1; in ntfs_check_restart_area()
/onnv-gate/usr/src/lib/libtnf/
H A Dreader.c67 tnf->file_size = size; in tnf_reader_begin()
109 tnf->file_size = tmpsz; in tnf_reader_begin()
H A Dlibtnf.h136 size_t file_size; member
/onnv-gate/usr/src/lib/libpp/common/
H A Dppinput.c471 unsigned long file_size; in ppload() local
491 file_size = pp.member->size; in ppload()
507 file_size = sfseek(sp, 0L, SEEK_END); in ppload()
511 file_size = pp.in->buflen; in ppload()
512 …if (!(sp = sfnew(NiL, pp.in->buffer + ((pp.in->flags & IN_static) ? 0 : PPBAKSIZ), file_size, -1, … in ppload()
523 p = file_offset + file_size - 22; in ppload()
/onnv-gate/usr/src/cmd/mail/
H A Dprintmail.c108 file_size = stbufp->st_size; in printmail()
215 if (stbufp->st_size != file_size) { in printmail()
226 file_size = stbufp->st_size; in printmail()
H A Dinit.c84 int file_size; variable
H A Dmail.h370 extern int file_size;
/onnv-gate/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c797 off_t file_size, ret; in remap_shared_buf() local
815 file_size = lseek(fd, 0, SEEK_END); in remap_shared_buf()
816 if (file_size == -1) { in remap_shared_buf()
837 file_size = 0; in remap_shared_buf()
845 while (file_size < shared_bufsize) { in remap_shared_buf()
852 file_size += buf_size; in remap_shared_buf()
/onnv-gate/usr/src/lib/print/libpapi-ipp/common/
H A Dpapi_impl.h92 papi_attribute_t **request, ssize_t file_size);
H A Dipp-support.c352 ssize_t file_size) in ipp_send_initial_request_block() argument
369 sprintf(length, "%lu", (unsigned long)(file_size + chunk_size)); in ipp_send_initial_request_block()
/onnv-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()
/onnv-gate/usr/src/uts/common/fs/sockfs/
H A Dnl7c.c637 static int file_size = 1000000; variable
768 file_size = sz; in ncalogdconf_read()
856 if (! nl7c_logd_init(file_size, fnv)) { in nl7clogd_startup()
/onnv-gate/usr/src/lib/libntfs/common/include/ntfs/
H A Dlogfile.h236 /* 24*/ sle64 file_size; /* Usable byte size of the log file. If the member
/onnv-gate/usr/src/cmd/more/
H A Dmore.c155 off_t file_pos, file_size; variable
378 if ((noscroll || clearit) && (file_size != LLONG_MAX)) in main()
484 if ((file_size = (off_t)stbuf.st_size) == 0) in checkf()
485 file_size = LLONG_MAX; in checkf()
684 promptlen += printf ("(%d%%)", (int)((file_pos * 100) / file_size)); in prompt()
/onnv-gate/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c341 int file_size; in tnfw_b_init_buffer() local
384 file_size = blocks * block_size; in tnfw_b_init_buffer()
386 while (b < file_size) { in tnfw_b_init_buffer()
/onnv-gate/usr/src/cmd/nscd/
H A Dcache.h287 off_t file_size; /* file size at last check */ member
H A Dcache.c1317 ctx->file_size = buf.st_size; in check_db_file()
1322 ctx->file_size != buf.st_size || in check_db_file()
1326 ctx->file_size != buf.st_size || in check_db_file()
1330 ctx->file_size = buf.st_size; in check_db_file()
/onnv-gate/usr/src/uts/common/fs/hsfs/
H A Dhsfs_vnops.c1731 offset_t file_size = VTOH(vp)->hs_dirent.ext_size; in hsfs_putpage() local
1734 file_size = (file_size + PAGESIZE - 1) & PAGEMASK; in hsfs_putpage()
1735 if (end_off > file_size) in hsfs_putpage()
1736 end_off = file_size; in hsfs_putpage()

12