This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9053 - Using Volume Labels as Mount Points
|
DetailsI'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. |
This task depends upon
code and modified tagnavi.config accordingly.
Now when swapping SD-cards the database immediately shows the
current content.
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?
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.
Now tagnavi.config doesn't need to be modified.