lkml.org 
[lkml]   [2002]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fix cdroms with devfs
Hello,

This patch fixes the case where devfs in 2.5.x currently makes a
/dev/cdroms/cdroms directory instead of a /dev/cdroms directory like it
used to. Thanks.

Jordan
--- linux-2.5.38/fs/partitions/check.c 2002-09-23 21:55:43.000000000 -0500
+++ linux-2.5.38-bk/fs/partitions/check.c 2002-09-24 22:53:00.000000000 -0500
@@ -348,7 +348,7 @@
cdroms = devfs_mk_dir (NULL, "cdroms", NULL);

dev->number = devfs_alloc_unique_number(&cdrom_numspace);
- sprintf(vname, "cdroms/cdrom%d", dev->number);
+ sprintf(vname, "cdrom%d", dev->number);
if (dev->de) {
int pos;
devfs_handle_t slave;
\
 
 \ /
  Last update: 2005-03-22 13:29    [from the cache]
©2003-2011 Jasper Spaans