e4defrag doesn't notice if a device is mounted multiple times

Bug #1405140 reported by Sworddragon on 2014-12-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
e2fsprogs (Ubuntu)
Undecided
Unassigned

Bug Description

I'm using Ubuntu 15.04 dev with e2fsprogs 1.42.12-1ubuntu1 and if a device is mounted multiple times e4defrag doesn't notice this and will check/defragment the files multiple times. Here is an example:

root@ubuntu:~# e4defrag -c /dev/sda1 | grep extents
 Total/best extents 176021/174899
root@ubuntu:~# mount /dev/sda1 /mnt
root@ubuntu:~# e4defrag -c /dev/sda1 | grep extents
 Total/best extents 352050/349805

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers