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

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxxxxxx>
cc: linux-afs@xxxxxxxxxxxxxxxxxxx
---

 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





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux