22 lines
913 B
Plaintext
22 lines
913 B
Plaintext
$OpenBSD: patch-ntfsprogs_ntfsclone_c,v 1.2 2014/04/30 23:07:25 pirofti Exp $
|
|
--- ntfsprogs/ntfsclone.c.orig Sat Feb 15 16:07:52 2014
|
|
+++ ntfsprogs/ntfsclone.c Tue Apr 29 11:29:37 2014
|
|
@@ -818,7 +818,7 @@ static void copy_cluster(int rescue, u64 rescue_lcn, u
|
|
#ifndef NO_STATFS
|
|
int err = errno;
|
|
perr_printf("Write failed");
|
|
- if (err == EIO && opt.stfs.f_type == 0x517b)
|
|
+ if (err == EIO && opt.stfs.f_fstypename == 0x517b)
|
|
Printf("Apparently you tried to clone to a remote "
|
|
"Windows computer but they don't\nhave "
|
|
"efficient sparse file handling by default. "
|
|
@@ -2238,7 +2238,7 @@ static void set_filesize(s64 filesize)
|
|
Printf("WARNING: Couldn't get filesystem type: "
|
|
"%s\n", strerror(errno));
|
|
else
|
|
- fs_type = opt.stfs.f_type;
|
|
+ fs_type = opt.stfs.f_fstypename;
|
|
|
|
if (fs_type == 0x52654973)
|
|
Printf("WARNING: You're using ReiserFS, it has very poor "
|