Re: [PATCH 7/8] SCSI: add a field to scsi_device to count open file references

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-03-04 at 12:43 -0500, Alan Stern wrote:
> On Tue, 4 Mar 2008, James Bottomley wrote:
> 
> > If you want to see for yourself, it's fs/block_dev.c:do_open().
> 
> Thanks for the pointer.  I see the subroutine is not exactly loaded 
> with comments...
> 
> > > If you can suggest an alternative approach, I'll be glad to change the
> > > patch.
> > 
> > Well, since this is the 7th patch of an eight patch series, I don't
> > really have the context for that.  However, I assume it's all on the
> > linux-usb list?  If so, I'll add it to my list of things to look at.
> 
> The patches before it probably won't give you any additional useful 
> context.  The following patch might; that's the one affecting 
> usb-storage.

OK, I looked through the patch series.  It really looks like the
in-kernel thing is the wrong approach.

Why not export this want_persist flag via sysfs and then have hal and
udev update it when they see a filesystem on an underlying usb device
mounted (and zero it out on unmount)?  That way you always have the
exactly correct state and there's no need to go fishing for information
in layers that are difficult to get to.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux