multipath-tools: Improvement to max_fds
authorBenjamin Marzinski <bmarzins@redhat.com>
Thu, 14 May 2009 04:38:28 +0000 (23:38 -0500)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Thu, 14 May 2009 21:02:08 +0000 (23:02 +0200)
commit827b267616cab50d04aa9e117e10819687d63084
tree18922786b889c22f33a285b67e625d39dc42a01c
parent69d094b4b8b2801cbe4e41d8adc12bce296d6d4d
multipath-tools: Improvement to max_fds

Setting max_fds to unlimited doesn't actually work.  In the kernel, there is a
fixed limit to the maximum number of open fds a process can have.  If you try
to set max_fds to greater than this, it fails.  This patch replaces the special
value "unlimited" with a new special value, "max".  If you set max_fds to "max",
multipath will use the actual system limit, which it looks up from
/proc/sys/fs/nr_open.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/dict.c
libmultipath/structs.h
multipath.conf.annotated
multipath/main.c
multipath/multipath.conf.5
multipathd/main.c