X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfc_error.c;h=e1793fe0b5ed6e540886334bcb3a3e3272a10ff2;hb=a7a8ae5408eed270854e69adf40ccaf3a401f830;hp=048c0bb480a17e618f0161cf88426e090d234150;hpb=add1a38544028f7f763b0ccf9ac354e8b45bec23;p=tfcrypt.git diff --git a/tfc_error.c b/tfc_error.c index 048c0bb..e1793fe 100644 --- a/tfc_error.c +++ b/tfc_error.c @@ -212,9 +212,13 @@ void usage(void) tfc_say(" cont: print error if not quiet, then continue,"); tfc_say(" no action to pad missing data is attempted."); tfc_say(" may be dangerous when working with block devices."); - tfc_say(" sync: print error if not quiet, then continue."); + tfc_say(" sync: print error if not quiet, then continue,"); tfc_say(" pad missing data block with zeroes."); - tfc_say(" note that sync works only with read errors!"); + tfc_say(" lsync: same as sync, but does not use SEEK_SET logic,"); + tfc_say(" lsync uses only relative seek operations, and does not prequery"); + tfc_say(" the current file position for exact offsets, which maybe unsafe."); + tfc_say(" For this reason, it is HIGHLY recommended to use sync instead!"); + tfc_say(" Note that both sync and lsync work only with read errors!"); tfc_say(" default error action is exit with printing status if not quiet."); tfc_say(" -E xall: turn on error actions above for all errors, not just EIO errors."); tfc_say(" This must be a separate option given before usual -E how option."); @@ -248,6 +252,7 @@ void usage(void) tfc_say(" oseek=val: seek destination file/device by these val bytes."); tfc_say(" count=val: process only these val bytes, both input and output."); tfc_say(" xkey=val: take only val bytes from user keyfile."); + tfc_say(" okey=val: seek the key before reading it (usually a device)."); tfc_say(" xctr=val: specify size in bytes of initial counter prepended or read."); tfc_say(" -P: plain IO mode: disable encryption/decryption code at all."); tfc_say("\n");