mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/386: Fix _filter_quota_rpt
It outputs nothing because of awk errors. Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
0a36980542
commit
5568077041
+4
-4
@@ -63,7 +63,7 @@ _require_scratch
|
||||
# interested in contains our project name in the first field. For "df"
|
||||
# it contains our project directory in the last field.
|
||||
# But if the device name is too long, the "df" output is broke into two
|
||||
# lines, the fourth field is not correct, so take $(nf-2) of "df"
|
||||
# lines, the fourth field is not correct, so take $(NF-2) of "df"
|
||||
_filter_quota_rpt() {
|
||||
awk '
|
||||
BEGIN {
|
||||
@@ -84,12 +84,12 @@ _filter_quota_rpt() {
|
||||
return result;
|
||||
}
|
||||
{
|
||||
if ($1 =~ proj_name) {
|
||||
if ($1 ~ proj_name) {
|
||||
# this is the "report" output
|
||||
bsize = byte_size($4);
|
||||
} else if ($nf =~ proj_dir) {
|
||||
} else if ($NF ~ proj_dir) {
|
||||
# this is the "df" output
|
||||
bsize = byte_size($(nf-2));
|
||||
bsize = byte_size($(NF-2));
|
||||
} else {
|
||||
next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user