| It appears that once you call mand_init, that's it (see mandlib.c).
restore uses mand_import_encodings in a forked subprocess in order to
translate the labels on the files on a tape into the labels on the
system into which you are importing the files. (dump writes a copy of
the Encodings file onto the archive with the files, then restore reads
that copy into the current directory and forks a subprocess to start
the conversion of IR to ER using the dumped Encodings and then lookup
the ER in the receiving system's Encodings). Note that the parent
starts up the child before doing the mand_init. The child does the
mand_import_encodings and then the parent does it's mand_init.
Mike also suggests that you could have two processes, one which does
the lookup on system A and then passes the parameters to the process
that does the alternative encodings file lookup.
We were both rather confused about the bit about conversion into a "bit
pattern" -- do you mean the IR? So we may have been misunderstanding
what they are doing.
At any rate, if you want to give them the example in restore, I don't
see any problem with that -- usr/sbin/dump/dump_sec.c -- I don't think
they'll need more than that.
|
| > We were both rather confused about the bit about conversion into a "bit
> pattern" -- do you mean the IR? So we may have been misunderstanding
> what they are doing.
No you didn't misunderstand, they are talking about the IR.
Thanks for the dump/restore example, that helps explain the coding
approach they should be using here. They are trying to do all this
using just the one process and clearly they can't.
I'll pass this back to the customer and if there are any further
issues then I'll post another reply.
Thanks :-)
John
[Posted by WWW Notes gateway]
|