• Home
  • Raw
  • Download

Lines Matching refs:csize

735 static void read_rescue(void *fd, char *buff, u32 csize, u32 bytes_per_sector,  argument
740 if (read_all(fd, buff, csize) == -1) {
747 rescue_pos = (off_t)(rescue_lcn * csize);
748 for (i = 0; i < csize; i += bytes_per_sector)
762 s32 csize = le32_to_cpu(image_hdr.cluster_size); local
771 csize = vol->cluster_size;
776 rescue_pos = (off_t)(rescue_lcn * csize);
777 buff = (char*)ntfs_malloc(csize);
782 backup_bootsector = (lcn + 1)*csize >= full_device_size;
784 csize = full_device_size - lcn*csize;
785 if (csize < 0) {
791 if (read_all(fd, buff, csize) == -1) {
801 for (i = 0; i < csize; i += bytes_per_sector)
823 if ((bytes_per_sector > csize)
828 + csize - bytes_per_sector);
851 && (write_all(&fd_out, buff, csize) == -1)) {
943 u32 csize = vol->cluster_size; local
956 buf = ntfs_calloc(csize);
991 if (write_all(&fd_out, buf, csize) == -1)
999 static void write_empty_clusters(s32 csize, s64 count, argument
1005 buff = (char*)ntfs_malloc(csize);
1009 memset(buff, 0, csize);
1012 if (write_all(&fd_out, buff, csize) == -1)
1022 s32 csize = le32_to_cpu(image_hdr.cluster_size); local
1072 write_empty_clusters(csize, count,
1083 && (lseek_out(fd_out, count * csize,
1472 static void write_set(char *buff, u32 csize, s64 *current_lcn, argument
1484 || (write_all(&fd_out, &buff[k*csize], csize) == -1))
1509 u32 csize; local
1522 csize = image->ni->vol->cluster_size;
1530 if (csize >= mft_record_size) {
1531 records_per_set = csize/mft_record_size;
1533 buff_size = csize;
1535 clusters_per_set = mft_record_size/csize;
1550 read_rescue(fd, &buff[k*csize], csize, bytes_per_sector,
1565 write_set(buff, csize, &current_lcn,
1591 u32 csize; local
1603 csize = image->ni->vol->cluster_size;
1612 if (csize >= indx_record_size) {
1613 records_per_set = csize/indx_record_size;
1615 buff_size = csize;
1617 clusters_per_set = indx_record_size/csize;
1631 read_rescue(fd, &buff[k*csize], csize, bytes_per_sector,
1647 write_set(buff, csize, &current_lcn,