]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
Make sure NOFILE resource limit is big enough.
[thirdparty/mdadm.git] / Create.c
index fe1d4e971b4b353cda69f15a68d9322a5c857e91..ac22f77c92d3e5205bcb7773b8958ae6d88eb3a4 100644 (file)
--- 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 */