Project

General

Profile

Actions

Bug #5704

closed

libzfs can only handle 255 file descriptors

Added by Arne Jansen almost 9 years ago. Updated almost 9 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
Gerrit CR:
External Bug:

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 K, 2015-03-12 03:24 PM
Actions #1

Updated by Simon K almost 9 years ago

The fix is on the way.

Actions #2

Updated by Rich Lowe almost 9 years ago

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

Updated by Electric Monk almost 9 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>

Actions

Also available in: Atom PDF