Go to the first, previous, next, last section, table of contents.


How do I see if a file has not been decompressed?

You can see if a file still contains some compressed clusters even though the `c' flag has been cleared (see section What if I decompress a file on a full device?) with lsattr. In such a case, lsattr will not show the `c' flag, but will still show a cluster size. (If you haven't installed the lsattr from the e2compr distribution, then you have no way of reliably knowing, though you can guess by doing `df' and by comparing the `ls -l' size of a file with its `du' or `ls -s' size.) Here are some examples.

Here, the file is compressed:

  $ lsattr foo
  --c---- 16 lzrw3a  foo

We try to decompress it. The `c' flag is cleared, but the cluster size is still there. This means that the file still holds some compressed clusters:

  $ chattr -c foo
  $ lsattr foo
  ------- 16 lzrw3a  foo

In the next example, the cluster size is no more displayed after the file is decompressed. The decompression has succeeded:

  $ lsattr foo
  --c---- 16 -       foo
  $ chattr -c foo
  $ lsattr foo
  -------  - -       foo


Go to the first, previous, next, last section, table of contents.