Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125029
b: refs/heads/master
c: 53af8ee
h: refs/heads/master
i:
  125027: 15f7039
v: v3
  • Loading branch information
Sukadev Bhattiprolu authored and Linus Torvalds committed Jan 2, 2009
1 parent 10bf687 commit e21eb27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31af0abbdafb66ad8e27e3df878faec2ebe1132e
refs/heads/master: 53af8ee4094d80ddaac7efefb572b1c22ae49367
12 changes: 9 additions & 3 deletions trunk/fs/devpts/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,9 @@ static inline struct super_block *pts_sb_from_inode(struct inode *inode)
return devpts_mnt->mnt_sb;
}

static int devpts_remount(struct super_block *sb, int *flags, char *data)
static int parse_mount_options(char *data, struct pts_mount_opts *opts)
{
char *p;
struct pts_fs_info *fsi = DEVPTS_SB(sb);
struct pts_mount_opts *opts = &fsi->mount_opts;

opts->setuid = 0;
opts->setgid = 0;
Expand Down Expand Up @@ -120,6 +118,14 @@ static int devpts_remount(struct super_block *sb, int *flags, char *data)
return 0;
}

static int devpts_remount(struct super_block *sb, int *flags, char *data)
{
struct pts_fs_info *fsi = DEVPTS_SB(sb);
struct pts_mount_opts *opts = &fsi->mount_opts;

return parse_mount_options(data, opts);
}

static int devpts_show_options(struct seq_file *seq, struct vfsmount *vfs)
{
struct pts_fs_info *fsi = DEVPTS_SB(vfs->mnt_sb);
Expand Down

0 comments on commit e21eb27

Please sign in to comment.