handle swap partitions better during import/export 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:01:45 +0000 (16:01 -0400)
commitf0acc0048952b38728c4e3f183d37ca0b49b178b
tree9f2c4203361ac9d6079ba2c56225037843c324d3
parent344ee855b590ce60d3d50cb66ec1a70ec529c9a0
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