[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 11:15:39 UTC 2014


Hi again... I made a mistake (guess I need more coffee or something) ,
first patch is reversed... It should read:

{{{
--- 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, &f_type); /* type of fs */
- xdr_int(&in, &f_bsize); /* optimal transfer block sz */
+ xdr_int(&in, &stbuf->f_type); /* type of fs */
+ xdr_int(&in, &stbuf->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, &f_namelen);
+ xdr_int(&in, &stbuf->f_namelen);

     return OK;
 }

}}}

-- 
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