diff --git a/ChangeLog b/ChangeLog index f8104354..0aeab41e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -54,10 +54,10 @@ xx/xx/2005 - 1.12.2-WIP - Fix comment formats. (Yuval) - ntfsinfo and ntfsls follow the convention how other utilities read the device argument: no -d or --device option is needed. (Szaka) - - ntfsinfo: figure out and dump index attribute types. (Szaka) - - ntfsinfo: dump index attribute keys. (Szaka) - - mkntfs: don't fill the last $MFT cluster with empty MFT records. - This is needed to conform to Windows' format behavior. (Szaka) + - ntfsinfo: dump index attribute types and keys. (Szaka) + - mkntfs: don't fill the last $MFT cluster with empty MFT records if + the cluster size <= 16 kB. This is needed to conform to Windows' + format behavior. (Szaka) - Add @flags field to struct ntfs_inode. Remove NIno{Sparse,Compressed, Encrypted}, update all users to use @(ntfs_inode)->flags. (Yura) - Make @(ntfs_inode)->data_size and @(ntfs_inode)->allocated_size to @@ -68,7 +68,7 @@ xx/xx/2005 - 1.12.2-WIP handle them. (Yura) - Fix allocated data size for resident attributes. (Yura) - ntfsclone: check available free space on the destination before - starting to clone or restore. (Szaka) + starting to clone, image or restore. (Szaka) - Change @type parameter for ntfs_create() to be dev_t rather than internal NTFS_DT_* constants. (Yura) - New APIs (dir.[ch]): diff --git a/ntfsprogs/ntfsclone.c b/ntfsprogs/ntfsclone.c index 6a0790c2..fd3b90ef 100644 --- a/ntfsprogs/ntfsclone.c +++ b/ntfsprogs/ntfsclone.c @@ -1449,9 +1449,12 @@ static void check_dest_free_space(u64 src_bytes) u64 dest_bytes; struct statvfs stvfs; - if (opt.save_image || opt.metadata || opt.blkdev_out || opt.std_out) + if (opt.metadata || opt.blkdev_out || opt.std_out) return; - + /* + * TODO: save_image needs a bit more space than src_bytes + * due to the free space encoding overhead. + */ if (fstatvfs(fd_out, &stvfs) == -1) { Printf("WARNING: Unknown free space on the destination: %s\n", strerror(errno));