Summary: | Support indexing NTFS disks | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-baloo | Reporter: | S. Christian Collins <s_chriscollins> |
Component: | general | Assignee: | baloo-bugs-null |
Status: | RESOLVED WORKSFORME | ||
Severity: | wishlist | CC: | bugseforuns, info, kde, nate, openmindead, postix, stefan.bruens, tagwerk19 |
Priority: | HI | ||
Version First Reported In: | 5.51.0 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=344202 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
S. Christian Collins
2018-10-16 16:26:21 UTC
I filed this report at the request of Nate Graham on bug #375370. Linking here for reference. Do you have by any chance a /home/chris/.kde4/share/config/baloofilerc file? If yes, can you provide the contents? (In reply to Stefan Brüns from comment #2) > Do you have by any chance a > /home/chris/.kde4/share/config/baloofilerc > file? If yes, can you provide the contents? I don't have a ~/.kde4 folder. I do have a ~/.kde folder, but "baloofilerc" doesn't exist anywhere in that path. I do have a copy of "baloofilerc" in /home/chris/.config/. Here are its contents: -------------------------- [Basic Settings] Indexing-Enabled=true [General] dbVersion=2 exclude filters=.moc,*.gb,*.po,*.tmp,*.pyc,*.rcore,*.fasta,*.qmlc,*.swap,lost+found,.xsession-errors*,*.init,*.fna,.npm,*.fq,ui_*.h,Makefile.am,*.pc,.obj,*.part,*.m4,.bzr,core-dumps,CVS,_darcs,po,*~,*.class,config.status,*.csproj,confstat,CMakeTmp,*.gmo,.yarn,.uic,*.faa,moc_*.cpp,.yarn-cache,*.a,*.pyo,*.so,.histfile.*,CMakeCache.txt,*.rej,nbproject,conftest,CTestTestfile.cmake,*.map,*.la,.git,*.omf,*.db,node_modules,*.qrc,autom4te,*.ini,node_packages,*.loT,*.fastq,*.o,.svn,*.moc,.pch,*.jsc,litmain.sh,qrc_*.cpp,libtool,*.vm*,CMakeTmpQmake,.hg,*.lo,lzo,CMakeFiles,__pycache__,*.orig,*.nvram,cmake_install.cmake,*.elc,*.aux,*.gbff,confdefs.h exclude filters version=4 first run=false folders[$e]=$HOME/ only basic indexing=false Judging from the code this is by design: all mounts other than /home are ignored. This was mostly done so it doesn't start indexing a USB thumb drive that may only be around for so long. Perhaps a "isRemovable" check needs to be added. I've solved the issue by disabling hot plugging for SATA devices in my motherboard BIOS. My NTFS mounts no longer appear in the "do not search" list, and Baloo is now busy indexing them. More importantly, external drives do not provide a stable ID. This is 2-part: 1. The device-id changes (may change) when a device is unmounted and later mounted again. This is mostly an issue for external drives, e.g. USB. The kernel uses the bus number to create the device id, so this typically works for SATA drives (unless you change the port or add an additional controller). 2. The inode may change. For ext4, btrfs this is not an issue, but for network mounts it is (the inode is stable as long as a drive stays mounted, but may be different on next mount). NTFS optionally provides unique IDs for file objects, but I am not sure how ntfs-3g creates the inode numbers. For (1.), this can only be solved by having separate "namespaces" for each drive/filesystem, and using some different method to identify the drive (LABEL, UUID, ...). For the home partition, "same device as where the DB is stored" suffices. This is significantly more work than just changing some config parameters. FWIW I have never seen NTFS mount points appear in .baloofilerc in "exclude folders" or "Do not search in these locations". But I don't add them under my home folder. To access and index my Windows files on a dual-boot machine, I: 1. Mount my Windows 10 NTFS partition. My ancient /etc/fstab line is UUID=F402E20B02E1D2A2 /media/Windows ntfs-3g defaults,windows_names,locale=en_US.utf8 0 0 2. Make symlinks in my home folder for subdirectories I want to point to NTFS, e.g. $HOME/Pictures to /media/Windows/Users/spage/Pictures , $HOME/Documents/Win10 to /media/Windows/Users/spage/My\ Documents/ , etc. 3. Baloo does not follow these symlinks when indexing my home directory, so I explicitly tell Baloo to index specific paths on the NTFS drive by changing the line under [General] in $HOME/.config/baloofilerc to: folders[$e]=$HOME/,/media/Windows/Users/spage/Desktop/,/media/Windows/Users/spage/Documents/,/media/Windows/Users/spage/Downloads/, etc. etc. that has worked fairly well for me and I mention the technique in https://community.kde.org/Baloo/Configuration#Include_Folders . If there are issues and other workarounds with NTFS disks and UUIDs please document them on that page (or tell me and I will try). Referencing https://bugs.kde.org/show_bug.cgi?id=406506#c21 The indications are OK but I've not stress tested or hunted out edge cases. I think the original issue was sorted in Comment 5 I'll set this to "WaitingforInfo" for now, in case I've missed anything, add a comment and reset. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! 🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME. |