Make xsegbd query peer for disk size(using X_INFO)
authorStratos Psomadakis <psomas@grnet.gr>
Thu, 22 Dec 2011 14:35:51 +0000 (16:35 +0200)
committerStratos Psomadakis <psomas@grnet.gr>
Thu, 22 Dec 2011 14:35:51 +0000 (16:35 +0200)
commitaa21fc6737172cc55e16e8ecaf9d6950ce84fa2d
tree6af7a48a456222e185d047776fa6230da8678ac6
parent5640feb6507d9a6fab1447b25fbc72bf33f6ddac
Make xsegbd query peer for disk size(using X_INFO)

xsegbd will now send an X_INFO request to learn the size of the disk it's
mapping, instead of using the sector_size parameter at module load time.

Currently, xsegbd allocates its own segment, and thus it must wait until blockd
(or another peer with X_INFO support) joins the segment to get a response (this
will probably change soon).
xseg/sys/xsegbd.c