while you'r at it. take a look at 9front imageattach() code. it allows the chan attached to the image to be released when the image is not in use. this avoids all these chans and mounts being kept arround until the image is reclaimed. the problem is worked arround in iostats by killing the filesystem process once the command exits. you can reproduce by copying a binary to a fresh ramfs, executing and then unmount. ramfs will stay arround because the image cache still holds onto the binaries channel.
-- cinap