Bug 1902445
Summary: | Seeing "Input/output error" when mounting a NFS export with AMD (am-utils-6.2.0-27), the file handle given by NFS server is 56 bytes | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Madhu Thorat <madhu.punjabi> | ||||
Component: | am-utils | Assignee: | Ian Kent <ikent> | ||||
Status: | ASSIGNED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | epel7 | CC: | ikent, kzak | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | Bug | |||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Madhu Thorat
2020-11-29 03:23:55 UTC
(In reply to Madhu Thorat from comment #0) > > Additional info: > Based on the email exchange in am-utils mailing list at > https://lists.fsl.cs.sunysb.edu/mailman/private/am-utils/2020-November/ > thread.html, following patch recommend by Ian Kent (ikent) helps > to fix this issue: > > > diff --git a/conf/fh_dref/fh_dref_linux.h > > > b/conf/fh_dref/fh_dref_linux.h > > > index 7ffa5b50..70aac711 100644 > > > --- a/conf/fh_dref/fh_dref_linux.h > > > +++ b/conf/fh_dref/fh_dref_linux.h > > > @@ -1,2 +1,2 @@ > > > /* $srcdir/conf/fh_dref/fh_dref_linux.h */ > > > -#define NFS_FH_DREF(dst, src) memcpy((char *) &(dst.data), > > (char *) src, sizeof(struct nfs_fh)) > > > +#define NFS_FH_DREF(dst, src) memcpy(&(dst.data), src, > > sizeof(dst.data)) > > Please have this patch in a stable package/rpm which can be available for > general use. Thank you. I have not been able to find any further problems so it may be that my variant of the NFS_FH_DREF patch is broken. I will change my patch to the above patch but if that doesn't resolve the problem we will need to look further. > > Attaching tcpdump captured when using AMD and doing mount. I'll have a look at that, thanks. Could you try this package please: https://koji.fedoraproject.org/koji/taskinfo?taskID=56394193 Ian, Thank you. Tried the new package, it is working as expected. # rpm -Uvh am-utils-6.2.0-28.el7.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:am-utils-5:6.2.0-28.el7 ################################# [100%] [root@c84f1u04 home]# ls -lrt /usr/sbin/amd -rwxr-xr-x 1 root root 275008 Nov 29 04:43 /usr/sbin/amd # /usr/sbin/amd Nov 30 05:08:18 c84f1u04 amd[27669]/info: using configuration file /etc/amd.conf # cd /net1/myexp1 # mount | grep myexp1 c84f1u07:/ibm/gpfs0/testexp1 on /home/myexp1 type nfs (rw,nosuid,nodev,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=2049,timeo=600,retrans=3,sec=sys,local_lock=none,addr=9.47.91.54) |