]> err.no Git - util-linux/commit
swapon: simplify spec to devname conversion
authorKarel Zak <kzak@redhat.com>
Mon, 2 Mar 2009 13:21:03 +0000 (14:21 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Mar 2009 14:20:45 +0000 (15:20 +0100)
commit81772d3c240cb72ddb977557c973b12bfef90396
tree727f440246e420980af2413ce27208631d71185a
parente8be80dd3829b4fe31ea0335ead1af9bd5d0d65c
swapon: simplify spec to devname conversion

We needn't to use spec_to_devname() and check for pseudo filesystems.
The swap{on,off} is always checking for the 'swap' fstype.

This patch also removes the dependence on xmalloc.c.

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