Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-29 Thread Tejun Heo
Hey, On Mon, Apr 29, 2013 at 04:56:38PM +0200, Hannes Reinecke wrote: > grub requires you to re-implement _every_ device naming scheme which > is present in the kernel. Are you saying that it's just a limitation in grub? > And no, you cannot use the kernel itself as grub is run _prior_ to > the

Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-29 Thread Vivek Goyal
On Mon, Apr 29, 2013 at 04:56:38PM +0200, Hannes Reinecke wrote: > On 04/26/2013 09:03 PM, Tejun Heo wrote: > > hey, > > > > On Thu, Apr 25, 2013 at 05:12:20PM -0500, scame...@beardog.cce.hp.com wrote: > >> It looks like these are called from a function called init_device_map() > >> that is calle

Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-29 Thread Hannes Reinecke
On 04/26/2013 09:03 PM, Tejun Heo wrote: > hey, > > On Thu, Apr 25, 2013 at 05:12:20PM -0500, scame...@beardog.cce.hp.com wrote: >> It looks like these are called from a function called init_device_map() >> that is called from grub_stage2() at least in the version of grub I looked >> at (0.97, fr

Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-26 Thread Tejun Heo
hey, On Thu, Apr 25, 2013 at 05:12:20PM -0500, scame...@beardog.cce.hp.com wrote: > It looks like these are called from a function called init_device_map() > that is called from grub_stage2() at least in the version of grub I looked > at (0.97, from rhel6). > > So my assumption is that adding a

Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-25 Thread scameron
On Thu, Apr 25, 2013 at 02:14:59PM -0700, Tejun Heo wrote: > Hello, [...] > > > > Right now, if you add a new block driver, if you want grub to be able > > to boot it, you also have to modify grub. This is true for each new > > block driver that comes along. This is not the case for SCSI HBA > >

Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-25 Thread Tejun Heo
Hello, On Thu, Apr 25, 2013 at 04:07:26PM -0500, scame...@beardog.cce.hp.com wrote: > > Hmmm... maybe I'm missing something but the names assigned this way > > wouldn't have any kind of stability across boots. Is that good > > enough? > > Perhaps not. I am open to suggestions on that front --

Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-25 Thread scameron
On Thu, Apr 25, 2013 at 01:40:33PM -0700, Tejun Heo wrote: > Hello, > > On Thu, Apr 25, 2013 at 03:22:15PM -0500, Stephen M. Cameron wrote: > > If block drivers could (optionally) share a common device namespace then > > grub could be taught about this common namespace once, and any new block > >

Re: [RFC PATCH] block: Add new generic block device naming interface

2013-04-25 Thread Tejun Heo
Hello, On Thu, Apr 25, 2013 at 03:22:15PM -0500, Stephen M. Cameron wrote: > If block drivers could (optionally) share a common device namespace then > grub could be taught about this common namespace once, and any new block > device drivers could take advantage of this namespace and grub would >