Home
last modified time | relevance | path

Searched refs:nbd_bytesizes (Results 1 – 1 of 1) sorted by relevance

/linux-2.4.37.9/drivers/block/
Dnbd.c63 static u64 nbd_bytesizes[MAX_NBD]; variable
446 return put_user(nbd_bytesizes[dev] >> 9, (unsigned long *) arg); in nbd_ioctl()
448 return put_user((u64)nbd_bytesizes[dev], (u64 *) arg); in nbd_ioctl()
506 nbd_bytesizes[dev] &= ~(nbd_blksizes[dev]-1); in nbd_ioctl()
507 nbd_sizes[dev] = nbd_bytesizes[dev] >> BLOCK_SIZE_BITS; in nbd_ioctl()
510 nbd_bytesizes[dev] = arg & ~(nbd_blksizes[dev]-1); in nbd_ioctl()
511 nbd_sizes[dev] = nbd_bytesizes[dev] >> BLOCK_SIZE_BITS; in nbd_ioctl()
514 nbd_bytesizes[dev] = ((u64) arg) << nbd_blksize_bits[dev]; in nbd_ioctl()
515 nbd_sizes[dev] = nbd_bytesizes[dev] >> BLOCK_SIZE_BITS; in nbd_ioctl()
627 nbd_bytesizes[i] = ((u64)0x7ffffc00) << 10; /* 2TB */ in nbd_init()
[all …]