Re: letting glabel recognise a media change

2010-10-12 Thread Søren Schmidt
On 10/10/2010, at 22.55, Alexander Motin wrote: > Pawel Jakub Dawidek wrote: >> On Thu, Sep 30, 2010 at 08:46:11PM +0300, Alexander Motin wrote: >>> Andriy Gapon wrote: on 30/09/2010 01:28 Matthew Jacob said the following: > If something like that was in place, I assure you that things w

Re: letting glabel recognise a media change

2010-10-12 Thread John Baldwin
On Monday, October 11, 2010 4:11:56 pm Pawel Jakub Dawidek wrote: > On Mon, Oct 11, 2010 at 11:03:26AM -0400, John Baldwin wrote: > > With CD drives you are also rather stuck in that the existing ABI for > > controlling CD drives (e.g. ioctls in 3rd party software to eject a CD) are > > done on the

Re: letting glabel recognise a media change

2010-10-12 Thread Andriy Gapon
on 11/10/2010 23:11 Pawel Jakub Dawidek said the following: > Right, but I still wonder if we could execute provider orphan and > retaste on various events like media insertion or removal. If media is I think nobody would disagree with that approach. The issue is to reliably detect those events wi

Re: letting glabel recognise a media change

2010-10-11 Thread Pawel Jakub Dawidek
On Mon, Oct 11, 2010 at 11:03:26AM -0400, John Baldwin wrote: > With CD drives you are also rather stuck in that the existing ABI for > controlling CD drives (e.g. ioctls in 3rd party software to eject a CD) are > done on the /dev/cdX device. Ideally enclosures for removable media would > be separ

Re: letting glabel recognise a media change

2010-10-11 Thread John Baldwin
On Sunday, October 10, 2010 4:55:15 pm Alexander Motin wrote: > Pawel Jakub Dawidek wrote: > > On Thu, Sep 30, 2010 at 08:46:11PM +0300, Alexander Motin wrote: > >> Andriy Gapon wrote: > >>> on 30/09/2010 01:28 Matthew Jacob said the following: > If something like that was in place, I assure y

Re: letting glabel recognise a media change

2010-10-10 Thread Alexander Motin
Pawel Jakub Dawidek wrote: > On Thu, Sep 30, 2010 at 08:46:11PM +0300, Alexander Motin wrote: >> Andriy Gapon wrote: >>> on 30/09/2010 01:28 Matthew Jacob said the following: If something like that was in place, I assure you that things would start to use it very quickly. >>> I am n

Re: letting glabel recognise a media change

2010-10-10 Thread Pawel Jakub Dawidek
On Thu, Sep 30, 2010 at 08:46:11PM +0300, Alexander Motin wrote: > Andriy Gapon wrote: > > on 30/09/2010 01:28 Matthew Jacob said the following: > >> If something like that was in place, I assure you that things would start > >> to use > >> it very quickly. > > > > I am not sure about this. > > B

Re: letting glabel recognise a media change

2010-09-30 Thread Doug Barton
On 9/30/2010 3:20 PM, Garrett Cooper wrote: The problem is that the current system proposed for Device Kit is based on file system notification. I know we can do this with kqueues to some degree, but we do some of our best work via sysctls, and using other methods of attack, so it would be n

Re: letting glabel recognise a media change

2010-09-30 Thread Garrett Cooper
On Thu, Sep 30, 2010 at 2:38 PM, Doug Barton wrote: > On 9/30/2010 2:34 PM, Doug Barton wrote: >> >> On 9/30/2010 2:29 PM, Dimitry Andric wrote: >>> >>> On 2010-09-30 23:07, Doug Barton wrote: To what extent is HAL relevant here? I was sort of ambivalent about using it in FreeBSD, b

Re: letting glabel recognise a media change

2010-09-30 Thread Doug Barton
On 9/30/2010 2:34 PM, Doug Barton wrote: On 9/30/2010 2:29 PM, Dimitry Andric wrote: On 2010-09-30 23:07, Doug Barton wrote: To what extent is HAL relevant here? I was sort of ambivalent about using it in FreeBSD, but my recent experimentation with ubuntu is starting to change my mind. Please

Re: letting glabel recognise a media change

2010-09-30 Thread Doug Barton
On 9/30/2010 2:29 PM, Dimitry Andric wrote: On 2010-09-30 23:07, Doug Barton wrote: To what extent is HAL relevant here? I was sort of ambivalent about using it in FreeBSD, but my recent experimentation with ubuntu is starting to change my mind. Please read this first: https://wiki.ubuntu.com/

Re: letting glabel recognise a media change

2010-09-30 Thread Dimitry Andric
On 2010-09-30 23:07, Doug Barton wrote: To what extent is HAL relevant here? I was sort of ambivalent about using it in FreeBSD, but my recent experimentation with ubuntu is starting to change my mind. Please read this first: https://wiki.ubuntu.com/Halsectomy :) _

Re: letting glabel recognise a media change

2010-09-30 Thread Doug Barton
On 9/29/2010 3:28 PM, Matthew Jacob wrote: On 9/29/2010 2:45 PM, Andriy Gapon wrote: on 30/09/2010 00:12 Alexander Best said the following: hi there, i wanted to ask if it would be possible to asjust glabel so that e.g. inserting a new media into a dvd-drive gets recognised and glabel displays

Re: letting glabel recognise a media change

2010-09-30 Thread Alexander Motin
Andriy Gapon wrote: > on 30/09/2010 20:46 Alexander Motin said the following: >> Andriy Gapon wrote: >>> on 30/09/2010 01:28 Matthew Jacob said the following: If something like that was in place, I assure you that things would start to use it very quickly. >>> I am not sure about th

Re: letting glabel recognise a media change

2010-09-30 Thread Andriy Gapon
on 30/09/2010 15:53 Matthew Jacob said the following: > > Oh? Why? In fact, I am not sure anymore :-) I had in mind some technical difficulties (like potential races with "normal" usage), but I think that they all are not very hard to overcome. Another question I had was how to poll, i.e. what co

Re: letting glabel recognise a media change

2010-09-30 Thread Andriy Gapon
on 30/09/2010 20:46 Alexander Motin said the following: > Andriy Gapon wrote: >> on 30/09/2010 01:28 Matthew Jacob said the following: >>> If something like that was in place, I assure you that things would start >>> to use >>> it very quickly. >> >> I am not sure about this. >> Because, e.g. I do

Re: letting glabel recognise a media change

2010-09-30 Thread Alexander Motin
Andriy Gapon wrote: > on 30/09/2010 01:28 Matthew Jacob said the following: >> If something like that was in place, I assure you that things would start to >> use >> it very quickly. > > I am not sure about this. > Because, e.g. I don't see an easy way to know that media is changed in scsi_cd > d

Re: letting glabel recognise a media change

2010-09-30 Thread Matthew Jacob
Oh? Why? I am not sure about this. Because, e.g. I don't see an easy way to know that media is changed in scsi_cd driver. That is, without polling. I don't consider polling to be an easy way for a number of reasons. ___ freebsd-current@freebsd.o

Re: letting glabel recognise a media change

2010-09-30 Thread Matthew Jacob
We already have a 'retaste' command for gmultipath at Panasas. What announcement API would you like to add? If something like that was in place, I assure you that things would start to use it very quickly. It doesn't have to be a heavy "announcement API". Basically, something would have to

Re: letting glabel recognise a media change

2010-09-30 Thread Andriy Gapon
on 30/09/2010 01:28 Matthew Jacob said the following: > On 9/29/2010 2:45 PM, Andriy Gapon wrote: >> on 30/09/2010 00:12 Alexander Best said the following: >>> hi there, >>> >>> i wanted to ask if it would be possible to asjust glabel so that e.g. >>> inserting >>> a new media into a dvd-drive ge

Re: letting glabel recognise a media change

2010-09-30 Thread Ivan Voras
On 09/30/10 00:28, Matthew Jacob wrote: On 9/29/2010 2:45 PM, Andriy Gapon wrote: on 30/09/2010 00:12 Alexander Best said the following: hi there, i wanted to ask if it would be possible to asjust glabel so that e.g. inserting a new media into a dvd-drive gets recognised and glabel displays th

Re: letting glabel recognise a media change

2010-09-29 Thread Matthew Jacob
On 9/29/2010 2:45 PM, Andriy Gapon wrote: on 30/09/2010 00:12 Alexander Best said the following: hi there, i wanted to ask if it would be possible to asjust glabel so that e.g. inserting a new media into a dvd-drive gets recognised and glabel displays the lablel right away. Yes, of course, as

Re: letting glabel recognise a media change

2010-09-29 Thread Andriy Gapon
on 30/09/2010 00:12 Alexander Best said the following: > hi there, > > i wanted to ask if it would be possible to asjust glabel so that e.g. > inserting > a new media into a dvd-drive gets recognised and glabel displays the lablel > right away. Yes, of course, as soon as we have in kernel a prog

letting glabel recognise a media change

2010-09-29 Thread Alexander Best
hi there, i wanted to ask if it would be possible to asjust glabel so that e.g. inserting a new media into a dvd-drive gets recognised and glabel displays the lablel right away. right now i use this shell alias to work around this issue: mdvd='sh -c ": 3>/dev/dvd" ; mount /media/dvd/ && cd /medi