diff --git a/ChangeLog b/ChangeLog index e9446cbb..f7791c20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -93,6 +93,8 @@ xx/xx/2006 - x.xx.x - . - Raise FUSE dependence to 2.6.1 (the most stable and featured ATM), rename --enable-fuse-module to more clear --enable-ntfsmount and cleanup autotools scripts a bit. + - ntfsclone: don't check free space if output file is FIFO (Andree + Leidenfrost) 21/06/2006 - 1.13.1 - Various fixes. diff --git a/ntfsprogs/ntfsclone.c b/ntfsprogs/ntfsclone.c index 54d3a5e0..82044e5b 100644 --- a/ntfsprogs/ntfsclone.c +++ b/ntfsprogs/ntfsclone.c @@ -1717,6 +1717,7 @@ static void check_dest_free_space(u64 src_bytes) { u64 dest_bytes; struct statvfs stvfs; + struct stat stat; if (opt.metadata || opt.blkdev_out || opt.std_out) return; @@ -1729,6 +1730,13 @@ static void check_dest_free_space(u64 src_bytes) strerror(errno)); return; } + + /* If file is a FIFO then there is no point in checking the size. */ + if (!fstat(fd_out, &stat)) { + if (S_ISFIFO(stat.st_mode)) + return; + } else + Printf("WARNING: fstat failed: %s\n", strerror(errno)); dest_bytes = (u64)stvfs.f_frsize * stvfs.f_bfree; if (!dest_bytes)