I'm using Network Block Device (NBD) and I couldn't find any documentation on what NBD_SET_SIZE refers to. I suspect that it's the size of the block device, and then NBD_SET_BLKSIZE is the hint for the underlying device's block size. So then what's NBD_SET_SIZE_BLOCKS?
Is there someplace where I can get a definition for all the ioctl flags defined in nbd.h? Doing a google search turns up nothing, and the nbd.h contains no comments about these flags.