Hi,
I need to complete my solution. The above patch is for the server-side and the following fixes the one for the client (chroot):
{{{ --- ltspfs-1.1/src/ltspfsd_functions.c +++ ltspfs-1.1/src/ltspfsd_functions.c @@ -895,8 +895,8 @@ xdr_int(&out, &i); /* dummy length */ i = LTSP_STATUS_OK; /* OK status */ xdr_int(&out, &i); - xdr_int(&out, &f_type); /* type of fs */ - xdr_int(&out, &f_bsize); /* optimal transfer block sz */ + xdr_int(&out, &stbuf.f_type); /* type of fs */ + xdr_int(&out, &stbuf.f_bsize); /* optimal transfer block sz */ xdr_u_longlong_t(&out, &stbuf.f_blocks); /* total data blocks in fs */ xdr_u_longlong_t(&out, &stbuf.f_bfree); /* free blks in fs */ xdr_u_longlong_t(&out, &stbuf.f_bavail); /* free blks avail to non-su */ }}}
Still hopes this helps
Hi,
I need to complete my solution. The above patch is for the server-side and the following fixes the one for the client (chroot):
{{{ 1.1/src/ ltspfsd_ functions. c 1.1/src/ ltspfsd_ functions. c u_longlong_ t(&out, &stbuf.f_blocks); /* total data blocks in fs */ u_longlong_ t(&out, &stbuf.f_bfree); /* free blks in fs */ u_longlong_ t(&out, &stbuf.f_bavail); /* free blks avail to non-su */
--- ltspfs-
+++ ltspfs-
@@ -895,8 +895,8 @@
xdr_int(&out, &i); /* dummy length */
i = LTSP_STATUS_OK; /* OK status */
xdr_int(&out, &i);
- xdr_int(&out, &f_type); /* type of fs */
- xdr_int(&out, &f_bsize); /* optimal transfer block sz */
+ xdr_int(&out, &stbuf.f_type); /* type of fs */
+ xdr_int(&out, &stbuf.f_bsize); /* optimal transfer block sz */
xdr_
xdr_
xdr_
}}}
Still hopes this helps