Re: [PATCH] st: Do not rewind for SG_IO

2014-02-03 Thread Kay Sievers
On Mon, Feb 3, 2014 at 10:58 PM, Jeremy Linton wrote: > On 2/3/2014 2:51 PM, Kay Sievers wrote: >> This is not simple and not going to happen. Sibling devices in /sys cannot >> have a relationship in udev, there are only parent/child dependencies. > > Ok.. so if we

Re: [PATCH] st: Do not rewind for SG_IO

2014-02-03 Thread Kay Sievers
On Mon, Feb 3, 2014 at 10:16 PM, Douglas Gilbert wrote: > On 14-02-03 10:08 AM, Jeremy Linton wrote: >> So whats wrong with the simple solution? You throw the ones for st >> away, and >> create the st handles from the nst worker. > > > Doesn't seem to be any good solutions to this > probl

Re: [PATCH] st: Do not rewind for SG_IO

2014-02-03 Thread Kay Sievers
On Mon, Feb 3, 2014 at 4:08 PM, Jeremy Linton wrote: > On 2/3/2014 9:06 AM, Hannes Reinecke wrote: > >> That's due to udev. Udev is getting events for each device it should create >> a device node for. So for 'st' it'll get a series of events for 'stX', and >> another series of events for 'nstX'.

Re: [PATCH SCSI] sr: check_events() ignore GET_EVENT when TUR says otherwise

2012-07-30 Thread Kay Sievers
On Mon, Jul 30, 2012 at 9:06 PM, Markus Rathgeb wrote: > Hello! > > Do you remember? > I get it again, is there something I could do? > > I attached a file that contains the "udevadm monitor" log. > > I am using a v3.5.0 linux kernel (containing some gentoo patches). > Should I test it with a vani

Re: [BUG] 2.6.23-rc3 can't see sd partitions on Alpha

2007-12-08 Thread Kay Sievers
On Fri, 2007-12-07 at 23:05 -0600, Bob Tracy wrote: > Kay Sievers wrote: > > Is the udev daemon (still) running while it fails? > > Yes, and there's something else I forgot to mention that may be > significant... For the bad case, in addition to udevd, "ps -ef

Re: [BUG] 2.6.23-rc3 can't see sd partitions on Alpha

2007-12-07 Thread Kay Sievers
On Sat, 2007-12-08 at 09:43 +1300, Michael Cree wrote: > Bob Tracy wrote: > > That was quick :-). Backing out the sysctl_check.c diff gives me a > > working kernel. Beats the [EMAIL PROTECTED] out of me how/why, though. > > > > Michael Cree: could you try backing out the diff below from your > >

Re: [BUG] 2.6.23-rc3 can't see sd partitions on Alpha

2007-12-07 Thread Kay Sievers
On Fri, 2007-12-07 at 19:06 +0100, Ingo Molnar wrote: > * Bob Tracy <[EMAIL PROTECTED]> wrote: > > > Ingo Molnar wrote: > > > > > > * Bob Tracy <[EMAIL PROTECTED]> wrote: > > > > > > > > Current state of the source tree is the 6f37ac... version, so I'll > > > > > start backing out the above dif

Re: BUG in: Driver core: convert block from raw kobjects to core devices (fwd)

2007-10-31 Thread Kay Sievers
On Wed, 2007-10-31 at 11:46 -0500, James Bottomley wrote: > On Wed, 2007-10-31 at 17:42 +0100, Kay Sievers wrote: > > On Wed, 2007-10-31 at 11:31 -0500, James Bottomley wrote: > > > Doesn't this circularity now exist for everything? Every device that > > > create

Re: BUG in: Driver core: convert block from raw kobjects to core devices (fwd)

2007-10-31 Thread Kay Sievers
On Wed, 2007-10-31 at 11:31 -0500, James Bottomley wrote: > On Wed, 2007-10-31 at 17:24 +0100, Kay Sievers wrote: > > On Wed, 2007-10-31 at 11:13 -0500, James Bottomley wrote: > > > On Wed, 2007-10-31 at 12:04 -0400, Alan Stern wrote: > > > > On Wed, 31 O

Re: BUG in: Driver core: convert block from raw kobjects to core devices (fwd)

2007-10-31 Thread Kay Sievers
On Wed, 2007-10-31 at 11:13 -0500, James Bottomley wrote: > On Wed, 2007-10-31 at 12:04 -0400, Alan Stern wrote: > > On Wed, 31 Oct 2007, James Bottomley wrote: > > > > > > Yes, the queue is a child of the disk. > > > > > > Right, so this goes gendisk->queue (-> meaning parent of, or takes > > >

Re: BUG in: Driver core: convert block from raw kobjects to core devices (fwd)

2007-10-31 Thread Kay Sievers
On Wed, 2007-10-31 at 10:15 -0500, James Bottomley wrote: > On Wed, 2007-10-31 at 07:32 -0700, Greg KH wrote: > > Hm, I seem to have missed the part in this thread where someone said > > that it was valid to have a parent reference a child device. That's > > just wrong and needs to be fixed. Is t

Re: BUG in: Driver core: convert block from raw kobjects to core devices (fwd)

2007-10-31 Thread Kay Sievers
On Tue, 2007-10-30 at 21:25 -0700, Greg KH wrote: > On Mon, Oct 29, 2007 at 08:13:17PM +0100, Kay Sievers wrote: > > On Mon, 2007-10-29 at 14:47 -0400, Alan Stern wrote: > > > On Mon, 29 Oct 2007, James Bottomley wrote: > > > > > > > I'm not sure if

Re: [PATCH] sysfs: add filter function to groups

2007-10-30 Thread Kay Sievers
On Oct 31, 2007 1:40 AM, Mark M. Hoffman <[EMAIL PROTECTED]> wrote: > * James Bottomley <[EMAIL PROTECTED]> [2007-10-30 13:25:43 -0500]: > > On Mon, 2007-10-29 at 18:58 +0100, Stefan Richter wrote: > > > James Bottomley wrote: > > > >> > struct attribute_group { > > > >> >const char

Re: [PATCH] sysfs: add filter function to groups

2007-10-30 Thread Kay Sievers
int (*filter_show)(struct kobject *, int); > > > > > Actually, it returns a true/false value indicating whether the given > > > attribute should be displayed. > > > > How about this: > > > > int (*is_visible)(...); > >

Re: BUG in: Driver core: convert block from raw kobjects to core devices (fwd)

2007-10-29 Thread Kay Sievers
On Mon, 2007-10-29 at 14:47 -0400, Alan Stern wrote: > On Mon, 29 Oct 2007, James Bottomley wrote: > > > I'm not sure if we can do this patch. If you kill a device, you see > > there's a processing state in scsi_prep_fn() for SDEV_DEL, which has a > > printk message I see quite often when I unplu

Re: [PATCH] sysfs: add filter function to groups

2007-10-29 Thread Kay Sievers
On Mon, 2007-10-29 at 12:28 -0500, James Bottomley wrote: > On Mon, 2007-10-29 at 18:27 +0100, Kay Sievers wrote: > > On Mon, 2007-10-29 at 11:57 -0500, James Bottomley wrote: > > > On Mon, 2007-10-29 at 17:54 +0100, Kay Sievers wrote: > > > > On Mon, 2007-10-29 a

Re: [PATCH] sysfs: add filter function to groups

2007-10-29 Thread Kay Sievers
On Mon, 2007-10-29 at 11:57 -0500, James Bottomley wrote: > On Mon, 2007-10-29 at 17:54 +0100, Kay Sievers wrote: > > On Mon, 2007-10-29 at 10:16 -0500, James Bottomley wrote: > > > struct attribute_group { > > > const char *name; > > > + i

Re: [PATCH] sysfs: add filter function to groups

2007-10-29 Thread Kay Sievers
On Mon, 2007-10-29 at 10:16 -0500, James Bottomley wrote: > In the SCSI transport classes (and soon to be in the AEN event > subsystem) we have a lot of need for a grouping that doesn't include all > files in the group. We basically want to show capability by which file > is present. A classic ex

Re: [PATCH 3/5] add sg segment limitation info to device structure

2007-10-02 Thread Kay Sievers
On 10/2/07, James Bottomley <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-02 at 17:10 +0200, Kay Sievers wrote: > > On Tue, 2007-10-02 at 10:05 -0500, James Bottomley wrote: > > > On Tue, 2007-10-02 at 17:02 +0200, Kay Sievers wrote: > > > > On 10/2/07, James

Re: [PATCH 3/5] add sg segment limitation info to device structure

2007-10-02 Thread Kay Sievers
On Tue, 2007-10-02 at 10:05 -0500, James Bottomley wrote: > On Tue, 2007-10-02 at 17:02 +0200, Kay Sievers wrote: > > On 10/2/07, James Bottomley <[EMAIL PROTECTED]> wrote: > > > On Mon, 2007-10-01 at 21:22 -0700, Greg KH wrote: > > > > On Mon, Oct 01, 2007

Re: [PATCH 3/5] add sg segment limitation info to device structure

2007-10-02 Thread Kay Sievers
On 10/2/07, James Bottomley <[EMAIL PROTECTED]> wrote: > On Mon, 2007-10-01 at 21:22 -0700, Greg KH wrote: > > On Mon, Oct 01, 2007 at 07:39:02PM -0600, Matthew Wilcox wrote: > > > On Mon, Oct 01, 2007 at 07:36:10PM -0400, James Bottomley wrote: > > > > One possibility we could do is to add a > > >

Re: [PATCH] fix leftover from default sdev attribute switch

2007-09-26 Thread Kay Sievers
On Wed, 2007-09-26 at 15:08 -0500, James Bottomley wrote: > On Wed, 2007-09-26 at 20:32 +0200, Kay Sievers wrote: > > On Wed, 2007-09-26 at 13:23 -0500, James Bottomley wrote: > > > On Wed, 2007-09-26 at 19:54 +0200, Kay Sievers wrote: > > > > Hi James, > > &g

Re: [PATCH] fix leftover from default sdev attribute switch

2007-09-26 Thread Kay Sievers
On Wed, 2007-09-26 at 13:23 -0500, James Bottomley wrote: > On Wed, 2007-09-26 at 19:54 +0200, Kay Sievers wrote: > > Hi James, > > seems we miss the following fix in the current tree. > > > > From: Kay Sievers <[EMAIL PROTECTED]> > > Subject: [SCSI] fi

[PATCH] fix leftover from default sdev attribute switch

2007-09-26 Thread Kay Sievers
Hi James, seems we miss the following fix in the current tree. Thanks, Kay From: Kay Sievers <[EMAIL PROTECTED]> Subject: [SCSI] fix scsi_is_sdev_device() after switch to default sdev attributes Signed-off-by: Kay Sievers <[EMAIL PROTECTED]> --- diff --git a/drivers/scsi/sc

Re: switch sdev sysfs attributes to default attributes

2007-09-13 Thread Kay Sievers
On Thu, 2007-09-13 at 14:29 +0100, Christoph Hellwig wrote: > On Tue, Sep 11, 2007 at 05:00:14PM +0200, Kay Sievers wrote: > > From: Kay Sievers <[EMAIL PROTECTED]> > > Subject: [SCSI] switch sdev sysfs attributes to default attributes > > > > This removes the u

switch sdev sysfs attributes to default attributes

2007-09-11 Thread Kay Sievers
From: Kay Sievers <[EMAIL PROTECTED]> Subject: [SCSI] switch sdev sysfs attributes to default attributes This removes the unused sysfs attribute overwriting logic for most of the attributes, and plugs them into the driver core default attribute creation. Without this patch, at the time

Re: [patch 0/4] Updated AN patches, now without gendisk

2007-08-14 Thread Kay Sievers
On Mon, 2007-08-13 at 09:26 -0700, Kristen Carlson Accardi wrote: > On Sat, 11 Aug 2007 16:00:53 +0200 > "Kay Sievers" <[EMAIL PROTECTED]> wrote: > > > On 8/8/07, Kristen Carlson Accardi <[EMAIL PROTECTED]> wrote: > > > Here is an updated set of pa

Re: [patch 0/4] Updated AN patches, now without gendisk

2007-08-11 Thread Kay Sievers
On 8/8/07, Kristen Carlson Accardi <[EMAIL PROTECTED]> wrote: > Here is an updated set of patches that implement Asynchronous Notification > support for ATAPI devices. In this version I no longer export the AN > capability through genhd, and the uevent is sent by the scsi_device > instead of gendi

Re: [PATCH] 2/2 Use bus dev_attrs to create scsi_device attributes

2005-03-30 Thread Kay Sievers
On Wed, 2005-03-30 at 13:44 -0800, Patrick Mansfield wrote: > On Wed, Mar 30, 2005 at 08:32:44PM +0200, Kay Sievers wrote: > > On Thu, 2005-03-17 at 09:53 -0500, James Bottomley wrote: > > > On Wed, 2005-03-16 at 14:45 -0800, Patrick Mansfield wrote: > > > > Any com

Re: [PATCH] 2/2 Use bus dev_attrs to create scsi_device attributes

2005-03-30 Thread Kay Sievers
On Thu, 2005-03-17 at 09:53 -0500, James Bottomley wrote: > On Wed, 2005-03-16 at 14:45 -0800, Patrick Mansfield wrote: > > Any comments on this? Should I resend these patches? > > Well, the basic comment is that there are a lot of features that SCSI > has that the driver core lacks: > > 1) Attri

Re: [PATCH] 2/2 Use bus dev_attrs to create scsi_device attributes

2005-03-30 Thread Kay Sievers
On Tue, Mar 29, 2005 at 08:20:43PM -0800, Greg KH wrote: > On Wed, Mar 30, 2005 at 05:15:55AM +0200, Kay Sievers wrote: > > /** > > + * sysfs_chmod_file - update the modified mode value on an object > > attribute. > > + * @kobj: object we're acting for.

Re: [PATCH] 2/2 Use bus dev_attrs to create scsi_device attributes

2005-03-29 Thread Kay Sievers
e attribute permissions based on capabilities. > I would be very interested in seeing the above stuff move into the > driver core. Point 3) seems to work for me. :) Thanks, Kay --- sysfs: allow change of permissions for already created attributes Signed-off-by: Kay Sievers <[EMAIL PROT