Skip to content

Commit

Permalink
ecryptfs: missing initialization of the superblock 'magic' field
Browse files Browse the repository at this point in the history
This patch initializes the 'magic' field of ecryptfs filesystems to
ECRYPTFS_SUPER_MAGIC.

Signed-off-by: Roberto Sassu <[email protected]>
[tyhicks: merge with 66cb766]
Signed-off-by: Tyler Hicks <[email protected]>
  • Loading branch information
Roberto Sassu authored and Tyler Hicks committed Jan 17, 2011
1 parent 2a8652f commit 070baa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ecryptfs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/parser.h>
#include <linux/fs_stack.h>
#include <linux/slab.h>
#include <linux/magic.h>
#include "ecryptfs_kernel.h"

/**
Expand Down Expand Up @@ -564,6 +565,7 @@ static struct dentry *ecryptfs_mount(struct file_system_type *fs_type, int flags
ecryptfs_set_superblock_lower(s, path.dentry->d_sb);
s->s_maxbytes = path.dentry->d_sb->s_maxbytes;
s->s_blocksize = path.dentry->d_sb->s_blocksize;
s->s_magic = ECRYPTFS_SUPER_MAGIC;

inode = ecryptfs_get_inode(path.dentry->d_inode, s);
rc = PTR_ERR(inode);
Expand Down

0 comments on commit 070baa5

Please sign in to comment.