unpackfs: code dedup