Fix a logic error that made 'ls -ls' show the wrong file size for compressed and sparse files.
parent
0d94460169
commit
9efb57918f
|
@ -200,7 +200,7 @@ get_size:
|
|||
if (ctx->attr->non_resident) {
|
||||
ni->data_size = sle64_to_cpu(ctx->attr->data_size);
|
||||
if (ctx->attr->flags &
|
||||
(ATTR_IS_COMPRESSED & ATTR_IS_SPARSE))
|
||||
(ATTR_IS_COMPRESSED | ATTR_IS_SPARSE))
|
||||
ni->allocated_size = sle64_to_cpu(
|
||||
ctx->attr->compressed_size);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue