]> err.no Git - util-linux/commit
swapon: do_swapon() refactoring (split into two functions)
authorKarel Zak <kzak@redhat.com>
Mon, 2 Mar 2009 15:12:26 +0000 (16:12 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Mar 2009 14:21:38 +0000 (15:21 +0100)
commit05c79b78386cd9629764000851535ab1667fc600
tree0b7315f41a9bcce1a504cfa50985640793eeb86d
parentd51d05d322ff03ab296ca3fb00665584f4434396
swapon: do_swapon() refactoring (split into two functions)

The patch moves all checks to the separate swapon_checks() function.

This is a little more aggressive, but currently the do_swapon() is
too long.

Signed-off-by: Karel Zak <kzak@redhat.com>
mount/swapon.c