Casper.Dik at Sun.COM writes: > I've done a prototype which was much faster but somehow the > people in charge are determined to pile a ton of mechanisms > on top of this such as "doors as files". Too many mechanism, > a daemon running to create the file on the fly, etc. I think > it can be solved with a low-tech solution which retains the > contents file.
As long as you're talking about either initial install or live upgrade (the two cases where "recovering" from a mid-operation failure is not important), and not standard upgrade, a plausible way to go about this would be to do something like this before the upgrade: mkdir /tmp/old-install mount -F lofs $ALTROOT/var/sadm/install /tmp/old-install mount -F tmpfs $ALTROOT/var/sadm/install ( cd /tmp/old-install find . -depth -print | cpio -pdm $ALTROOT/var/sadm/install ) and then afterwards: ( cd $ALTROOT/var/sadm/install find . -depth -print | cpio -pdm /tmp/old-install ) umount $ALTROOT/var/sadm/install umount /tmp/old-install rmdir /tmp/old-install so that the rewrites are in tmpfs rather than on disk. -- James Carlson, KISS Network <james.d.carlson at sun.com> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
