From: Petr Vorel <pvorel@suse.cz>
To: "Yang Xu (Fujitsu)" <xuyang2018.jy@fujitsu.com>
Cc: "ltp@lists.linux.it" <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v1] libswap.c: Improve caculate swap dev number
Date: Sun, 3 Mar 2024 14:14:02 +0100 [thread overview]
Message-ID: <20240303131402.GC1856074@pevik> (raw)
In-Reply-To: <5681819a-2a3a-4c47-a1f1-3f9f49c994d9@fujitsu.com>
Hi Wei, Xu,
> Hi Wei
> > I encounter a dead loop on following code in our test on ppc64 machine:
> > while ((c = fgetc(fp)) != EOF)
> > I think "/proc/swaps" is not normal file and can not get EOF in some situation,
> > so i use fgets a line and caculate swap dev number.
I guess the problem has been fixed by another patch [1], thus closing it in
patchwork. Please let me know if not.
Kind regards,
Petr
[1] https://github.com/linux-test-project/ltp/commit/0f5d8c520d4e5b22325526eab41ed6bcad1847fc
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-03-03 13:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 6:27 [LTP] [PATCH v1] libswap.c: Improve caculate swap dev number Wei Gao via ltp
2024-03-01 6:45 ` Yang Xu (Fujitsu) via ltp
2024-03-03 13:14 ` Petr Vorel [this message]
2024-03-04 8:49 ` Li Wang
2024-03-04 9:04 ` Petr Vorel
2024-03-04 9:18 ` Yang Xu (Fujitsu) via ltp
2024-03-04 10:04 ` Li Wang
2024-03-05 4:01 ` Wei Gao via ltp
2024-03-05 10:15 ` Petr Vorel
2024-03-05 14:10 ` [LTP] [PATCH v2] libswap.c: Improve calculate " Wei Gao via ltp
2024-03-05 14:45 ` Petr Vorel
2024-03-05 21:04 ` Petr Vorel
2024-03-06 1:32 ` Yang Xu (Fujitsu) via ltp
2024-03-06 9:59 ` Petr Vorel
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=20240303131402.GC1856074@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=xuyang2018.jy@fujitsu.com \
/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.