← Back to team overview

ecryptfs team mailing list archive

[Bug 390833] Re: du on ecryptfs reports incorrect file sizes

 

Andy-

Any chance of getting this commit cherry picked into the Lucid kernel to
fix this bug?

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f8f484d1b6677dd5cd5e7e605db747e8c30bbd47


** Also affects: linux (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: linux (Ubuntu)
       Status: New => Triaged

** Changed in: ecryptfs-utils (Ubuntu)
       Status: Triaged => Invalid

** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu)
     Assignee: (unassigned) => Andy Whitcroft (apw)

** Also affects: ecryptfs-utils (Ubuntu Lucid)
   Importance: Medium
       Status: Invalid

** Also affects: linux (Ubuntu Lucid)
   Importance: Medium
     Assignee: Andy Whitcroft (apw)
       Status: Triaged

** Changed in: linux (Ubuntu Lucid)
    Milestone: None => ubuntu-10.04-beta-1

-- 
du on ecryptfs reports incorrect file sizes
https://bugs.launchpad.net/bugs/390833
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.

Status in eCryptfs - Enterprise Cryptographic Filesystem: Fix Released
Status in “ecryptfs-utils” package in Ubuntu: Invalid
Status in “linux” package in Ubuntu: Triaged
Status in “ecryptfs-utils” source package in Lucid: Invalid
Status in “linux” source package in Lucid: Triaged

Bug description:
I'm using an encrypted home directory on Ubuntu Jaunty. When I create a new file in my home directory or copy and existing file/folder, du shows its size as zero bytes:

das@serenity ~ > dd if=/dev/zero of=test bs=1024 count=1024
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.114302 s, 9.2 MB/s
das@serenity ~ > du test
0	test
das@serenity ~ > ll test
-rw-r--r-- 1 das das 1048576 2009-06-22 22:14 test

du keeps reporting a size of zero bytes until the encrypted directory is remounted. After that, the output seems to be correct.