Fix grammar problems in 0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-error.patch
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
This commit is contained in:
parent
2059e2ca06
commit
30a9e41fde
@ -16,7 +16,7 @@ index 25a5f2a..dc3026a 100755
|
|||||||
# If block directory exists && and PQUAL != 0, we unmapped lun0 and just have a well-known lun
|
# If block directory exists && and PQUAL != 0, we unmapped lun0 and just have a well-known lun
|
||||||
# If block directory doesn't exist && PQUAL == 0, we mapped a real lun0
|
# If block directory doesn't exist && PQUAL == 0, we mapped a real lun0
|
||||||
- if [ "$lun" -eq 0 ] && [ $IPTYPE -eq 0 ] ; then
|
- if [ "$lun" -eq 0 ] && [ $IPTYPE -eq 0 ] ; then
|
||||||
+ if [ "x$lun" -eq x0 ] && [ x$IPTYPE -eq 0 ] ; then
|
+ if [ x"$lun" = x0 ] && [ x$IPTYPE = x0 ] ; then
|
||||||
if [ $RC = 2 ] ; then
|
if [ $RC = 2 ] ; then
|
||||||
if [ -e "$devpath" ] ; then
|
if [ -e "$devpath" ] ; then
|
||||||
if [ -d "$devpath/block" ] ; then
|
if [ -d "$devpath/block" ] ; then
|
||||||
@ -25,7 +25,7 @@ index 25a5f2a..dc3026a 100755
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
- elif [ $RC = 0 ] && [ $IPTYPE -eq 0 ] ; then
|
- elif [ $RC = 0 ] && [ $IPTYPE -eq 0 ] ; then
|
||||||
+ elif [ $RC = 0 ] && [ x$IPTYPE -eq x0 ] ; then
|
+ elif [ $RC = 0 ] && [ x$IPTYPE = x0 ] ; then
|
||||||
if [ -e "$devpath" ] ; then
|
if [ -e "$devpath" ] ; then
|
||||||
if [ ! -d "$devpath/block" ] ; then
|
if [ ! -d "$devpath/block" ] ; then
|
||||||
remappedlun0=1 # Transition from well-known to real lun 0
|
remappedlun0=1 # Transition from well-known to real lun 0
|
||||||
@ -34,7 +34,7 @@ index 25a5f2a..dc3026a 100755
|
|||||||
# Special case: lun 0 just got added (for reportlunscan),
|
# Special case: lun 0 just got added (for reportlunscan),
|
||||||
# so make sure we correctly treat it as new
|
# so make sure we correctly treat it as new
|
||||||
- if [ "$lun" = "0" ] && [ "$1" = "1" ] && [ -z "$remappedlun0" ] ; then
|
- if [ "$lun" = "0" ] && [ "$1" = "1" ] && [ -z "$remappedlun0" ] ; then
|
||||||
+ if [ x"$lun" = x"0" ] && [ "$1" = "1" ] && [ -z "$remappedlun0" ] ; then
|
+ if [ x"$lun" = x"0" ] && [ x"$1" = x"1" ] && [ -z "$remappedlun0" ] ; then
|
||||||
SCSISTR=""
|
SCSISTR=""
|
||||||
printf "\r\e[A\e[A\e[A"
|
printf "\r\e[A\e[A\e[A"
|
||||||
fi
|
fi
|
||||||
@ -43,7 +43,7 @@ index 25a5f2a..dc3026a 100755
|
|||||||
else
|
else
|
||||||
echo "scsi remove-single-device $devnr" > /proc/scsi/scsi
|
echo "scsi remove-single-device $devnr" > /proc/scsi/scsi
|
||||||
- if [ $RC -eq 1 ] || [ "$lun" -eq 0 ] ; then
|
- if [ $RC -eq 1 ] || [ "$lun" -eq 0 ] ; then
|
||||||
+ if [ $RC -eq 1 ] || [ x"$lun" -eq x0 ] ; then
|
+ if [ $RC -eq 1 ] || [ x"$lun" = x0 ] ; then
|
||||||
# Try readding, should fail if device is gone
|
# Try readding, should fail if device is gone
|
||||||
echo "scsi add-single-device $devnr" > /proc/scsi/scsi
|
echo "scsi add-single-device $devnr" > /proc/scsi/scsi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Name: sg3_utils
|
Name: sg3_utils
|
||||||
Version: 1.45
|
Version: 1.45
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Utilities that send SCSI commands to devices.
|
Summary: Utilities that send SCSI commands to devices.
|
||||||
License: GPL-2.0-or-later AND BSD
|
License: GPL-2.0-or-later AND BSD
|
||||||
URL: http://sg.danny.cz/sg/sg3_utils.html
|
URL: http://sg.danny.cz/sg/sg3_utils.html
|
||||||
@ -73,6 +73,10 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 10 2020 haowenchao <haowenchao@huawei.com> - 1.45-3
|
||||||
|
- Fix grammar problems caused by patch
|
||||||
|
0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-error.patch
|
||||||
|
|
||||||
* Wed Nov 5 2020 lixiaokeng <lixiaokeng@huawei.com> - 1.45-2
|
* Wed Nov 5 2020 lixiaokeng <lixiaokeng@huawei.com> - 1.45-2
|
||||||
- add make check
|
- add make check
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user