Bug#846255: Rebuild with apt-src

2016-12-02 Thread Jody Bruchon
This may not be a bug in the program. If a user tries to dedupe a file 
for which they don't have write permissions and aren't root, dedupe will 
fail with 0 bytes processed.


In commit 5eb89cc2bd7cd37f2a27b587b563ac8f3eb1ff7f I have introduced two 
changes to make it easier to determine if the problem is a permissions one:
- No write permission check and an additional message at the end of the 
warning or error telling the user that they don't have write permission 
for the file
- "dedupe only did 0 bytes" instead says that "dedupe failed" so the 
user is less confused by the warning.


If you have verified that you have write access to both of the files in 
a deduplication pair and are still having issues, please let me know.


- Jody Bruchon



Bug#846255: Rebuild with apt-src

2016-12-01 Thread Raphaël Plasson
If this can be useful, I tried to enable this option by recompiling with 
apt-src:


apt-src  install jdupes
cd jdupes-1.6
***edit Makefile: uncomment "CFLAGS += -DENABLE_BTRFS"
cd ..
apt-src build jdupes
dpkg -i jdupes_1.6-1_amd64.deb

This _seems_ to work, as I can pass the -B option to jdupes, jdupes 
reports that some deduplication could be done ("finish with a 
Deduplication done (xxx files processed)"), but I obtain this kind of 
warnings (seems to be as many warnings as the number of files processed...):
warning: dedupe only did 0 byes: ***file_x*** => ***file_y***: Invalid 
argument [-22]


I do not know how harmful may be these warnings, nor if the 
deduplication indeed worked at all... So probably a "test on your own 
risk" functionality for the moment.


Hoping that this report may help a correct btrfs deduplication by more 
knowledgeable people.


Raphaël


--
Raphaël Plasson, PhD
Maître de Conférences (Assistant Professor)

UMR 408 Université d'Avignon - INRA
Sécurité & Qualité des Produits d'Origine Végétale
Équipe 'Chimie des Antioxydants'

Université d'Avignon - UFR-ip STS
Campus Jean-Henri Fabre
301 rue Baruch de Spinoza BP 21239
84916 Avignon Cedex 9

Phone: +33(0)4 9014 4441
Cell phone: +33(0)6 8855 4223
email: raphael.plas...@univ-avignon.fr