summaryrefslogtreecommitdiff
path: root/Create.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-05-30 14:31:09 +1000
committerNeilBrown <neilb@suse.de>2013-05-30 14:31:09 +1000
commita7dec3fd92e9b77b0bc7bb8e8e0b4c878baef45a (patch)
tree071b4d67fce6e2e03d26d2a1c96bbc2d4b1a5d94 /Create.c
parent041b815f172579018eb85de7476bc6da8adebae5 (diff)
Make sure NOFILE resource limit is big enough.
Some people want to create truely enormous arrays. As we sometimes need to hold one file descriptor for each device, this can hit the NOFILE limit. So raise the limit if it ever looks like it might be a problem. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Create.c b/Create.c
index fe1d4e97..ac22f77c 100644
--- a/Create.c
+++ b/Create.c
@@ -832,7 +832,7 @@ int Create(struct supertype *st, char *mddev,
}
infos = xmalloc(sizeof(*infos) * total_slots);
-
+ enable_fds(total_slots);
for (pass=1; pass <=2 ; pass++) {
struct mddev_dev *moved_disk = NULL; /* the disk that was moved out of the insert point */