I suggest we add an ioctl to enable the feature instead of a sysctl. That way the device can simply be opened and the ioctl applied.
-Matt On Sun, Mar 29, 2015 at 6:17 PM, Sepherosa Ziehau <[email protected]> wrote: > On Sun, Mar 29, 2015 at 11:52 PM, Tim Darby <[email protected]> wrote: > > Can I make rc do this by modifying df_swap1_start() in rc.d/swap1: > > > > -swapon -a && return ${RC_CONFIGURED} > > +swapon -ae && return ${RC_CONFIGURED} > > The worst part of the problem is that -e assumes disk name 'daX', so > the uuid will not work properly. We need to find a way to map uuid to > disk name 'daX' to make -e work. > > Thanks, > sephe > > -- > Tomorrow Will Never Die >
