markfasheh / duperemove

Tools for deduping file systems
GNU General Public License v2.0
689 stars 75 forks source link

`duperemove` complains about `tmpfs` filesystems: "lives on an unsupported filesystem, please fill a bug" #327

Closed trofi closed 8 months ago

trofi commented 8 months ago

Ran duperemove against my root / and got the following reports:

# duperemove -q --batchsize=0 --dedupe-options=partial,same -rd --hashfile=/run/duperemove/root-dupes.db /
...
//dev lives on an unsupported filesystem, please fill a bug
//sys lives on an unsupported filesystem, please fill a bug
//proc lives on an unsupported filesystem, please fill a bug
//run lives on an unsupported filesystem, please fill a bug

These are usual tmpfs-like filesystems:

$ cat /proc/mounts | grep -P ' /(run|dev|sys|proc) '
devtmpfs /dev devtmpfs rw,nosuid,size=6592840k,nr_inodes=16479788,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,size=32964200k,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
$ LANG=C stat /dev /proc /run /sys
  File: /dev
  Size: 3760            Blocks: 0          IO Block: 4096   directory
Device: 0,5     Inode: 1           Links: 20
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-11-20 15:30:33.487040490 +0000
Modify: 2023-11-17 04:40:56.509546051 +0000
Change: 2023-11-17 04:40:56.509546051 +0000
 Birth: 2023-11-13 18:11:05.180000000 +0000
  File: /proc
  Size: 0               Blocks: 0          IO Block: 1024   directory
Device: 0,22    Inode: 1           Links: 652
Access: (0555/dr-xr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-11-13 18:11:05.282999993 +0000
Modify: 2023-11-13 18:11:05.282999993 +0000
Change: 2023-11-13 18:11:05.282999993 +0000
 Birth: -
  File: /run
  Size: 660             Blocks: 0          IO Block: 4096   directory
Device: 0,23    Inode: 1           Links: 24
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-11-20 18:30:03.033844527 +0000
Modify: 2023-11-20 18:12:26.011432730 +0000
Change: 2023-11-20 18:12:26.011432730 +0000
 Birth: 2023-11-13 18:11:05.283999993 +0000
  File: /sys
  Size: 0               Blocks: 0          IO Block: 4096   directory
Device: 0,26    Inode: 1           Links: 13
Access: (0555/dr-xr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-11-13 18:11:05.285999993 +0000
Modify: 2023-11-13 18:11:05.285999993 +0000
Change: 2023-11-13 18:11:05.285999993 +0000
 Birth: -
JackSlateur commented 8 months ago

Hello,

Ha yes, you are trying to process the entire rootfs I moved that message into the debug layer

Indeed, tmpfs and friends do not support deduplication, hence this message But I understand that it may be too verbose

Thank you for your report