From 69549be4967bb63c06bc66c42e206b60a7358aea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Pierre=20Andr=C3=A9?= Date: Thu, 20 Oct 2011 18:51:15 +0200 Subject: [PATCH] fix : fed in the available space in ntfscp --- ntfsprogs/ntfscp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ntfsprogs/ntfscp.c b/ntfsprogs/ntfscp.c index 2f99b075..77aab8ea 100644 --- a/ntfsprogs/ntfscp.c +++ b/ntfsprogs/ntfscp.c @@ -360,6 +360,10 @@ int main(int argc, char *argv[]) goto umount; NVolSetCompression(vol); /* allow compression */ + if (ntfs_volume_get_free_space(vol)) { + ntfs_log_perror("ERROR: couldn't get free space"); + goto umount; + } { struct stat fst; -- 2.11.0