[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cp'ing passive translators



Neal H Walfield <neal@cs.uml.edu> writes:

> > Oh, cp -R is different.  I'm of two minds about what the Right Thing
> > is for the cp -R case.
> > 
> > The way to copy it, of course, is to fetch the translator entry and
> > set it on the copy.
> 
> I am not clear what you mean here.

Open the node with O_NOTRANS.
Fetch the translator spec with file_get_translator.
Cope the contents of the node to the new file.
Set the translator spen on the new file with file_set_translator.

Thomas



Reply to: