projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a8652f
)
ecryptfs: missing initialization of the superblock 'magic' field
author
Roberto Sassu
<
[email protected]
>
Wed, 3 Nov 2010 10:11:22 +0000
(11:11 +0100)
committer
Tyler Hicks
<
[email protected]
>
Mon, 17 Jan 2011 17:23:01 +0000
(11:23 -0600)
This patch initializes the 'magic' field of ecryptfs filesystems to
ECRYPTFS_SUPER_MAGIC.
Signed-off-by: Roberto Sassu <
[email protected]
>
[tyhicks: merge with
66cb76666d69
]
Signed-off-by: Tyler Hicks <
[email protected]
>
fs/ecryptfs/main.c
patch
|
blob
|
history
diff --git
a/fs/ecryptfs/main.c
b/fs/ecryptfs/main.c
index d3b28abdd6aa38eba978433bb8e35f9646602023..19f04504f6259fe20ec2abf8d3cdec1120f4594c 100644
(file)
--- a/
fs/ecryptfs/main.c
+++ b/
fs/ecryptfs/main.c
@@
-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"
/**
@@
-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);