Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse attempts to find rbd options from input kernel cmdline and return one or more Images. Only JSON formats below is implemented.
rbd.<name>... where <name> is an arbitrary string identifer for the mount rbd.root.image=test-image1 rbd.root.image.pool=rbd rbd.root.image.mons=192.168.0.1,192.168.0.2,192.168.0.3:6789 rbd.root.image.user=admin rbd.root.image.secret=<key>
Optional rbd.root.image.snap=snap1 rbd.root.image.opts=rw,share rbd.root.part=1 rbd.root.mntopts=defaults rbd.root.fstype=ext4 rbd.root.overlay=false rbd.root.path=/newroot
JSON rbd={"root": {"image":{"mons": ["192.168.0.1","192.168.0.2","192.168.0.3:6789"], "opts":{"name": "admin", "secret": "AQAvjX9eabfZAhAAj/g5nXSe/uaemYGCu1w53Q=="}, "pool":"rbd", "image":"test-image1"}, "path":"/newroot", "fstype":"ext4"}} rbd.root={"image":{"mons": ["192.168.0.1","192.168.0.2","192.168.0.3:6789"], "opts":{"name": "admin", "secret": "AQAvjX9eabfZAhAAj/g5nXSe/uaemYGCu1w53Q=="}, "pool":"rbd", "image":"test-image1"}, "path":"/newroot", "fstype":"ext4"}