Displaying 3 results from an estimated 3 matches for "nfs2_fhsize".
2005 Jun 05
0
fancy dump_fs for nfsmount
...e void dump_params(__u32 server,
 			       const char *path,
 			       const struct nfs_mount_data *data)
@@ -122,23 +149,7 @@
 static inline void dump_fh(const char *data, int len)
 {
 #ifdef NFS_DEBUG
-	int i = 0;
-	int max = len - (len % 8);
-
-	printf("Root file handle: %d bytes\n", NFS2_FHSIZE);
-
-	while (i < max) {
-		int j;
-
-		printf("  %4d:  ", i);
-		for (j = 0; j < 4; j++) {
-			printf("%02x %02x %02x %02x  ",
-			       data[i] & 0xff, data[i + 1] & 0xff,
-			       data[i + 2] & 0xff, data[i + 3] & 0xff);
-		}
-		i += j;
-		printf("...
2006 Jun 26
0
[klibc 14/43] Remove in-kernel nfsroot code
...p = xdr_encode_string(p, path);
-
-	req->rq_slen = xdr_adjust_iovec(req->rq_svec, p);
-	return 0;
-}
-
-static int
-xdr_decode_fhstatus(struct rpc_rqst *req, u32 *p, struct mnt_fhstatus *res)
-{
-	struct nfs_fh *fh = res->fh;
-
-	if ((res->status = ntohl(*p++)) == 0) {
-		fh->size = NFS2_FHSIZE;
-		memcpy(fh->data, p, NFS2_FHSIZE);
-	}
-	return 0;
-}
-
-static int
-xdr_decode_fhstatus3(struct rpc_rqst *req, u32 *p, struct mnt_fhstatus *res)
-{
-	struct nfs_fh *fh = res->fh;
-
-	if ((res->status = ntohl(*p++)) == 0) {
-		int size = ntohl(*p++);
-		if (size <= NFS3_FHSIZE) {
-...
2003 May 22
0
[PATCH 2.5.69 2/3] Remove NFS root support from the kernel
...eq->rq_slen = xdr_adjust_iovec(req->rq_svec, p);
-	return 0;
-}
-
-static int
-xdr_decode_fhstatus(struct rpc_rqst *req, u32 *p, struct mnt_fhstatus *res)
-{
-	struct nfs_fh *fh = res->fh;
-
-	memset((void *)fh, 0, sizeof(*fh));
-	if ((res->status = ntohl(*p++)) == 0) {
-		fh->size = NFS2_FHSIZE;
-		memcpy(fh->data, p, NFS2_FHSIZE);
-	}
-	return 0;
-}
-
-static int
-xdr_decode_fhstatus3(struct rpc_rqst *req, u32 *p, struct mnt_fhstatus *res)
-{
-	struct nfs_fh *fh = res->fh;
-
-	memset((void *)fh, 0, sizeof(*fh));
-	if ((res->status = ntohl(*p++)) == 0) {
-		int size = ntohl(*p++)...