Glenn Maynard
7bf4380fb5
reuse Mount and Unmount
2005-12-10 01:46:58 +00:00
Glenn Maynard
ad7ee70346
fix error
2005-12-10 01:46:17 +00:00
Glenn Maynard
3f27a018b3
nudge closer to Windows driver
2005-12-10 01:42:49 +00:00
Glenn Maynard
8896e8b664
cleanup
2005-12-10 01:40:19 +00:00
Glenn Maynard
03ba527b58
remove unused vConnects
2005-12-10 01:37:28 +00:00
Glenn Maynard
9dc6b7366a
cleanup
2005-12-09 23:54:18 +00:00
Glenn Maynard
a6414302b6
cleanup
2005-12-06 21:54:23 +00:00
Glenn Maynard
a4c0b8e963
Test writable without writing a file. This reduces the chance of corruption: merely mounting a device should not write to it.
2005-12-06 21:53:47 +00:00
Glenn Maynard
f0998a1dc5
store /sys/block name in Linux
2005-10-03 07:17:09 +00:00
Ben Anderson
a450acf26c
RageFile token without matching #include
2005-09-10 23:39:09 +00:00
Glenn Maynard
0a3d0759b6
sync before umount; cleanup
2005-07-02 05:37:33 +00:00
Glenn Maynard
8b1dcc850f
better logging
2005-05-22 21:09:17 +00:00
Glenn Maynard
11fdc9a3d5
use /rootfs
2005-05-22 02:29:02 +00:00
Glenn Maynard
b664ec07b1
fix mountpoint
2005-05-22 02:13:24 +00:00
Glenn Maynard
d9b595ad08
fix lost state
2005-05-07 04:18:39 +00:00
Glenn Maynard
3ba7b814c7
remove old whitelisting code
2005-05-04 05:44:50 +00:00
Glenn Maynard
1ea1ecfaaf
move FastLoadProfileNameFromMemoryCard into ProfileManager
2005-04-24 23:06:15 +00:00
Glenn Maynard
d8e675a1c4
pass -l flag to umount
2005-04-24 22:46:18 +00:00
Glenn Maynard
cabfc056fd
API
2005-04-24 19:33:46 +00:00
Glenn Maynard
e2ab509b8e
pull out common memory card profile code (in prep for import handling)
2005-04-24 19:30:35 +00:00
Glenn Maynard
30c3578cdc
interface to allow more specific error messages
2005-04-22 05:48:52 +00:00
Glenn Maynard
0d9b7c943a
remove iScsiIndex
2005-04-22 05:24:19 +00:00
Glenn Maynard
85313caf7c
UsbStorageDevice::STATE_WRITE_ERROR -> UsbStorageDevice::STATE_ERROR
2005-04-22 05:15:59 +00:00
Glenn Maynard
b252d7b3f7
simplify, mount based on device, not mountpoint
2005-04-22 03:53:20 +00:00
Glenn Maynard
0ba49a8f6a
sScsiDevice -> sDevice
2005-04-22 03:16:14 +00:00
Glenn Maynard
769bc2636e
cleanup
2005-04-22 03:04:58 +00:00
Glenn Maynard
37650adbec
Newer kernels store device strings in memory on USB device init. This makes querying them later safe. (Thanks Greg KH)
2005-04-22 01:33:53 +00:00
Glenn Maynard
88023a04db
fix card state lost when another card updates
2005-04-21 06:36:30 +00:00
Glenn Maynard
aef09d0872
quiet down
2005-02-21 03:48:39 +00:00
Glenn Maynard
4b726d2e23
disable whitelisting (will hopefully go away entirely); fix product trimming; better logging
2005-02-21 03:47:47 +00:00
Glenn Maynard
f1e84f98b8
driver update
2005-02-06 19:49:34 +00:00
Glenn Maynard
d14ea1ee41
compiles (doesn't support everything yet)
2005-02-06 05:46:07 +00:00
Glenn Maynard
76e45504a3
MemoryCardDriverThreaded_Linux compiles (not yet tested)
2005-02-05 19:12:02 +00:00
Ben Anderson
25ea8e4825
Fix compilation
2005-01-27 23:58:37 +00:00
Glenn Maynard
39604143f6
mount and unmount FILEMAN mountpoints in MemoryCardManager,
...
not drivers; use timeout FS; don't pass mountpoints to drivers since
they never need to know them
2005-01-27 19:23:54 +00:00
Glenn Maynard
cadbdf2bee
remove MemoryCardDriverThreaded::UnmountMountPoint; remount the fs instead (makes
...
the timeout FS simpler)
use timeout FS in windows memory card code for testing
2005-01-27 04:39:10 +00:00
Glenn Maynard
3b25fd6c60
sysfs fixes
2005-01-27 04:36:11 +00:00
Glenn Maynard
41622d238c
Use sysfs to probe memory cards. This has several advantages:
...
all of the information we need is in one place, with proper links so we
don't have to do weird hacks to connect data together
we don't have to touch /proc/bus/usb/devices; doing so generates USB
messages to all devices, which can cause problems
works for all removable devices; usb-storage or ub should both work with
no changes, as long as mountpoints exist in /etc/fstab
doesn't need to fork lsusb
Old support is removed; unless serious, unfixable problems are found with
this method, the old code is too big and confusing to keep around. This
code needs more testing.
2005-01-19 18:11:13 +00:00
Glenn Maynard
495a418884
Previously, the main mount loop was unlocking the thread and then immediately
...
re-locking it. In some threads implementations (Linux 2.6), this causes the
mount thread to hog the lock, which causes SetMountThreadState to hang. Move
the "check and delay" part of the mount thread outside of the lock, so other
threads have opportunity to get the lock.
2004-12-07 00:06:59 +00:00
Glenn Maynard
4bde245842
m_fd isn't used anymore
2004-12-06 23:47:23 +00:00
Chris Danford
c23c0bec17
improve mapping from scsi index to scsi device
2004-10-15 13:47:54 +00:00
Chris Danford
d906bc83e7
don't allow Iomega micro drives
2004-10-12 01:36:37 +00:00
Chris Danford
269768f856
HACK: Don't do the temp mount and the write test in the mount thread.
2004-10-09 09:34:30 +00:00
Chris Danford
e1a8aa0fbb
add more to whitelist
2004-10-08 07:29:51 +00:00
Chris Danford
332dd17b41
fix compile error
2004-10-07 23:44:12 +00:00
Chris Danford
68fcb42954
add more devices to whitelist
2004-10-07 23:17:16 +00:00
Chris Danford
c47b7fb124
clean up whitelist, add entry for Creative Labs MuVo
2004-10-07 19:48:24 +00:00
Chris Danford
952fef50c6
disallow Rio Carbon
2004-10-03 21:10:18 +00:00
Chris Danford
dc0ef1fe63
add USB device whitelist
2004-10-03 20:58:12 +00:00
Chris Danford
ffca2c6ae5
fix mounting of devices that are slow to initialize
2004-10-03 08:06:47 +00:00