Unfortunately, what you are requesting isn't possible.   E4defrag works
in an online mode -- that it is, it works while the file system is
mounted.

E2fsck -D works off-line; the file system must be unmounted to optimize
the directory.  So it simply wouldn't be possible to move the
functionality from e2fsck to e4defrag without adding a huge amount of
kernel support.  And in practice, honestly, it's rarely needed.

If you know no one is using a dirctory, you can mostly get the behaviour
you want by doing this:

mkdir foo.new ; mv foo.new/* foo ; rmdir foo ; mv foo.new foo

Of course, if something is trying to access the directory foo while you
are doing this, it will fail, which is why this isn't something that I
would put into e4defrag.  Also, it's pretty simple for anyone to do from
the command line.


** Changed in: e2fsprogs (Ubuntu)
       Status: New => Invalid

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

Title:
  Supporting -D from e2fsck in e4defrag

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to