ntfsclone: Allow metadata cloning to block devices when --force option

is supplied. (Anton)
This commit is contained in:
Anton Altaparmakov 2007-10-26 11:28:51 +01:00
parent ae0f9e8053
commit fb4a13008e
2 changed files with 12 additions and 2 deletions

View File

@ -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.

View File

@ -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.");
}
}
}