Closed jti-lanl closed 8 years ago
Done. For example:
cd $MARFS/fuse/src ../scripts/build_marfs 3 1 make mnt mkdir /marfs/ns/packed ../scripts/make_packed [options] /marfs/ns/packed pack
By default, this creates four regular MarFS files named /marfs/ns/packed/pack[1-4], then concatenates all the object-contents into a local file, deletes old objects, creates a new object-ID with "packed" type, writes the concatenated contents into the new obj-ID, and updates OBJID and POST xattrs on all the MDFS files to refer to offsets in the new packed object. Ideally, we'd avoid deleting the original objects until everything else worked, but that was awkward for now.
For now, you have to enter the obj-storage password on every single freaking obj-interaction (9 events in the default case). For convenience, copy it once into your kill-ring, and then just paste it every time you need it. I didn't want to risk making a security hole just to avoid this, though I think I now see how to supply the password from the script without exposing it on the command-line or in the script. Get to that later.
This tool was originally a quick hack, useful for hand-building packed files for basic testing, but now it's out-of-date. Needs some updating, if we're going to rely on it.
[edited from an email]
Let's skip that.