Precise again here. Some very very odd, and fairly useless, behaviour
from e4defrag:

[292194/339739]/home/user/.bitcoin/blocks/blk00349.dat: 100%  extents: 7
-> 3289        [ OK ]

$ sudo e4defrag -c /home/user/.bitcoin/blocks/blk00349.dat
<File>                                         now/best       size/ext
/home/user/.bitcoin/blocks/blk00349.dat        3289/1             24 KB

 Total/best extents                             3289/1
 Average size per extent                        24 KB
 Fragmentation score                            83
 [0-30 no problem: 31-55 a little bit fragmented: 56- needs defrag]
 This file (/home/user/.bitcoin/blocks/blk00349.dat) needs defragmentation.
 Done.

$ e4defrag -v /home/user/.bitcoin/blocks/blk00349.dat
ext4 defragmentation for /home/user/.bitcoin/blocks/blk00349.dat
[1/1]/home/user/.bitcoin/blocks/blk00349.dat:   100%  extents: 3289 -> 3289     
[ OK ]
 Success:                       [1/1]

It turns out that this doesn't really make any sense anyway:

$ mv blk00349.dat blk00349.dat~
$ cp blk00349.dat~ blk00349.dat
$ sudo e4defrag -c blk00349.dat
<File>                                         now/best       size/ext
blk00349.dat                                     1/1          81920 KB

 Total/best extents                             1/1
 Average size per extent                        81920 KB
 Fragmentation score                            0
 [0-30 no problem: 31-55 a little bit fragmented: 56- needs defrag]
 This file (blk00349.dat) does not need defragmentation.
 Done.
$ e4defrag -v blk00349.dat
ext4 defragmentation for blk00349.dat
[1/1]blk00349.dat:      100%  extents: 1 -> 1   [ OK ]
 Success:                       [1/1]
$ ll blk00349.dat*
-rw------- 1 user user 80M Oct  8 23:34 blk00349.dat
-rw------- 1 user user 80M Oct  8 18:25 blk00349.dat~

Unless this is a filesystem error? There haven't been any other errors
on this filesystem so far....

$ e4defrag blk00349.dat~
ext4 defragmentation for blk00349.dat~
[1/1]blk00349.dat~:     100%    [ OK ]
 Success:                       [1/1]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/911529

Title:
  e4defrag doesn't make an optimized defragmentation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/e2fsprogs/+bug/911529/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to