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

David Howells
2021-05-25T13:35:14Z

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 --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