| 
			
			 | 
		#1 | 
| 
			
			
			
			 Deviser 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265 
				Karma: 2090983 
				Join Date: Aug 2013 
				Location: Texas 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Linux OpenSUSE with btrfs:  Supported?
			 
			
			
			Should Calibre work 'properly' using Linux OpenSUSE with btrfs?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295 
				Karma: 2534928 
				Join Date: Nov 2022 
				Location: Canada 
				
				
				Device: Kobo Aura 2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm not sure about OpenSUSE or anything it might do differently, but if it helps at all, I run Calibre with zero issues on Arch Linux using multiple btrfs filesystems. My root partition is btrfs, and so is my home partition – Calibre is installed to the root partition (through my package manager) and my Calibre Library is stored in my home partition. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	If you start doing strange things like restoring a snapshot while Calibre is open and running, then I could easily imagine strangeness, in exactly the same way that I would expect strangeness if Calibre was running and I went and started messing about with files in the library directory. But as long as you're restoring a proper snapshot of the entire Calibre library directory, and Calibre is not open at the time, then I can't see how btrfs could otherwise cause problems.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Deviser 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265 
				Karma: 2090983 
				Join Date: Aug 2013 
				Location: Texas 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			A Calibre user of one of my plugins has been having an impossible time getting APSW to connect (ATTACH) to multiple Libraries sequentially.  She uses OpenSUSE with btrfs, and has had no problems with Calibre until now with this very specific issue.  APSW is spectacularly unhelpful as to why it gets an OpenError; debugging log shown nothing worthwhile.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	The connection for attachment is supposed to look like this, but always throws an exception, OpenError, just after the "Attaching to New Source Library:" message, where the APSW SQL "ATTACH DATABASE 's:/calibre/calibrelibrarycodes/metadata.db' AS 'SOURCE' ;" is executed by APSW. Code: 
	ATTACH DATABASE 's:/calibre/calibrelibrarycodes/metadata.db' AS 'SOURCE' ; length of path: 42 Attaching to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db Now Attached to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db PRAGMA SOURCE.busy_timeout = 4000; Finished: apsw_attach_to_source I don't use Linux except for my Raspberry Pi Manjaro/Arch Calibre server. DaltonST  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			What's with the s:/ prefix on those paths?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Deviser 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265 
				Karma: 2090983 
				Join Date: Aug 2013 
				Location: Texas 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			That was the example debug log from my testing to ensure it still works on my Windows 11 system, not the OpenSUSE btrfs path of the user's latest log that I just got:  */home/susan/calibre/testlibrary  
		
	
		
		
		
		
		
		
		
		
		
		
	
	She defragged btrfs, and nothing changed.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 25 
				Karma: 10 
				Join Date: Jan 2024 
				
				
				
				Device: Sage / rm2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			If this comes up again, ask the user if they disabled copy-on-write for their database. There is really bad advice out there about btrfs and databases. Users commonly (and incorrectly) do 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	chattr +C /path/to/database I have been using Calibre on a multi-disk btrfs system for years, and the only problems have been self-made. Aside from the time I believed it would be wise to convert my Kobo's filesystem to btrfs, the worst experiences came from disabling CoW for things like databases and VMs.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| USB connection issues - Linux OpenSUSE, Onyx Note Pro | rhizomatic | Onyx Boox | 11 | 07-01-2022 12:44 PM | 
| Libra btrfs and my kobo | shoelesshunter | Kobo Developer's Corner | 3 | 07-27-2020 01:08 PM | 
| devices supported by mainstream linux distros (future proofing) | Sgt.Stubby | Which one should I buy? | 9 | 12-17-2013 05:34 PM | 
| OpenSuSE 12.3 and Huawei P6 | navy_seabear | Devices | 3 | 09-30-2013 03:41 PM | 
| libprs500 on openSuse 10.3? | mauibay | Calibre | 25 | 01-12-2008 09:21 PM |