From: Ruediger Meier <sweet_f_a@gmx.de>
To: Benno Schulenberg <bensberg@justemail.net>
Cc: "Util-Linux" <util-linux@vger.kernel.org>
Subject: Re: cancelling the tests says that they all passed
Date: Thu, 17 Mar 2016 20:48:26 +0100 [thread overview]
Message-ID: <201603172048.26734.sweet_f_a@gmx.de> (raw)
In-Reply-To: <1458239000.908653.552257010.7074E741@webmail.messagingengine.com>
On Thursday 17 March 2016, Benno Schulenberg wrote:
> On Thu, Mar 17, 2016, at 18:18, Ruediger Meier wrote:
> > Could you show us
> > $ cat /proc/sysvipc/shm
> key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime
> 0 131072 1600 393216 1409 921 2 1000 1000 1000 1000 1458201259 0 1458201259
Ok, nowadays we have just two more columns at the end: "rss" and "swap".
Could be fixed probably. We have also still fallback code for the old
syscall which is used if there is no /proc at all.
Actually it was on my imaginary TODO list to review all /proc scanf
code for robustness against future column additions.
>
> > Generally I think we should make a statement about "what is the
> > minimum kernel version" for util-linux.
>
> A statement. And let the tests check the version and print
> a warning in case it's too old.
Actually a failed test is the best "warning" (based on facts rather
than parsed version numbers):
FAILED == "Stop! something is wrong with ul and your system."
But IMO ok to give users a hint like "your kernel might be too old".
This warning could be repeated when there are failed tests.
On the other hand this reminds me about all these wrong >2.6 version
checks, and why uname26 was invented :)
> > Two years ago I decided for myself that
> > I should fix bugs for newer kernels first. On the other hand 2.6.32
> > would have been worth to support because it was officially
> > maintained from 2009 until last month!
>
> I'm not expecting you to fix things. It's just nice to put
> things in a harsher environment and see how they hold up. :)
> > I guess the kernel syscall does not return error thus our fallocate
> > succeed but the file is empty. It's a kernel bug we can't fix. Or
> > should we add a stat() call to validate the syscall?
>
> That sounds like a good idea: check, and double check.
>
> Benno
prev parent reply other threads:[~2016-03-17 19:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 9:44 cancelling the tests says that they all passed Benno Schulenberg
2016-03-17 10:35 ` Ruediger Meier
2016-03-17 11:53 ` Benno Schulenberg
2016-03-17 12:50 ` Ruediger Meier
2016-03-17 16:49 ` Benno Schulenberg
2016-03-17 17:18 ` Ruediger Meier
2016-03-17 18:23 ` Benno Schulenberg
2016-03-17 19:48 ` Ruediger Meier [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=201603172048.26734.sweet_f_a@gmx.de \
--to=sweet_f_a@gmx.de \
--cc=bensberg@justemail.net \
--cc=util-linux@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox