1 | | --- dd_rescue.c Sun Aug 29 00:57:11 2004 |
2 | | +++ ../../work.new/dd_rescue/dd_rescue.c Sat Oct 23 17:09:00 2004 |
3 | | @@ -551,7 +551,9 @@ |
4 | | fprintf(stderr, " -l logfdile name of a file to log errors and summary to (def=\"\");\n"); |
5 | | fprintf(stderr, " -r reverse direction copy (def=forward);\n"); |
6 | | fprintf(stderr, " -t truncate output file (def=no);\n"); |
7 | | +#ifdef O_DIRECT |
8 | | fprintf(stderr, " -d/D use O_DIRECT for input/output (def=no);\n"); |
9 | | +#endif |
10 | | fprintf(stderr, " -w abort on Write errors (def=no);\n"); |
11 | | fprintf(stderr, " -a spArse file writing (def=no),\n"); |
12 | | fprintf(stderr, " -A Always write blocks, zeroed if err (def=no);\n"); |
13 | | @@ -620,8 +622,10 @@ |
14 | | case 't': dotrunc = O_TRUNC; break; |
15 | | case 'i': interact = 1; force = 0; break; |
16 | | case 'f': interact = 0; force = 1; break; |
17 | | +#ifdef O_DIRECT |
18 | | case 'd': o_dir_in = O_DIRECT; break; |
19 | | case 'D': o_dir_out = O_DIRECT; break; |
20 | | +#endif |
21 | | case 'p': pres = 1; break; |
22 | | case 'a': sparse = 1; nosparse = 0; break; |
23 | | case 'A': nosparse = 1; sparse = 0; break; |