diff mbox series

[7/9] afs: Indicate the minimum DIO alignment is 1

Message ID 162194967599.4011860.12553916320978856647.stgit@warthog.procyon.org.uk (mailing list archive)
State New, archived
Headers show
Series Add support for using xfstests to test AFS | expand

Commit Message

David Howells May 25, 2021, 1:34 p.m. UTC
Make the _min_dio_alignment() query return 1 if the filesystem to be
operated upon is AFS.  It has no alignment or size granularity requirements
for doing read and write RPCs.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-afs@lists.infradead.org
---

 common/rc |    2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/common/rc b/common/rc
index c0659215..cb60c35b 100644
--- a/common/rc
+++ b/common/rc
@@ -3827,6 +3827,8 @@  _min_dio_alignment()
 
     if [ -b "$dev" ]; then
         blockdev --getss $dev
+    elif [ "$FSTYP" = afs ]; then
+	echo 1
     else
         $here/src/feature -s
     fi