mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/449: fix xfs info report output if realtime device specified
Modify the mkfs.xfs output so that "realtime =/dev/XXX" becomes "realtime =external" so that the output will match xfs_db, which doesn't take a rt device argument and thus does not know. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
890a5ae45e
commit
909f4322c6
+3
-1
@@ -46,7 +46,9 @@ cat $tmp.mkfs >> $seqres.full
|
||||
_scratch_xfs_db -c "info" > $tmp.dbinfo
|
||||
echo DB >> $seqres.full
|
||||
cat $tmp.dbinfo >> $seqres.full
|
||||
diff -u $tmp.mkfs $tmp.dbinfo
|
||||
# xfs_db doesn't take a rtdev argument, so it reports "realtime=external".
|
||||
# mkfs does, so make a quick substitution
|
||||
diff -u <(cat $tmp.mkfs | sed -e 's/realtime =\/.*extsz=/realtime =external extsz=/g') $tmp.dbinfo
|
||||
|
||||
_scratch_mount
|
||||
|
||||
|
||||
Reference in New Issue
Block a user