# HG changeset patch # User Heiko Schlittermann # Date 1473683052 -7200 # Node ID 01a602d2806e370a1f1aa688ed4f5d74ce60df19 # Parent d449f009da488a8fccfcc3df63ea2b47e3cc5292 Do not fake the mtime anymore diff -r d449f009da48 -r 01a602d2806e bin/blockfuse --- a/bin/blockfuse Wed Dec 05 22:42:18 2012 +0100 +++ b/bin/blockfuse Mon Sep 12 14:24:12 2016 +0200 @@ -23,8 +23,8 @@ # blockfuse maps the block devices found in /dev/ to regular -# files in your mountpoint. Currently it fakes the mtime to force -# rsync comparing the source and destination! +# files in your mountpoint. [disabled:Currently it fakes the mtime to force +# rsync comparing the source and destination!] # blockfuse /mnt # rsync --inplace -Pa /mnt/sda1 /images/sda1 @@ -83,7 +83,7 @@ my $path = "/dev" . shift; my @attr = stat $path; if (-b $path) { - $attr[9] = time; # fake mtime + #$attr[9] = time; # fake mtime $attr[6] = 0; # clear major/minor $attr[2] |= 0b1000_0000_0000_0000; # set regular file $attr[2] &= 0b1001_1111_1111_1111; # clear block device