Re: [PATCH] livepatch: fix confusing return value for enabled_store().

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

 



On Fri, Mar 20, 2015 at 04:58:46PM +0800, Xiubo Li wrote:
> When enabling or disabling the live patch which is already in enabled
> or disabled state, the /sys/kernel/livepatch/<patch>/enabled will just
> return -EINVAL error value, so in user space will complaint like:
>    "bash: echo: write error: Invalid argument"
> and this will confuse users.

I actually prefer the current behavior.  I think the user should be
notified if they're trying to do something which doesn't make sense.

-- 
Josh
--
To unsubscribe from this list: send the line "unsubscribe live-patching" 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]     [Linux Kernel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux