And while I'm at these trivial changes, this patch changes np_uerror to
np_suerror in statfs.
This won't leave the user wondering which file statfs could not find.
[EMAIL PROTECTED]:~/projects/sxcpu/statfs$ ./statfs
No such file or directory
Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>
Index: statfs.c
===================================================================
--- statfs.c (revision 685)
+++ statfs.c (working copy)
@@ -337,7 +337,7 @@
f = fopen(path, "r");
if (!f) {
- np_uerror(errno);
+ np_suerror(path, errno);
return -1;
}
On Wed, 2008-09-03 at 13:41 -0600, Abhishek Kulkarni wrote:
> Move the statfs configuration file path to /etc/xcpu.
>
> Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>
>
> Index: statfs.c
> ===================================================================
> --- statfs.c (revision 685)
> +++ statfs.c (working copy)
> @@ -495,7 +495,7 @@
>
> nwthreads = 8;
> afname = "/etc/xcpu/admin_key";
> - cfg = "/etc/clustermatic/statfs.conf";
> + cfg = "/etc/xcpu/statfs.conf";
> upool = np_priv_userpool_create();
> if (!upool)
> goto error;
>
>