patch-2.3.40 linux/drivers/block/nbd.c
Next file: linux/drivers/block/paride/pd.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Tue Jan 18 18:54:21 2000
- Orig file:
v2.3.39/linux/drivers/block/nbd.c
- Orig date:
Tue Jan 11 22:31:39 2000
diff -u --recursive --new-file v2.3.39/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -489,6 +489,8 @@
nbd_blksize_bits[i] = 10;
nbd_bytesizes[i] = 0x7ffffc00; /* 2GB */
nbd_sizes[i] = nbd_bytesizes[i] >> nbd_blksize_bits[i];
+ register_disk(NULL, MKDEV(MAJOR_NR,i), 1, &nbd_fops,
+ nbd_bytesizes[i]>>9);
}
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)