edubuntu-bugs team mailing list archive
-
edubuntu-bugs team
-
Mailing list archive
-
Message #06149
[Bug 1021579] Re: ltspfs shows wrong partition size when plug-in usb drive into thin client
Hi,
I've downloaded the sources for the package "ltspfs", applied the
following patch, compiled it, replaced "/usr/bin/ltspfs" manually and
then it works as expected
Patch:
{{{
--- ltspfs-1.1/src/ltspfs.c
+++ ltspfs-1.1/src/ltspfs.c
@@ -907,14 +907,14 @@
if (ret)
return parse_return(&in);
- xdr_int(&in, &stbuf->f_type); /* type of fs */
- xdr_int(&in, &stbuf->f_bsize); /* optimal transfer block sz */
+ xdr_int(&in, &f_type); /* type of fs */
+ xdr_int(&in, &f_bsize); /* optimal transfer block sz */
xdr_u_longlong_t(&in, &stbuf->f_blocks); /* total data blocks in fs */
xdr_u_longlong_t(&in, &stbuf->f_bfree); /* free blks in fs */
xdr_u_longlong_t(&in, &stbuf->f_bavail); /* free blks avail to non-su */
xdr_u_longlong_t(&in, &stbuf->f_files); /* total file nodes in fs */
xdr_u_longlong_t(&in, &stbuf->f_ffree); /* free file nodes in fs */
- xdr_int(&in, &stbuf->f_namelen);
+ xdr_int(&in, &f_namelen);
return OK;
}
}}}
Hope this helps, would be very great if it would be fixed...
--
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to ltspfs in Ubuntu.
https://bugs.launchpad.net/bugs/1021579
Title:
ltspfs shows wrong partition size when plug-in usb drive into thin
client
To manage notifications about this bug go to:
https://bugs.launchpad.net/ltsp/+bug/1021579/+subscriptions
References