]> Dogcows Code - chaz/tar/commitdiff
(sparse_dump_region): Call mv_size_left.
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 10 Nov 2005 12:59:13 +0000 (12:59 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 10 Nov 2005 12:59:13 +0000 (12:59 +0000)
(sparse_dump_file): Enclose the loop in mv_begin/mv_end.

src/sparse.c

index 011fccd16b64c6c5eddc3fbb9c8f64a0c38193bd..30bf03157c962c09f51fc8b8be07eb6f287e1000 100644 (file)
@@ -324,6 +324,7 @@ sparse_dump_region (struct tar_sparse_file *file, size_t i)
       memset (blk->buffer + bytes_read, 0, BLOCKSIZE - bytes_read);
       bytes_left -= bytes_read;
       file->dumped_size += bytes_read;
+      mv_size_left (file->stat_info->archive_file_size - file->dumped_size);
       set_next_block_after (blk);
     }
 
@@ -397,8 +398,10 @@ sparse_dump_file (int fd, struct tar_stat_info *st)
        {
          size_t i;
 
+         mv_begin (file.stat_info);
          for (i = 0; rc && i < file.stat_info->sparse_map_avail; i++)
            rc = tar_sparse_dump_region (&file, i);
+         mv_end ();
        }
     }
 
This page took 0.023718 seconds and 4 git commands to generate.