patch-2.2.11 linux/drivers/block/nbd.c
Next file: linux/drivers/block/rd.c
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Aug 9 12:04:39 1999
- Orig file:
v2.2.10/linux/drivers/block/nbd.c
- Orig date:
Tue Mar 9 16:58:05 1999
diff -u --recursive --new-file v2.2.10/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -401,7 +401,7 @@
return 0;
case NBD_SET_SIZE_BLOCKS:
nbd_sizes[dev] = arg;
- nbd_bytesizes[dev] = arg << nbd_blksize_bits[dev];
+ nbd_bytesizes[dev] = ((u64) arg) << nbd_blksize_bits[dev];
return 0;
case NBD_DO_IT:
if (!lo->file)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)