lkml.org 
[lkml]   [2004]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] nbd: fix device names
It seems more appropriate to call the devices "nbX" rather than "nbdX",
since that's what the device nodes are actually named.

--
Paul




--- linux/drivers/block/nbd.c.PRISTINE Thu Apr 15 13:40:18 2004
+++ linux/drivers/block/nbd.c Thu Apr 15 13:53:18 2004
@@ -713,7 +753,7 @@ static int __init nbd_init(void)
disk->fops = &nbd_fops;
disk->private_data = &nbd_dev[i];
disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO;
- sprintf(disk->disk_name, "nbd%d", i);
+ sprintf(disk->disk_name, "nb%d", i);
sprintf(disk->devfs_name, "nbd/%d", i);
set_capacity(disk, 0x7ffffc00ULL << 1); /* 2 TB */
add_disk(disk);
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.059 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site