[PATCH v3 08/13] ch: implement disk attach in public API