lkml.org 
[lkml]   [2010]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 05/18] xstat: eCryptFS: Return extended attributes [ver #6]
    Date
    Return extended attributes from the eCryptFS filesystem, dredged up from the
    lower filesystem.

    Possibly eCryptFS should also set FS_COMPR_FL on its compressed files.

    Signed-off-by: David Howells <dhowells@redhat.com>
    ---

    fs/ecryptfs/inode.c | 6 ++++--
    1 files changed, 4 insertions(+), 2 deletions(-)

    diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
    index 31ef525..41bc407 100644
    --- a/fs/ecryptfs/inode.c
    +++ b/fs/ecryptfs/inode.c
    @@ -994,8 +994,10 @@ int ecryptfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
    struct kstat lower_stat;
    int rc;

    - rc = vfs_getattr(ecryptfs_dentry_to_lower_mnt(dentry),
    - ecryptfs_dentry_to_lower(dentry), &lower_stat);
    + lower_stat.query_flags = stat->query_flags;
    + lower_stat.request_mask = stat->request_mask | XSTAT_REQUEST_BLOCKS;
    + rc = vfs_xgetattr(ecryptfs_dentry_to_lower_mnt(dentry),
    + ecryptfs_dentry_to_lower(dentry), &lower_stat);
    if (!rc) {
    generic_fillattr(dentry->d_inode, stat);
    stat->blocks = lower_stat.blocks;


    \
     
     \ /
      Last update: 2010-07-15 04:25    [W:0.026 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site