This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dynamic Collection with CIFS shares at work and home

Tags: None
(comma "," separated)
silfreed
Registered Member
Posts
4
Karma
0
I've read the Dynamic Collection wiki page and it seems that my situation would apply, but it's not working correctly.

I have a CIFS share at home and at work (different mount points) that I access music through.  When I start up amarok at a new location my entire collection gets nuked - including any statistics I've built up.  My understanding of Dynamic Collection is that it should detect that the music is stored on a SMB/CIFS/NFS mount point and won't delete the files from the collection if the mount isn't available.  Maybe this understanding is wrong?

I'm using amarok 1.4.3 on FC5 from Fedora Extras.

-Doug
Maximilian Kossick
Registered Member
Posts
16
Karma
0
What do you mean by "my entire collection gets nuked"? Amarok will hide the the files on the CIFS share if it detects that the share is not mounted. So you won't see them in the collection browser, and they won't show up in your statistics while the share is not mounted. But both the files and the statistics should appear again as soon as you mount the CIFS share...without having to rescan.
silfreed
Registered Member
Posts
4
Karma
0
Sorry - "my collection gets nuked" means the tags table in my MySQL database gets emptied.
Before starting amarok at work (my home collection was loaded)
Code: Select all
mysql> select count(*) from tags;
+----------+
| count(*) |
+----------+
|     6722  |
+----------+

After starting amarok at work and amarok completes its collection scan:
Code: Select all
mysql> select count(*) from tags;
+----------+
| count(*) |
+----------+
|        0     |
+----------+


I was wrong about the statistics - that table seemed to be preserved, but from the looks of things I would have to rescan once I got home, correct?
Thanks for your help.

-Doug
Maximilian Kossick
Registered Member
Posts
16
Karma
0
what's the result of select * from devices?
silfreed
Registered Member
Posts
4
Karma
0
Code: Select all
mysql> select * from devices\G
*************************** 1. row ***************************
            id: 1
          type: uuid
         label: NULL
lastmountpoint: /boot
          uuid: /org/freedesktop/Hal/devices/volume_uuid_0e13d5cf_3c11_461c_8370_10865367de36
    servername: NULL
     sharename: NULL
*************************** 2. row ***************************
            id: 2
          type: uuid
         label: NULL
lastmountpoint: /
          uuid: /org/freedesktop/Hal/devices/volume_uuid_5093cd83_b1bf_49c5_a754_654d5d0136a2
    servername: NULL
     sharename: NULL
*************************** 3. row ***************************
            id: 3
          type: uuid
         label: NULL
lastmountpoint: /mnt/shared
          uuid: /org/freedesktop/Hal/devices/volume_uuid_3FFB_3A98
    servername: NULL
     sharename: NULL
*************************** 4. row ***************************
            id: 4
          type: uuid
         label: NULL
lastmountpoint: /media/SILPOD
          uuid: /org/freedesktop/Hal/devices/volume_uuid_2037_CF78
    servername: NULL
     sharename: NULL
4 rows in set (0.00 sec)

I notice my shares aren't listed here (amarok is not currently running).
The shares from /etc/fstab are:
Code: Select all
//thor.home.silfreed.net/bigdisk  /mnt/smb/thor/fs   cifs   noauto,rw,guest,uid=99,gid=99,noacl,file_mode=0666,dir_mode=0777 0 0
//192.168.2.10/media      /mnt/smb/edfileserver/media cifs noauto,rw,credentials=/etc/samba/XXX,uid=99,gid=99,noacl,file_mode=0666,dir_mode=0777 0 0
Maximilian Kossick
Registered Member
Posts
16
Karma
0
I actually looked at the relevant code and noticed that Amarok doesn't support CIFS shares yet. sorry
can you post the result of running dcop kded mediamanager fullList when one of the CIFS shares is mounted? I might be able to add support for CIFS network shres with that information.
silfreed
Registered Member
Posts
4
Karma
0
Thanks for looking into the problem!  I'll paste the information below.  Let me know if you'd like me to start a bug for this.

-Doug

Code: Select all
$ dcop kded mediamanager fullList
/org/freedesktop/Hal/devices/volume_uuid_0e13d5cf_3c11_461c_8370_10865367de36
hda1
/boot

true
/dev/hda1
/boot
ext3
true

media/hdd_mounted

---
/org/freedesktop/Hal/devices/volume_uuid_5093cd83_b1bf_49c5_a754_654d5d0136a2
hda3
/

true
/dev/hda3
/
ext3
true

media/hdd_mounted

---
/org/freedesktop/Hal/devices/volume_uuid_3FFB_3A98
hda6
SHARED

true
/dev/hda6
/mnt/shared
vfat
true

media/hdd_mounted

---
/org/kde/mediamanager/fstab/thor.home.silfreed.netbigdiskmntsmbthorfs
bigdisk
Remote Share (//thor.home.silfreed.net/bigdisk)

true
//thor.home.silfreed.net/bigdisk
/mnt/smb/thor/fs
cifs
true

media/smb_mounted

---
/org/kde/mediamanager/fstab/thor.home.silfreed.netisomountmntsmbthoriso
isomount
Remote Share (//thor.home.silfreed.net/isomount)

true
//thor.home.silfreed.net/isomount
/mnt/smb/thor/iso
cifs
true

media/smb_mounted

---
Maximilian Kossick
Registered Member
Posts
16
Karma
0
Amarok SVN now supports CIFS shares. Thanks for your help!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]