Re: [patch] remove artificial software max_loop limit

From: Ken Chen
Date: Sun Apr 01 2007 - 14:03:41 EST


On 4/1/07, devzero@xxxxxx <devzero@xxxxxx> wrote:
not sure if this is a real issue and if it`s UML or loop related -
but how is low-memory situations being handled when
creating loop devices ?

kernel returns -ENOMEM as an error code if there are no memory left to
initialize loop device.


should losetup or dmesg tell "out of memory" if there is not
enough memory left ?

It should, as kernel does pass that info back to app. Does losetup
check return value of open() syscall?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/