Avoided displaying sync errors in ntfscp with --no-action

Do not loop on displaying errors when nothing is to be done
edge.strict_endians
Jean-Pierre André 2014-03-11 09:19:06 +01:00
parent fb4a2a6292
commit 8520af7f7d
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ int main(int argc, char *argv[])
close_attr:
ntfs_attr_close(na);
close_dst:
while (ntfs_inode_close(out)) {
while (ntfs_inode_close(out) && !opts.noaction) {
if (errno != EBUSY) {
ntfs_log_error("Sync failed. Run chkdsk.\n");
break;