[pnfs] LAYOUTRECALL testing

Iyer, Rahul Rahul.Iyer at netapp.com
Thu Sep 7 18:57:44 EDT 2006


Hi,

I'm implementing a command on our Netapp filers to recall layouts to a
given file. However, I'm running into an issue. When the LAYOUTRECALL
rpc is issued, it returns with a status of 10001, or bad file handle.
The filehandle however seems to be good because this is the same file
handle the client supplies in the GETFH operation in the LAYOUTGET
compound. 

When I traced this on the client, I realized that in
nfs_layout_find_inode, the code doesn't enter either of the
list_for_each_entry loops. Here's how I was testing the code

1. copy a file via pNFS (You now have the layout)

2. Issue the LAYOUTRECALL RPC

I'm guessing the reason for this is that the file is closed at the end
of the cp command, and so the file state is wiped out on the server. So,
nfs_layout_find_inode fails to find the inode. Is my guess correct?

Any ideas? Also, could someone tell me what nfs4_state_owner is? The
comment says it is used to detect replays, but I'm not sure how.

Thanks

Rahul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux-nfs.org/pipermail/pnfs/attachments/20060907/45816360/attachment.htm


More information about the pNFS mailing list