]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-ubuntu: update coding style
authorJosé Martínez <xosemp@gmail.com>
Sun, 6 Jul 2014 20:11:41 +0000 (22:11 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 7 Jul 2014 14:49:12 +0000 (10:49 -0400)
Signed-off-by: José Martínez <xosemp@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-ubuntu.in

index b151375a10a93b5efed35842afeaf24fbab44a3d..83c962e4fb83110f43fc29348422810fea22ab3e 100644 (file)
@@ -47,16 +47,19 @@ if [ -r /etc/default/lxc ]; then
 fi
 
 # Check if given path is in a btrfs partition
-is_btrfs() {
+is_btrfs()
+{
     [ -e $1 -a $(stat -f -c '%T' $1) = "btrfs" ]
 }
 
 # Check if given path is the root of a btrfs subvolume
-is_btrfs_subvolume() {
+is_btrfs_subvolume()
+{
     [ -d $1 -a $(stat -f -c '%T' $1) = "btrfs" -a $(stat -c '%i' $1) -eq 256 ]
 }
 
-try_mksubvolume() {
+try_mksubvolume()
+{
     path=$1
     [ -d $path ] && return 0
     mkdir -p $(dirname $path)
@@ -67,7 +70,8 @@ try_mksubvolume() {
     fi
 }
 
-try_rmsubvolume() {
+try_rmsubvolume()
+{
     path=$1
     [ -d $path ] || return 0
     if is_btrfs_subvolume $path; then