Project

General

Profile

Bug #5704

libzfs can only handle 255 file descriptors

Added by Arne Jansen over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-03-11
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

libzfs uses fopen(), at least in libzfs_init(). If there are more than 255 filedescriptors open, fopen() will fail unless you give 'F' as the last mode character. The fix would be to give 'rF' instead of 'r' as mode to fopen().


Files

libzfs_test.c (425 Bytes) libzfs_test.c consider ulimit Simon Klinkert, 2015-03-12 03:24 PM

History

#1

Updated by Simon Klinkert over 4 years ago

The fix is on the way.

#2

Updated by Rich Lowe over 4 years ago

  • Subject changed from libzfs can only handle 255 filedescriptors to libzfs can only handle 255 file descriptors
#3

Updated by Electric Monk over 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit bde3d612a7c090234c60e6e4578821237a5db135

commit  bde3d612a7c090234c60e6e4578821237a5db135
Author: Simon Klinkert <simon.klinkert@gmail.com>
Date:   2015-03-30T15:45:57.000Z

    5704 libzfs can only handle 255 file descriptors
    Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
    Reviewed by: John Kennedy <john.kennedy@delphix.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF