Re: [PATCH v5 09/10] fstests: add pre_clone_tune_uuid() healper
Anand Jain <[email protected]>
| Newsgroups | org.kernel.vger.fstests,org.kernel.vger.linux-btrfs,org.kernel.vger.linux-ext4,org.kernel.vger.linux-xfs |
|---|---|
| Message-ID | <[email protected]> |
On 21/5/26 20:54, Anand Jain wrote: > pre_clone_tune_uuid() changes the UUID of the golden filesystem before it > is cloned. > > Signed-off-by: Anand Jain <[email protected]> > --- > common/rc | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/common/rc b/common/rc > index 7ae9877918c8..1b3a32d9ea9b 100644 > --- a/common/rc > +++ b/common/rc > @@ -1517,6 +1517,26 @@ _scratch_resvblks() > esac > } > > +pre_clone_tune_uuid() I missed the "_" prefix for pre_clone_tune_uuid() to match the common/rc style. Zorro, If there are no other rerolls, can you please fix it at merge or should I resend? Thanks > +{ > + local temp_mnt=$TEST_DIR/${seq}_mnt > + local dev=$1 > + > + case $FSTYP in > + xfs) > + _require_command "$XFS_ADMIN_PROG" "xfs_admin" > + $XFS_ADMIN_PROG -U generate $dev >> $seqres.full > + ;; > + btrfs) > + _require_command "$BTRFS_TUNE_PROG" "btrfstune" > + $BTRFS_TUNE_PROG -m $dev > + ;; > + *) > + _notrun "Require filesystem with metadata_uuid feature" > + ;; > + esac > +} > + > _loop_image_create_clone() > { > local -n _ret=$1