The tar (and gzip?) case is a little more complicated than I suggested:
tar -cvf NEWARCHIVE.tar file1 file2 ...
Here, file1 should be opened "O_ENTIRE" and the NEWARCHIVE.tar can be
opened "O_SERIALIZED". This probably should not mean that no caching takes
place, but if memory is at a premium (ie, there is better use for it), the
already written .tar file can be dropped first.
tar-xvf OLDARCHIVE.tar
Here, an O_SERIALIZED could be used for the .tar file, but you are right,
for the output-files, no options should be given because it is likely you
want to use them again.
For gzip; you know that you throw the input file away when you are done so
caching it is useless anyway.
Greetings,
Arjan van de Ven
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/