bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * CDDL HEADER START
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * The contents of this file are subject to the terms of the
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * Common Development and Distribution License (the "License").
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * You may not use this file except in compliance with the License.
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * or http://www.opensolaris.org/os/licensing.
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * See the License for the specific language governing permissions
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * and limitations under the License.
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * When distributing Covered Code, include this CDDL HEADER in each
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * If applicable, add the following below this CDDL HEADER, with the
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * fields enclosed by brackets "[]" replaced with your own identifying
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * information: Portions Copyright [yyyy] [name of copyright owner]
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * CDDL HEADER END
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * Copyright (C) 2015 STRATO AG.
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert * Check if libzfs works with more than 255 held file handles.
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert/* ARGSUSED */
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert (void) printf("many_fds: setrlimit() failed with errno=%d\n",
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert for (i = 0; i < 255; ++i) {
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert (void) printf("open failed with errno=%d\n", errno);
bde3d612a7c090234c60e6e4578821237a5db135Simon Klinkert (void) printf("many_fds: libzfs_init() failed with errno=%d\n",