[Bug 1021579] Re: ltspfs shows wrong partition size when plug-in usb drive into thin client
datube
1021579 at bugs.launchpad.net
Tue Apr 15 10:53:19 UTC 2014
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
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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
Status in Linux Terminal Server Project:
New
Status in “ltspfs” package in Ubuntu:
Confirmed
Bug description:
Ubuntu 12.04, ltspfs 1.1-2
When I plug-in usb drive with partition (vfat or ntfs) into thin client, it shows me wrong partition size. For example: I mount usb drive with vfat 4Gb, but df -h on server shows me:
ltspfs 967K 432K 536K 45% /media/user/Ubuntu
Where 967K is partition size.
In thin client cat /var/run/ltspfs_fstab
/dev/sda1 /var/run/drives/Ubuntu vfat rw,defaults,uft8 0 0
But mount didn't show this mount point on thin client, and /var/run/drives/Ubuntu folder is empty.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ltsp/+bug/1021579/+subscriptions
More information about the foundations-bugs
mailing list