On Sun, Jul 06, 2014 at 02:57:17PM +0200, Zbigniew Jędrzejewski-Szmek wrote:
> On Sun, Jul 06, 2014 at 01:05:29PM +0200, Ronny Chevalier wrote:
> > 2014-07-05 20:56 GMT+02:00 Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl>:
> > > +        if (src_size < 9)
> > > +                return -ENOSPC;
> > Also, I am not sure that ENOSPC is appropriate here (and everywhere) ?
> > Why not ENOMEM (since there is no devices involved) ?
> Goood idea.
Actually ENOMEM is used for failed allocations, which we need to distinguish.
So it's either E2BIG or ENOSPC. Neither is too good.

> Thanks for all the comments, I will fix them before next submission.

Zbyszek
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to