ntfsclone: Allow metadata cloning to block devices when --force option
is supplied. (Anton)edge.strict_endians
parent
ae0f9e8053
commit
fb4a13008e
|
@ -6,6 +6,8 @@ xx/xx/2007 - 2.0.1
|
||||||
ntfsmount. (Yura, reported by Andrey Rahmatullin)
|
ntfsmount. (Yura, reported by Andrey Rahmatullin)
|
||||||
- ntfsck: Use ntfs_pread instead ops->pread. (Yura, reported by
|
- ntfsck: Use ntfs_pread instead ops->pread. (Yura, reported by
|
||||||
Christophe GRENIER)
|
Christophe GRENIER)
|
||||||
|
- ntfsclone: Allow metadata cloning to block devices when --force
|
||||||
|
option is supplied. (Anton)
|
||||||
|
|
||||||
28/09/2007 - 2.0.0 - ntfsmount sports full read/write, libntfs can read
|
28/09/2007 - 2.0.0 - ntfsmount sports full read/write, libntfs can read
|
||||||
encrypted files and ntfsresize supports Vista.
|
encrypted files and ntfsresize supports Vista.
|
||||||
|
|
|
@ -420,9 +420,17 @@ static void parse_options(int argc, char **argv)
|
||||||
|
|
||||||
if (S_ISBLK(st.st_mode)) {
|
if (S_ISBLK(st.st_mode)) {
|
||||||
opt.blkdev_out = 1;
|
opt.blkdev_out = 1;
|
||||||
if (opt.metadata)
|
if (opt.metadata && !opt.force)
|
||||||
err_exit("Cloning only metadata to a "
|
err_exit("Cloning only metadata to a "
|
||||||
"block device isn't supported!\n");
|
"block device does not usually "
|
||||||
|
"make sense, aborting...\n"
|
||||||
|
"If you were instructed to do "
|
||||||
|
"this by a developer and/or are "
|
||||||
|
"sure that this is what you want "
|
||||||
|
"to do, run this utility again "
|
||||||
|
"but this time add the force "
|
||||||
|
"option, i.e. add '--force' to "
|
||||||
|
"the command line arguments.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue