On 4/8/25 23:56, Petr Vorel wrote:
On 3/31/25 19:55, lufei wrote:
Set maximum file descriptor number limit by rlimit.rlim_max than
nr_open(hard limit). Hard limit may cause dup2 fail.
Signed-off-by: lufei <lu...@uniontech.com>
Petr, Al,
Okay to take this patch?
LGTM, hopefully I haven't overlook anything.
Reviewed-by: Petr Vorel <pvo...@suse.cz>
FYI Cyril Hrubis suggested a different approach (for LTP tests which is based on
this Al's test):
https://lore.kernel.org/ltp/z-u7yyjptbg8h...@yuki.lan/
https://lore.kernel.org/ltp/z-vwyzxlms8ju...@yuki.lan/
filedescriptor that is >= 64 and set the nr_open to 64.
That would help to avoid using /proc/sys/fs/nr_open.
Thank you for this suggestion.
lufei, Can you look into this as a solution? Also the short log
should include the subsystem: e.:
selftests:core: unshare_test: -----
thanks,
-- Shuah