Re: grub vs st_dev (aka fsid) / st_rdev

2009-11-10 Thread Samuel Thibault
olafbuddenha...@gmx.net, le Wed 11 Nov 2009 00:23:17 +0100, a écrit : > On Mon, Nov 09, 2009 at 10:47:08PM +0100, Samuel Thibault wrote: > > > - Either we align more on POSIX to manage to get the st_dev (aka fsid) > > of filesystems equal to the the st_rdev of their underlying /dev > > entries. A

Re: grub vs st_dev (aka fsid) / st_rdev

2009-11-10 Thread olafBuddenhagen
Hi, On Mon, Nov 09, 2009 at 10:47:08PM +0100, Samuel Thibault wrote: > - Either we align more on POSIX to manage to get the st_dev (aka fsid) > of filesystems equal to the the st_rdev of their underlying /dev > entries. An easy way is to have storeios expose their own pid as > st_rdev, and have

Re: grub vs st_dev (aka fsid) / st_rdev

2009-11-10 Thread Carl Fredrik Hammar
On Tue, Nov 10, 2009 at 02:01:19PM +0100, Samuel Thibault wrote: > > I assumed that was the case for the ones that are interesting for grub. > > Yes, but then to realize unicity it's more difficult, as you have > several sources of IDs. You can of course use a prefix to identify where > it comes f

Re: grub vs st_dev (aka fsid) / st_rdev

2009-11-10 Thread Samuel Thibault
Carl Fredrik Hammar, le Tue 10 Nov 2009 13:30:30 +0100, a écrit : > > That's not a problem since in that case the FS above it will have to be > > restarted too. Note that a storeio can't time out while an FS is still > > running. > > The FS can use file_get_storage_info and use the store directly,

Re: grub vs st_dev (aka fsid) / st_rdev

2009-11-10 Thread Carl Fredrik Hammar
On Tue, Nov 10, 2009 at 11:24:34AM +0100, Samuel Thibault wrote: > Carl Fredrik Hammar, le Tue 10 Nov 2009 09:27:14 +0100, a écrit : > > > - An easy way is to have storeios expose their own pid as > > > st_rdev, and have filesystems use the underlying storeio st_rdev for > > > their st_dev (aka

Re: grub vs st_dev (aka fsid) / st_rdev

2009-11-10 Thread Samuel Thibault
Carl Fredrik Hammar, le Tue 10 Nov 2009 09:27:14 +0100, a écrit : > > - An easy way is to have storeios expose their own pid as > > st_rdev, and have filesystems use the underlying storeio st_rdev for > > their st_dev (aka fsid). One issue is for the / ext2fs, since it > > doesn't use a stor

Re: grub vs st_dev (aka fsid) / st_rdev

2009-11-10 Thread Carl Fredrik Hammar
Hi, On Mon, Nov 09, 2009 at 10:47:08PM +0100, Samuel Thibault wrote: > I can see two solutions: > > - Either we align more on POSIX to manage to get the st_dev (aka > fsid) of filesystems equal to the the st_rdev of their underlying /dev > entries. An easy way is to have storeios expose thei