mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 18:14:24 +08:00
ntfsclone: Allow metadata cloning to block devices when --force option
is supplied. (Anton)
This commit is contained in:
parent
ae0f9e8053
commit
fb4a13008e
@ -6,6 +6,8 @@ xx/xx/2007 - 2.0.1
|
||||
ntfsmount. (Yura, reported by Andrey Rahmatullin)
|
||||
- ntfsck: Use ntfs_pread instead ops->pread. (Yura, reported by
|
||||
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
|
||||
encrypted files and ntfsresize supports Vista.
|
||||
|
@ -420,9 +420,17 @@ static void parse_options(int argc, char **argv)
|
||||
|
||||
if (S_ISBLK(st.st_mode)) {
|
||||
opt.blkdev_out = 1;
|
||||
if (opt.metadata)
|
||||
if (opt.metadata && !opt.force)
|
||||
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
Block a user