Pivosgroup / buildroot-linux

GNU General Public License v2.0
33 stars 67 forks source link

Libnfs 1.3 - initial mount problem (Synology only?) #5

Open yang299kms opened 12 years ago

yang299kms commented 12 years ago

When using the latest xbmc with nfs exports from my synology 412+ Libnfs v1.3 always fails on the initial mount after loading the .so. The next export i try to mount works fine. The first export I try to mount will continue to fail until the context is delete during idle processing. If I try to mount again before libnfs is unloaded then the mount will be good. The test exports I have from my vm build host does not have this problem. All the ports are open and listening on the Synology. Oddly libnfs is unable to connect using rpc on port 2049, the previous rpc calls on port 111 and port paper port both work. And the next call to nfs_mount on a different export will work. Since libnfs needs to be version 1.3 for the latest xbmc I had no way other then putting in a hack into NFSFile.cpp to delete the failed conext and reset the last acceded time variable after mount fail. This let's me try to mount the same export again and succeed. When I setup the Linux vm exports I copied the options from my Synology exports file. The previous libnfs did not have this problem.

davilla commented 12 years ago

can you reproduce on desktop mainline ?

davilla commented 12 years ago

or alpha6

yang299kms commented 12 years ago

Desktop editions don't have this problem. I tried nightly builds of ios and windows. I also tried the libnfs examples in Linux and they work fine. The same examples compiled for the xios do not work and have the same problems

yang299kms commented 12 years ago

i compiled the latest xbmc from mainline for linux and the libnfs problem does not happen.

/usr/lib/i386-linux-gnu/libnfs.so.1 -> libnfs.so.1.0.3 /usr/lib/i386-linux-gnu/libnfs.so -> libnfs.so.1.0.3 /usr/lib/i386-linux-gnu/libnfs.so.1.0.3

yang299kms commented 11 years ago

i tried the latest libnfs from https://github.com/sahlberg/libnfs and this isn't an issue anymore