Project

General

Profile

Actions

Bug #7511

closed

swapctl(SC_LIST) allocation nihilism

Added by Robert Mustacchi over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
kernel
Start date:
2016-10-25
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The swapctl (and swapctl32) functions in the kernel allow, amongst other things, the return of the current list of attached swap files. In the event that none are attached swapctl allocates anyway, but with a size of zero. To minimize potential programmer errors, we short circuit the rest of the logic in this case.

Actions #1

Updated by Electric Monk over 5 years ago

  • Status changed from New to Closed

git commit e1936e201a9a6139df26cffebf1de54d1ab41369

commit  e1936e201a9a6139df26cffebf1de54d1ab41369
Author: Joshua M. Clulow <jmc@joyent.com>
Date:   2017-01-04T06:01:26.000Z

    7511 swapctl(SC_LIST) allocation nihilism
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF