Вообщем купила я себе nexus. Там чтобы его подключить к компютору нужны пакеты MTP.
Сделала все как там сказано. Даже скрипт написала,чтобы вслучи чего не забыть.
Но вот в чем проблема. Все это работает чёрти как. Очень часто вылетает
.А иногда вообще работает без проблем, ни одного вылета нет. В чем дело я не знаю. Может go-mtpfs просто глючит? Или еще что. Вот что пишет консоль если что
2013/04/16 15:48:06 sending file "The.Vampire.Diaries.s02e05.720p.rus.eng.Kybik.v.Kybe.mp4" to device: 259111479 bytes.
2013/04/16 15:48:37 sent 259111479 bytes in 31548 ms. 8.2 MB/s
2013/04/16 15:49:00 sending file "The.Vampire.Diaries.s02e06.720p.rus.eng.Kybik.v.Kybe.mp4" to device: 261952094 bytes.
2013/04/16 15:49:30 sent 261952094 bytes in 30029 ms. 8.7 MB/s
2013/04/16 15:49:31 sending file "The.Vampire.Diaries.s02e07.720p.rus.eng.Kybik.v.Kybe.mp4" to device: 5111808 bytes.
2013/04/16 15:49:31 sent 5111808 bytes in 984 ms. 5.2 MB/s
2013/04/16 15:49:57 fetched "The.Vampire.Diaries.s02e06.720p.rus.eng.Kybik.v.Kybe.mp4", 261952094 bytes in 22652 ms. 11.6 MB/s
2013/04/16 15:50:04 sending file without backing store: "The.Vampire.Diaries.s02e07.720p.rus.eng.Kybik.v.Kybe.mp4"
panic: sending file without backing store: "The.Vampire.Diaries.s02e07.720p.rus.eng.Kybik.v.Kybe.mp4"
goroutine 98 [running]:
log.Panicf(0x816e620, 0x26, 0x85a79d88, 0x1)
/usr/lib/go/src/pkg/log/log.go:314 +0x99
main.(*fileNode).send(0x975a8000, 0x0, 0x0)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-mtpfs/fs.go:251 +0x11b
main.(*pendingFile).Flush(0x9752a140, 0x975a8150, 0x0)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-mtpfs/fs.go:693 +0x60
github.com/hanwen/go-fuse/fuse.(*FileSystemConnector).Flush(0x9755c2a0, 0x975bf510, 0x975bf4b8, 0x9755cba0, 0x9753f0a0, ...)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/fsops.go:396 +0x7b
github.com/hanwen/go-fuse/fuse.(*LockingRawFileSystem).Flush(0x9752a0a0, 0x975bf510, 0x975bf4b8, 0x0, 0x9753f140, ...)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/lockingfs.go:294 +0x71
github.com/hanwen/go-fuse/fuse.doFlush(0x97541230, 0x975bf380, 0x40)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/opcode.go:293 +0x57
github.com/hanwen/go-fuse/fuse.(*MountState).handleRequest(0x97541230, 0x975bf380, 0x975bf380)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:340 +0x204
github.com/hanwen/go-fuse/fuse.(*MountState).loop(0x97541230, 0x1, 0x0)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:320 +0x7b
created by github.com/hanwen/go-fuse/fuse.(*MountState).readRequest
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:251 +0x734
goroutine 1 [semacquire]:
sync.runtime_Semacquire(0x974f59d8, 0x974f59d8)
/build/buildd/golang-1/src/pkg/runtime/zsema_386.c:146 +0x29
sync.(*WaitGroup).Wait(0x9754128c, 0x0)
/usr/lib/go/src/pkg/sync/waitgroup.go:78 +0xe6
github.com/hanwen/go-fuse/fuse.(*MountState).Loop(0x97541230, 0x10)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:293 +0x56
main.main()
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-mtpfs/main.go:147 +0x18ff
goroutine 2 [syscall]:
created by runtime.main
/build/buildd/golang-1/src/pkg/runtime/proc.c:221
goroutine 4 [finalizer wait]:
created by runtime.gc
/build/buildd/golang-1/src/pkg/runtime/mgc0.c:882
goroutine 99 [syscall]:
syscall.Syscall()
/build/buildd/golang-1/src/pkg/syscall/asm_linux_386.s:20 +0x1f
syscall.Read(0x9, 0x9794b000, 0x11000, 0x11000, 0x80a79ff, ...)
/usr/lib/go/src/pkg/syscall/zerrors_linux_386.go:2136 +0x61
os.(*File).read(0x974f5348, 0x9794b000, 0x11000, 0x11000, 0x90, ...)
/usr/lib/go/src/pkg/os/file_unix.go:163 +0x44
os.(*File).Read(0x974f5348, 0x9794b000, 0x11000, 0x11000, 0xffffffff, ...)
/usr/lib/go/src/pkg/os/file.go:95 +0x67
github.com/hanwen/go-fuse/fuse.(*MountState).readRequest(0x97541230, 0x975aa001, 0x975aa000, 0x0, 0x0, ...)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:227 +0x1d5
github.com/hanwen/go-fuse/fuse.(*MountState).loop(0x97541230, 0x1, 0x0)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:304 +0x4f
created by github.com/hanwen/go-fuse/fuse.(*MountState).readRequest
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:251 +0x734
goroutine 102 [syscall]:
syscall.Syscall()
/build/buildd/golang-1/src/pkg/syscall/asm_linux_386.s:20 +0x1f
syscall.Read(0x9, 0x977bb000, 0x11000, 0x11000, 0x80a79ff, ...)
/usr/lib/go/src/pkg/syscall/zerrors_linux_386.go:2136 +0x61
os.(*File).read(0x974f5348, 0x977bb000, 0x11000, 0x11000, 0x10, ...)
/usr/lib/go/src/pkg/os/file_unix.go:163 +0x44
os.(*File).Read(0x974f5348, 0x977bb000, 0x11000, 0x11000, 0xffffffff, ...)
/usr/lib/go/src/pkg/os/file.go:95 +0x67
github.com/hanwen/go-fuse/fuse.(*MountState).readRequest(0x97541230, 0x975bfe01, 0x975bfe00, 0x0, 0x0, ...)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:227 +0x1d5
github.com/hanwen/go-fuse/fuse.(*MountState).loop(0x97541230, 0x1, 0x0)
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:304 +0x4f
created by github.com/hanwen/go-fuse/fuse.(*MountState).readRequest
/build/buildd/go-mtpfs-0.1/source/go/src/github.com/hanwen/go-fuse/fuse/mountstate.go:251 +0x734