Re: [vserver] 4.1.39 patch

From: Mike <mszick_at_MoreThan.org>
Date: Wed 05 Apr 2017 - 12:05:45 BST
Message-ID: <20170405060545.755137c4@core2quad.morethan.org>

On Wed, 5 Apr 2017 11:10:13 +0200
Ghislain Adnet <gadnet@aqueos.com> wrote:

> testfs works if i correct the syntax for recent df on debian. I added
> the -P flag to have posix output:
>
> here is the mighty patch :
>
>
>
> HOST:root@58386hd51145:[~]: diff -Naur testfs.sh testfs.sh.1
> --- testfs.sh 2017-04-05 11:02:46.118757957 +0200
> +++ testfs.sh.1 2009-11-30 19:46:52.000000000 +0100
> @@ -279,9 +279,9 @@
> local space_used=0
> local inodes_used=0
>
> - _DLIMIT_DF_SPACE=`df -P "$path" |
> + _DLIMIT_DF_SPACE=`df "$path" |
> awk '$3 ~ /^[0-9]+$/ { if (NF == 5) { print $2 } else { print
> $3 } }'`
> - _DLIMIT_DF_INODE=`df -P -i "$path" |
> + _DLIMIT_DF_INODE=`df -i "$path" |
> awk '$3 ~ /^[0-9]+$/ { if (NF == 5) { print $2 } else { print
> $3 } }'` eval `vdlimit --xid "$xid" "$path" | grep _used=`
>
> @@ -300,7 +300,7 @@
> local df_space=0
> local df_inode=0
>
> - df_space=`df -P "$path" |
> + df_space=`df "$path" |
> awk '$3 ~ /^[0-9]+$/ { if (NF == 5) { print $2 } else { print
> $3 } }'` df_inode=`df -i "$path" |
> awk '$3 ~ /^[0-9]+$/ { if (NF == 5) { print $2 } else { print
> $3 } }'`
>
>
>
>
>

Either that patch is reversed or you meant: "remove -P"
Received on Wed Apr 5 12:05:51 2017

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 05 Apr 2017 - 12:05:51 BST by hypermail 2.1.8