[CentOS] Problem with NFS4 and CentOs 5.8

Mon Apr 9 23:08:47 UTC 2012
Veli-Pekka Kestilä <centos at vpk.nu>


I hope someone could give me help with following problem on centos 5.8 
kernel and nfs4.

On server i have bind mounted directory shared to the client with 
following setup:
mounted directory:
     /srv/nfs/imagetest on /exports/imagetest type none (rw,bind)

/etc/exports file:

On client I have mounted it with following command: on /media/nfs type nfs4 

This works fine with kernel: 2.6.18-274.17.1.el5.centos.plusxen

But with 2.6.18-308.1.1.el5.centos.plusxen I get the following error:
     -bash: cd: imagetest/: Not a directory when accessing the share.

If I disable nohide-option I can access the directory, but with the 
contents of the original /exports/imagetest without the mounting.