diff options
author | NeilBrown <neilb@suse.de> | 2013-05-30 14:31:09 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-05-30 14:31:09 +1000 |
commit | a7dec3fd92e9b77b0bc7bb8e8e0b4c878baef45a (patch) | |
tree | 071b4d67fce6e2e03d26d2a1c96bbc2d4b1a5d94 /Create.c | |
parent | 041b815f172579018eb85de7476bc6da8adebae5 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |