Re: iscsi_add_session() warning

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

 



On Wed, 04 Feb 2009 01:40:11 -0600 Mike Christie <michaelc@xxxxxxxxxxx> wrote:

> When there are no ids for some object left, what is the stadard Exxxx 
> value to return? Would ENOSPC make sense? Here ENOSPC would mean no 
> space in id space left instead of space on a device?

Drivers often do that sort of thing.  I don't like it personally -
ENOSPC means "No space left on device".  IOW, "your disk is full".

Co-opting that code just because something kinda-sorta-similar happened
seems abusive to me.  Plus the first thing poor old user is going to do
is run `df' and ask wtf?

So what's left?  EINVAL is a sort of generic something-went-wrong error
code (in Linux, at least).  But perhaps EBUSY ("Device or resource
busy") is suitable here.

Dunno, hard.

--
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