On 2012-12-22 18:18:16 +0100, Cristian Ionescu-Idbohrn wrote: > This points more and more twards libmtp and less and less twards mtpfs. > The more reasonable thing would be to move this bug to the libmtp package. > What do you think?
Well, there's at least a libmtp bug. But there may be a mtpfs one too. To decide, one should compare mtpfs from testing and from unstable (with the same libmtp). But this is rather strange. With mtpfs 0.9-3+b1 (from testing): # mtpfs -o allow_other /media/mtp # ls -l /media/mtp total 0 drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Alarms drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Android drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 DCIM drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Download drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Download drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 LOST.DIR drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Movies drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Music drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Music drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Notifications drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Pictures drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Playlists drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Playlists drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Podcasts drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Ringtones drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 S Note drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Samsung drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 cloudagent drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 samsungapps # umount /media/mtp and with mtpfs 1.1-2 (from unstable): # mtpfs -o allow_other /media/mtp Error: Unable to open ~/.mtpz-data for reading. Listing raw device(s) Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP). Found 1 device(s): Samsung: Galaxy models (MTP) (04e8:6860) @ bus 8, dev 10 Attempting to connect device Listing File Information on Device with name: GT-N7100 # ls -l /media/mtp total 0 drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Card drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Phone drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Playlists # ls -l /media/mtp/Card total 0 drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Download drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 LOST.DIR drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Music # ls -l /media/mtp/Phone total 0 drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Alarms drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Android drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 DCIM drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Download drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Movies drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Music drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Notifications drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Pictures drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Playlists drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Podcasts drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Ringtones drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 S Note drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 Samsung drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 cloudagent drwxrwxrwx 2 root root 0 1970-01-01 01:00:00 samsungapps # ls -l /media/mtp/Playlists total 1 -rwxrwxrwx 0 root root 0 2012-12-22 18:54:14 Quick list.m3u # umount /media/mtp The output is different! The one from testing at least is buggy: there are duplicate directories. It seems to merge /media/mtp/Card, /media/mtp/Phone and /media/mtp (except Card and Phone) entries from mtpfs/unstable. And when accessing /media/mtp/Music/ it is from the external SD card instead of from the phone. This is IMHO a security bug, because the user may expect the file to be stored on the phone instead of the SD card. I've reported a bug about this. With Terminal IDE: terminal++@192.168.0.4:~$ ls -l /storage/extSdCard/ drwxrwxr-x 2 1000 1023 32768 Dec 21 17:49 Download drwxrwxr-x 2 1000 1023 32768 Dec 20 23:32 LOST.DIR drwxrwxr-x 105 1000 1023 32768 Dec 22 04:18 Music terminal++@192.168.0.4:~$ ls -l /storage/sdcard0/ drwxrwxr-x 2 0 1015 4096 Dec 31 2011 Alarms drwxrwxr-x 3 0 1015 4096 Dec 31 2011 Android drwxrwxr-x 2 0 1015 4096 Dec 31 2011 DCIM drwxrwxr-x 2 0 1015 4096 Dec 31 2011 Download drwxrwxr-x 2 0 1015 4096 Dec 31 2011 Movies drwxrwxr-x 2 0 1015 4096 Dec 22 04:17 Music drwxrwxr-x 2 0 1015 4096 Dec 31 2011 Notifications drwxrwxr-x 3 0 1015 4096 Dec 22 11:07 Pictures drwxrwxr-x 2 0 1015 4096 Dec 21 03:36 Playlists drwxrwxr-x 2 0 1015 4096 Dec 31 2011 Podcasts drwxrwxr-x 2 0 1015 4096 Dec 31 2011 Ringtones drwxrwxr-x 6 0 1015 4096 Dec 22 11:11 S Note drwxrwxr-x 5 0 1015 4096 Dec 31 2011 Samsung drwxrwxr-x 5 0 1015 4096 Jan 1 2012 cloudagent drwxrwxr-x 2 0 1015 4096 Dec 22 03:22 samsungapps -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org