• Status Unconfirmed
  • Percent Complete
  • Task Type Patches
  • Category Operating System/Drivers
  • Assigned To No-one
  • Operating System Sansa e200
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by rhtm52 - 2008-05-30

FS#9053 - Using Volume Labels as Mount Points

I’m using several SD-cards with my Sansa. When switching cards
and updating the database the db entries of other cards are lost
(unless saved to the database log).

In order to differentiate between files from different cards the
easiest way is to give them different path names. So instead of
mounting each card to <microSD1> this patch takes the volume label
i.e. ‘Classic1’ of the filesystem and mounts it to <Classic1>.

The database update is modified in a way that it erases only entries
for files with a filename of a mounted filesystem. So data of other
cards isn’t erased.

So far the database search isn’t modified to handle nonexisting files,
you still get albums etc. which are currently unavailable.
The patch only makes sure that nonexisting files aren’t entered into
the current playlist.

The patch is only activated for Sansa e200, as I couldn’t test it for
other players.

the following patch corrects one error

Added the condition 'filename is "mounted"' to the database
code and modified tagnavi.config accordingly.
Now when swapping SD-cards the database immediately shows the
current content.

NICE! one thing though, can it be made to always make sure the file is mounted if the path starts with "/<" instead of needing to add stuff to the tagnavi.config? I cant see any reason why you would ever want to see files which dont exist

edit: one more thing… can you change it to use the cards serial number (from the ata identify struct) to determine if its mounted instead of the volume name?

I totally agree!
But the code is still very experimental.
As I don't know the tagtree search code, the modification seemed
to be the easiest and probably least destructive one.
If any one knows the code, it would be probably not too difficult to
add the 'mounted' test at the appropriate locations.

I took the volume name basically because I can easily modify it
and it looks nicer than numbers.

Integrated the 'mounted' test into the search algorithm.
Now tagnavi.config doesn't need to be modified.

synced, but doesnt work…


Available keyboard shortcuts


Task Details

Task Editing