From d009a46d4157d4747ad868a895b42337b22c8803 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 9 Feb 2001 01:44:19 +0000 Subject: [PATCH] setup the out file according to enabled mount options (dquots permute the logprint output when any form of quota is enabled). --- 018 | 14 +- 018.usrquota | 13677 +++++++++++++++++++++++++++++++++++++++++++++++++ 050 | 8 +- 3 files changed, 13693 insertions(+), 6 deletions(-) create mode 100755 018.usrquota diff --git a/018 b/018 index fd02e4dc..ad1d11e3 100755 --- a/018 +++ b/018 @@ -117,7 +117,7 @@ _require_scratch echo "*** init FS" -rm -f $seq.full +rm -f $seq.out $seq.full umount $SCRATCH_DEV >/dev/null 2>&1 _full "mkfs" @@ -126,7 +126,17 @@ mkfs -t xfs -f $SCRATCH_DEV >>$seq.full 2>&1 \ _full " mount" mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full 2>&1 \ || _fail "mount failed" - + +if src/feature -U $SCRATCH_DEV +then + ln $seq.usrquota $seq.out +elif src/feature -G $SCRATCH_DEV +then + ln $seq.grpquota $seq.out +else + ln $seq.noquota $seq.out +fi + # generate some log traffic - but not too much - life gets a little # more complicated if the log wraps around. This traffic is # pretty much arbitary, but could probably be made better than this. diff --git a/018.usrquota b/018.usrquota new file mode 100755 index 00000000..af458921 --- /dev/null +++ b/018.usrquota @@ -0,0 +1,13677 @@ +QA output created by 018 +*** init FS +### xfs_logprint output ### +xfs_logprint: + data device: + log device: daddr: length: + +cycle: 1 version: 1 lsn: 1,0 tail_lsn: 1,0 +length of Log Record: 20 prev offset: -1 num ops: 1 +uuid: format: +---------------------------------------------------------------------------- +Oper (0): tid: len: clientid: LOG flags: UNMOUNT +Unmount filesystem + +============================================================================ +cycle: 1 version: 1 lsn: 1,2 tail_lsn: 1,2 +length of Log Record: 6124 prev offset: 0 num ops: 27 +uuid: format: +---------------------------------------------------------------------------- +Oper (0): tid: len: clientid: TRANS flags: START +---------------------------------------------------------------------------- +Oper (1): tid: len: clientid: TRANS flags: none +TRAN: type: QM_QINOCREATE tid: num_items: 4 +---------------------------------------------------------------------------- +Oper (2): tid: len: clientid: TRANS flags: none +BUF: #regs: 2 start blkno: () len: bmap size: 1 +Oper (3): tid: len: clientid: TRANS flags: none +AGI Buffer: XAGI +ver: 1 seq#: 0 len: cnt: 64 root: 3 +level: 1 free#: 0x3c newino: 0x80 +bucket[0 - 3]: 0xffffffff 0xffffffff 0xffffffff 0xffffffff +bucket[4 - 7]: 0xffffffff 0xffffffff 0xffffffff 0xffffffff +bucket[8 - 11]: 0xffffffff 0xffffffff 0xffffffff 0xffffffff +bucket[12 - 15]: 0xffffffff 0xffffffff 0xffffffff 0xffffffff +bucket[16 - 19]: 0xffffffff +---------------------------------------------------------------------------- +Oper (4): tid: len: clientid: TRANS flags: none +BUF: #regs: 2 start blkno: () len: bmap size: 2 +Oper (5): tid: len: clientid: TRANS flags: none +BUF DATA +---------------------------------------------------------------------------- +Oper (6): tid: len: clientid: TRANS flags: none +INODE: #regs: 2 ino: 0x83 flags: 0x1 dsize: 0 + blkno: len: boff: +Oper (7): tid: len: clientid: TRANS flags: none +INODE CORE +magic 0x494e mode 0100000 version 1 format 2 +nlink 1 uid 0 gid 0 +atime