handle swap partitions better during import/export deployed v0.9/import_export_swap
authorGalen Charlton <gmc@esilibrary.com>
Thu, 8 Aug 2013 20:01:45 +0000 (16:01 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 8 Aug 2013 20:09:32 +0000 (16:09 -0400)
commitbcc380ab7ad1edd0b8eabf0745da743813d47236
treebdcc45aec11c17305b73970fc4d975280a210c82
parentf1ac188f29fbd00343f36165540eb8d0cb437b55
handle swap partitions better during import/export

Changes the export file format so that the first
line indicates whether the device being exported or
imported is a swap device or an ext* filesystem.

If it's a swap device, it's just recreated on import;
there's no reason to retain its contents.

WARNING: This makes previous gnt-backup filesystem exports
incompatible unless they are modified so that their first
line contains "ext3" or "ext4".

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
export
import