summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-blockdevices-filesystems.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-05 18:51:20 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-05 18:51:20 +0100
commite22f3102ca185b43ca975ee3f960e949aa0e8185 (patch)
tree502ffb7e159d7f38c058f71959bf1653c5e9bfe0 /src/core/libs/lib-blockdevices-filesystems.sh
parent81f23c78763d8c21c82c146f3821988cd9b3a338 (diff)
cleanups and fixes
Diffstat (limited to 'src/core/libs/lib-blockdevices-filesystems.sh')
-rw-r--r--src/core/libs/lib-blockdevices-filesystems.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh
index b95fa9a..8e49fbf 100644
--- a/src/core/libs/lib-blockdevices-filesystems.sh
+++ b/src/core/libs/lib-blockdevices-filesystems.sh
@@ -494,3 +494,20 @@ process_filesystem ()
return 0
}
+
+
+# $1 filesystem type
+get_filesystem_program ()
+{
+ [ -z "$1" ] && die_error "get_filesystem_program needs a filesystem id as \$1"
+ [ $1 = ext2 ] && echo mkfs.ext2
+ [ $1 = ext3 ] && echo mkfs.ext3
+ [ $1 = reiserfs ] && echo mkreiserfs
+ [ $1 = xfs ] && echo mkfs.xfs
+ [ $1 = jfs ] && echo mkfs.jfs
+ [ $1 = vfat ] && echo mkfs.vfat
+ [ $1 = lvm-pv ] && echo pvcreate
+ [ $1 = lvm-vg ] && echo vgcreate
+ [ $1 = lvg-lv ] && echo lvcreate
+ [ $1 = dm_crypt ] && echo cryptsetup
+} \ No newline at end of file