mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
lsunit isn't always set when running _log_sunit, so give it a default value.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# test end of log overwrite bug #796141
|
||||
#
|
||||
#-----------------------------------------------------------------------
|
||||
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
|
||||
# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of version 2 of the GNU General Public License as
|
||||
@@ -139,7 +139,7 @@ _log_head()
|
||||
|
||||
_log_sunit()
|
||||
{
|
||||
if [ $lsunit -eq 0 ]; then
|
||||
if [ ${lsunit:-0} -eq 0 ]; then
|
||||
echo $dbsize
|
||||
else
|
||||
expr $lsunit \* $dbsize
|
||||
|
||||
Reference in New Issue
Block a user