On Tue, 11 Apr 2006 13:38:09 +0200 (MEST) Jan Engelhardt wrote: > > >@@ -352,6 +353,10 @@ static char *make_block_name(struct gend > > return NULL; > > strcpy(name, block_str); > > strcat(name, disk->disk_name); > >+ /* ewww... some of these buggers have / in name... */ > >+ s = strchr(name, '/'); > >+ if (s) > >+ *s = '!'; > > return name; > > } > > > > Can they have multiple '/'? If so, we need a while loop. The other place that fixes this (just 10 or so lines further on in this file) does not loop. Looking through the block devices, there is no obvious place that creates a name with more than one '/'. -- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/