public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: fstests@vger.kernel.org
Cc: dhowells@redhat.com
Subject: Making xfstests work with the in-kernel AFS filesystem
Date: Sun, 14 Jun 2020 21:05:26 +0100	[thread overview]
Message-ID: <172372.1592165126@warthog.procyon.org.uk> (raw)

Hi,

I've been working on making it possible to use xfstests with the in-kernel AFS
filesystem.  With a few kernel patches, I've got it down to 17 failing tests
from -g quick.

Most of the remaining tests fall into a couple of classes and I wonder what
the best way to handle them is:

 (1) Features that AFS doesn't support - such as ctime, device files and
     fifos.  I have managed to emulate ctime in the fs driver, but that leaves
     mknod and mkfifo.

     I've tried to modify generic/294 along the lines of generic/050 so that
     it can have different comparison data depending on whether mknod exists
     or not, but I can't get it to work.  I've supplied a cfg file and an
     alternate verified output file, but now it just says "no qualified
     output" and does nothing.  I can't see how it's meant to work, and README
     and the stuff in doc/ doesn't help.

     Should I split tests into two where, say, one part does things on regular
     files, dirs and symlinks and the other does things on more exotic types,
     such as fifos.  generic/423 is a prime example of this.

 (2) Differences in security model.  Access to AFS is governed primarily by
     the kerberos ticket in your keyring and is evaluated on the server (which
     gives you a permissions mask that you can cache) - and not by what your
     process uid/gid/grouplist say compared to the uid/gid on the file and
     most of the mode bits are ignored as well.

Any thoughts on this?  Should I add more _require_xxx macros for all of these
things?

Also, would there be interest in patches to automate some of this from the
fsinfo() syscall I've proposed which allows the filesystem indicate its
capabilities?

David


             reply	other threads:[~2020-06-14 20:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-14 20:05 David Howells [this message]
2020-06-14 20:17 ` [WIP][PATCH] Add support for AFS David Howells

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=172372.1592165126@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=fstests@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