From: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/ioctl_loop05.c: skip test on overlay filesystem
Date: Tue, 12 Jan 2021 10:12:26 +0800 [thread overview]
Message-ID: <5FFD058A.5050104@cn.fujitsu.com> (raw)
In-Reply-To: <X/SEt8EfjP+w4EYw@yuki.lan>
Hi Radoslav
> Hi!
>> diff --git a/lib/tst_device.c b/lib/tst_device.c
>> index c096b418b..de64fd908 100644
>> --- a/lib/tst_device.c
>> +++ b/lib/tst_device.c
>> @@ -534,6 +534,10 @@ void tst_find_backing_dev(const char *path, char *dev)
>> if (stat(dev,&buf)< 0)
>> tst_brkm(TWARN | TERRNO, NULL, "stat(%s) failed", dev);
>>
>> - if (S_ISBLK(buf.st_mode) != 1)
>> - tst_brkm(TCONF, NULL, "dev(%s) isn't a block dev", dev);
>> + if (S_ISBLK(buf.st_mode) != 1) {
>> + if (tst_is_mounted(dev))
>> + tst_find_backing_dev(dev, dev);
>> + else
>> + tst_brkm(TCONF, NULL, "dev(%s) isn't a block
>> dev", dev);
>> + }
>> }
>>
>> My test environment is that
>> /dev/sda10 20G 623M 18G 4% /mnt/xfstests/test
>> /mnt/xfstests/test 20G 623M 18G 4% /mnt/xfstests/test/ovl-mnt
>> /dev/sda11 20G 46M 19G 1% /mnt/xfstests/scratch
>> /mnt/xfstests/scratch 20G 46M 19G 1% /mnt/xfstests/scratch/ovl-mnt
>>
>> and my TMPDIR env is /mnt/xfstests/test/ovl-mnt.
>
> Does this code works for everyone or should we apply patch that disables
> the test on overlay so that it's fixed for next release?
Thanks for this patch, merged.
Best Regards
Yang Xu
>
prev parent reply other threads:[~2021-01-12 2:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-15 15:56 [LTP] [PATCH] syscalls/ioctl_loop05.c: skip test on overlay filesystem Radoslav Kolev
2020-12-16 2:10 ` Yang Xu
2020-12-16 8:16 ` Radoslav Kolev
2020-12-16 8:30 ` Yang Xu
2021-01-05 15:24 ` Cyril Hrubis
2021-01-06 2:18 ` Yang Xu
2021-01-12 2:12 ` Yang Xu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5FFD058A.5050104@cn.fujitsu.com \
--to=xuyang2018.jy@cn.fujitsu.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.