[PVFS2-CVS] commit by neill in pvfs2-1/test/kernel/linux-2.6:
pvfs2-client-core.c
CVS commit program
cvs at parl.clemson.edu
Wed Feb 11 18:14:49 EST 2004
Update of /projects/cvsroot/pvfs2-1/test/kernel/linux-2.6
In directory parlweb:/tmp/cvs-serv6676/test/kernel/linux-2.6
Modified Files:
pvfs2-client-core.c
Log Message:
- started mapping pvfs2 error codes to kernel error codes
- fix the case of assertion failing when a new file is attempted to be
created when there is no space left on the server (and make sure it's
properly reported back to the client)
- cleanups
Index: pvfs2-client-core.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/test/kernel/linux-2.6/pvfs2-client-core.c,v
diff -p -u -r1.45 -r1.46
--- pvfs2-client-core.c 30 Jan 2004 20:12:16 -0000 1.45
+++ pvfs2-client-core.c 11 Feb 2004 23:14:49 -0000 1.46
@@ -85,7 +85,7 @@ static int service_lookup_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_LOOKUP;
- out_downcall->status = -1;
+ out_downcall->status = ret;
out_downcall->resp.lookup.refn.handle = 0;
out_downcall->resp.lookup.refn.fs_id = 0;
}
@@ -173,7 +173,7 @@ static int service_create_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_CREATE;
- out_downcall->status = -1;
+ out_downcall->status = ret;
out_downcall->resp.create.refn.handle = 0;
out_downcall->resp.create.refn.fs_id = 0;
}
@@ -229,7 +229,7 @@ static int service_symlink_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_SYMLINK;
- out_downcall->status = -1;
+ out_downcall->status = ret;
out_downcall->resp.sym.refn.handle = 0;
out_downcall->resp.sym.refn.fs_id = 0;
}
@@ -460,7 +460,7 @@ static int service_getattr_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_GETATTR;
- out_downcall->status = -1;
+ out_downcall->status = ret;
}
else
{
@@ -520,7 +520,7 @@ static int service_setattr_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_SETATTR;
- out_downcall->status = -1;
+ out_downcall->status = ret;
}
else
{
@@ -615,7 +615,7 @@ static int service_mkdir_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_MKDIR;
- out_downcall->status = -1;
+ out_downcall->status = ret;
out_downcall->resp.mkdir.refn.handle = 0;
out_downcall->resp.mkdir.refn.fs_id = 0;
}
@@ -663,7 +663,7 @@ static int service_readdir_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_READDIR;
- out_downcall->status = -1;
+ out_downcall->status = ret;
out_downcall->resp.readdir.dirent_count = 0;
}
else
@@ -782,7 +782,7 @@ static int service_statfs_request(
/* we need to send a blank response */
out_downcall->type = PVFS2_VFS_OP_STATFS;
- out_downcall->status = -1;
+ out_downcall->status = ret;
}
else
{
More information about the PVFS2-CVS
mailing list