Bug 762976 (GLUSTER-1244)

Summary: ecryptfs does not work when the directory to be encrypted is on gluster mount
Product: [Community] GlusterFS Reporter: Sachidananda Urs <sac>
Component: coreAssignee: Junaid <junaid>
Status: CLOSED WORKSFORME QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 3.0.5CC: amarts, gluster-bugs, jdarcy, vagarwal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-17 06:20:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sachidananda Urs 2010-07-29 05:37:22 UTC
Here are the simple steps to reproduce ecryptfs problem:

Select a folder on gluster volume - say /export/crtest, mount it on a different directory /mnt/test as

mount.ecryptfs /export/crtest /mnt/test -o key=passphrase,passphrase_passwd=TestPassword,ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_passthrough=n

Once mounted, simply try file operations. If a file is created on the ecrypt mount, the file does not get encrypted. For the same operation on the ext3 or any other disk filesystem, it just works fine.

And sometimes, when a file is copied to the ecrypt mount point, a 0 byte file gets created.

Regards,
Sachidananda.

Comment 1 Amar Tumballi 2011-01-21 08:03:18 UTC
Sac,

Is this happening still ? I don't think we have hit this issue. Can you please try with newer version (3.1.2+) and let us know if its working?

Regards,
Amar

Comment 2 Amar Tumballi 2011-04-25 09:33:16 UTC
Please update the status of this bug as its been more than 6months since its filed (bug id < 2000)

Please resolve it with proper resolution if its not valid anymore. If its still valid and not critical, move it to 'enhancement' severity.

Comment 3 Amar Tumballi 2011-06-22 04:17:49 UTC
Junaid,

Can you check with Sac if it is still the case? if works, close this bug, otherwise, when you have time, look at what would be causing the failures.

Comment 4 Junaid 2011-06-23 08:18:19 UTC
This seems to be a O_DIRECT issue..

Comment 5 Amar Tumballi 2012-10-17 06:20:00 UTC
after the O_DIRECT fix went into fuse module, we didn't notice this issue.