From: Marko O. <d0...@us...> - 2009-10-23 14:52:44
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "UNNAMED PROJECT". The branch, master has been updated via 86f5386d9026558d5a064668665183a206e35712 (commit) from 1f222e773991a0b02466bcc8c8d6b75fe2670062 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 86f5386d9026558d5a064668665183a206e35712 Author: Marko Obrovac <mar...@in...> Date: Fri Oct 23 14:48:26 2009 +0000 Conform mkfs_kdfs to the new kerrighed libraries diff --git a/tools/mkfs_kdfs.c b/tools/mkfs_kdfs.c index c0399eb..7e859fa 100644 --- a/tools/mkfs_kdfs.c +++ b/tools/mkfs_kdfs.c @@ -34,7 +34,7 @@ /* KDDM includes */ #include <krgnodemask.h> -#include <kerrighed_tools.h> +#include <proc.h> /* From "super.h": */ #define KDFS_ROOT_INODEID 1 @@ -101,10 +101,10 @@ void usage() int get_nodeid() { - int nodeid, ret; + int nodeid; - ret = call_kerrighed_services(KSYS_GET_NODE_ID, &nodeid); - if (ret != 0) { + nodeid = get_node_id(); + if (nodeid == -1) { fprintf(stderr, "Error: cannot get node ID\n"); exit(EXIT_FAILURE); } @@ -182,10 +182,6 @@ int main(int argc, char* argv[]) /* TODO PRIORITY 3: Sanitary tests in order to check and valid nodeid */ nodeid = get_nodeid(); - if (nodeid < 0) { - fprintf(stderr, "Error: cannot get Kerrighed node ID\n"); - exit(EXIT_FAILURE); - } sprintf(root_file, "%s/%d", argv[1], nodeid); mkdir(root_file, 0777); ----------------------------------------------------------------------- Summary of changes: tools/mkfs_kdfs.c | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) hooks/post-receive -- UNNAMED PROJECT |