Problem with NFSv3 in inode data transfer

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

 



We are working on our personal NFS File System version 3 Extension on
Linux Kernel 2.6.34 and we have a problem.

Our problem is:

We want to add four 28-byte-chars to nfs_fattr struct to make my
client read data in the inode from the server for each file/directory
so encoded and decoded them in fs/nfs/nfs3xdr.c making them work.

Our patch works. We worked on functions encode_fattr3(), decode_fattr(),
and in costants:
nfs3_fattr_sz (21+1+(NFS3_MAXTAGLEN>>2)*4) (located in fs/nfs/nfs3xdr.c),
#define NFS3_POST_OP_ATTR_WORDS         (22+1+(NFS3_MAXTAGLEN>>2)*4)
(located in include/linux/nfs3.h).

where NFS3_MAXTAGLEN is 28 (max number of chars writable in each field).

When trying to list files in our nfs client directory, kernel returns

ls: reading directory . : Input/Output Error

even if from the dmesg log data seem transfering correctly.
Could be a problem over 20 fields?

We appreciate any help.
Thanks in advance,
Best Regards
Nicola Corriero - Giuseppe Gargiuolo
HiXOS Group
University of Bari
Italy
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux