[Bug 135812] Re: can't add files to mounted volume, no free space sony Z610i
kriomant
kriomant at gmail.com
Tue Mar 24 10:59:37 UTC 2009
I've implemented getting total/free space statistics for my phone -
Nokia N70. It should work for other Nokia phones too, please report
results here.
Since phone may have several memory devices (e.g. internal memory and
memory card), you must specify which one you want to use. obexfs now
have '-r' (or '--root') option for that. If it is omitted (which is
equivalent to --root="/"), obexfs will work as usual and show folders
like 'c:' and 'e:' in mount point, but it will fail to report total/free
space. This is just for compatibility with unpatched version.
In order to get proper space statistics, you must specify a root, like
--root=e: (trailing slash or backslash may be appended and is ignored).
Then obexfs will report space statistics properly. You may also specify
some folder as root, like --root="e:/Video".
You can view list of available memory devices with 'obexftp
--capability'.
If your phone isn't supported or you still get zero statistics, there is
a hack: give "--report-space=100000" option to obexfs and it will report
this number of bytes as both total and free space.
If you have problems with space statistics, please use 'obexfs <options>
-- -odebug <mountpoint> 2>&1 | tee obexfs.log' and send log to me
together with output of 'obexftp <device-options> --capability' and
'obexftp <device-options> --list /'.
Patch is attached. Built package is located in my PPA.
obexfs isn't yet fully usable, it sometimes crashes, but this is result
of bugs in obexftp.
P.S. obexfs and obexftp code is terrible, valgrind reports bunch of
memory errors, there is code duplication, and _they parse XML with
sscanf_, oh my... I'm not a guru of sscanf, so I use expat, thus
dependency on libxmltok1 package is added.
** Attachment added: "Report memory usage statistics of N70"
http://launchpadlibrarian.net/24303016/obexfs_0.10_n70.patch
--
can't add files to mounted volume, no free space sony Z610i
https://bugs.launchpad.net/bugs/135812
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list