1
0
mirror of https://github.com/phatina/simple-mtpfs synced 2024-12-24 15:43:36 +00:00
Commit Graph

122 Commits

Author SHA1 Message Date
Peter Hatina
5dfd25c72c
Merge pull request #91 from Cyp/fix85
On partial read/write, keep reading.
2023-10-31 08:56:42 -05:00
Cyp
2c44f913e8 On partial read/write, keep reading.
This avoids rsync errors and avoids data loss with cp, due to
failing to copy the last byte of 0.1953125% of files.

Unless direct_io is set, fuse expects a full read/write.

As a workaround for a device hanging bug, if the length of a file
on a Samsung device is 500 bytes modulo 512 bytes, libmtp returns a
partial read omitting the last byte which must be requested
separately.

Fixes #85.
2023-10-28 11:28:59 +02:00
Peter Hatina
19e7bb9b60 Bump release version to 0.4.0
Signed-off-by: Peter Hatina <peter@hatina.eu>
2020-07-22 21:27:19 +02:00
Peter Hatina
a6ba1dd445
Merge pull request #76 from barak/master
minor build tweaks
2020-07-19 11:31:11 +02:00
Barak A. Pearlmutter
b1ec133f76 spelling 2020-07-18 20:32:29 +01:00
Barak A. Pearlmutter
16948b0dea fuse include dir passed on include path 2020-07-18 20:12:49 +01:00
Barak A. Pearlmutter
1c02d34ca3 update autotools scripts 2020-07-18 20:10:59 +01:00
Barak A. Pearlmutter
a3db5cfe5e git ignore build debris 2020-07-18 17:21:51 +01:00
Barak A. Pearlmutter
0699dd0841 autoupdate 2020-07-18 16:26:32 +01:00
Peter Hatina
9c763c0d59
Merge pull request #71 from JimmyOhn/master
Thanks, merging...
2020-01-06 10:23:03 +01:00
Jimmy Ohn
2b5be19c1d Add missing return value for MTPDevice filePush function 2020-01-06 14:09:09 +09:00
Jimmy Ohn
f9b33f305d fix return value for removeTmpDir 2020-01-06 09:46:48 +09:00
Peter Hatina
c9518f345f
Merge pull request #70 from Henneberg-Systemdesign/support-for-get-partial-object
Support for get partial object
2019-11-05 21:51:58 +01:00
Jochen Henneberg
2bcc4551e9 Added support for get/sendPartialObject
If the caps flags are enabled for both get and send of partial object
this method is used instead of file push and pull. This makes many file
operations much faster and is widely supported throughout mobile
devices.

We still use the tmp file, not for storing data but to keep a unique
file handler for all the fuse file operations.

No caching happens at the moment, we could cache in the tmp file and
keep a table of offsets and sizes of the file that we already cached,
however, using the kernel file system cache is much better.
2019-11-02 09:20:17 +01:00
Jochen Henneberg
e121556851 Removed unused private methods from header 2019-11-02 09:19:36 +01:00
Peter Hatina
c9a691fc52 Bump release version to 0.3.0 2016-12-25 13:24:21 +01:00
Peter Hatina
6934037257 Bump release version to 0.2.1 2016-11-27 16:12:57 +01:00
Peter Hatina
ad83f1e39f Replace mktemp(1) by mkdtemp(3) 2016-11-27 15:40:34 +01:00
Peter Hatina
fead6a764f Drop device reset (fixes #47) 2016-11-27 15:35:26 +01:00
Peter Hatina
ea08fdb129 copyright update 2016-04-13 15:54:55 +02:00
Peter Hatina
a7ab64c7e4 Merge pull request #41 from wulf7/master
Thanks for your work! Looks good to me.
2015-09-03 14:20:09 +02:00
Vladimir Kondratiev
eaa116a43f Fix typo 2015-08-24 14:34:39 +03:00
Vladimir Kondratiev
4febe686c0 Support mounting by device file on non Linux OS
- it`s possible to supply device path sscanf format string
  at configure stage. FreeBSD`s one supplied
- it`s possible to use <bus>/<device> format as a fallback option
2015-08-24 14:34:39 +03:00
Vladimir Kondratiev
c117d9e1ac Remove extraneous #ifdef 2015-08-23 13:57:17 +03:00
Vladimir Kondratiev
a924098f97 Support for <device file> option when doing --device-list
- simple-mtpfs can be used as lightweight crossplatform mtp-probe
- at current state simple-mtpfs does not respect libmtp device quirks
  when connecting via device file. That leads to errors on some devices
  This issue can be workarounded now with following command:
     simple-mtpfs --device `simple-mtpfs <device file> -l | cut -f1 -d:` <mount point>
2015-08-23 13:55:52 +03:00
Vladimir Kondratiev
8a971b0ba7 Support for mounting by device file when libusb1 is missing 2015-08-23 13:55:44 +03:00
Vladimir Kondratiev
5357ae6422 Fix linux-izm in shebang 2015-08-21 12:17:14 +03:00
Peter Hatina
7452ff8cc2 simplify --with-tmpdir option (fixes #32) 2015-05-31 17:14:39 +02:00
Peter Hatina
7efc34b5ba fix MacOS X build
Homebrew build fixes: #30
2015-05-04 08:53:07 +02:00
Peter Hatina
76be403170 copyright update 2015-01-08 17:29:00 +01:00
Peter Hatina
427e2ade20 fix month value in log's timestamp 2015-01-04 15:01:45 +01:00
Peter Hatina
a00250fda6 introduce device capabilities in --list-devices
This is preparation for direct object modification.
2014-11-12 09:29:34 +01:00
Peter Hatina
7a5f10fe54 drop debug messages from LIBMTP_Init() 2014-11-05 18:08:23 +01:00
Peter Hatina
6441a5d7e5 move mutex calls to private section of MTPDevice 2014-11-05 17:39:08 +01:00
Peter Hatina
33bcca49f4 Merge pull request #35 from Phasip/master
Show correct folder timestamp
2014-10-27 07:44:26 +01:00
Pasi Saarinen
6408baa792 Show correct folder timestamp 2014-10-24 16:31:05 +02:00
Peter Hatina
74dfce65eb copyright update 2014-07-09 12:34:00 +02:00
Peter Hatina
776baebfbf Merge pull request #34 from KlavsKlavsen/master
fix debian packaging
2014-05-07 14:00:17 +02:00
Klavs Klavsen
9efaefc71c fixedup badly formatted line in changelog and corrected dependency from fuse-utils to just fuse - which works for ubuntu 13.10 and onwards atleast 2014-05-07 13:47:48 +02:00
Daniel Risacher
cef92acaee handle nulls from libmtp in vendor/product name 2014-04-07 21:26:00 +02:00
Peter Hatina
d4105f8fe0 use default usb context in smtpfs_raw_device_new() 2014-02-09 19:18:20 +01:00
Peter Hatina
5535446a7a reset device before every connection
We reset a usb device before issuing LIBMTP_Open_Raw_Device_Uncached(), so we do not timeout, when libmtp can't properly open the usb device.
2014-02-09 19:16:26 +01:00
David Mohr
a5499dea4f fix output error message, when no storage found 2014-01-13 19:16:29 +01:00
David Mohr
c0e76ed848 fix missing CLI option 2014-01-13 19:15:22 +01:00
Peter Hatina
80784a0c8c bump release version to 0.2 2013-12-03 22:02:39 +01:00
Peter Hatina
351554319b polish help message, executable path 2013-12-03 21:12:02 +01:00
Peter Hatina
ea9746c7db fix error log messages when connecting 2013-12-03 20:30:33 +01:00
Peter Hatina
6194d98049 update readme file 2013-12-03 19:52:12 +01:00
Peter Hatina
41cfc9bace introduce reference counting within temporary files 2013-11-26 21:32:21 +01:00
Peter Hatina
34e9c8ffb3 temporary storage rewrite 2013-11-25 22:26:29 +01:00