search for: s_flag

Displaying 20 results from an estimated 54 matches for "s_flag".

Did you mean: f_flag
2010 Dec 01
2
[RFC PATCH 4/4 v2] Btrfs: deal with filesystem state at mount, umount
...ng in task context when an IO is @@ -1700,6 +1702,11 @@ struct btrfs_root *open_ctree(struct super_block *sb, if (!btrfs_super_root(disk_super)) goto fail_iput; + /* check filesystem state */ + fs_info->fs_state |= btrfs_super_flags(disk_super); + + btrfs_check_super_valid(fs_info, sb->s_flags & MS_RDONLY); + ret = btrfs_parse_options(tree_root, options); if (ret) { err = ret; @@ -2405,10 +2412,17 @@ int btrfs_commit_super(struct btrfs_root *root) up_write(&root->fs_info->cleanup_work_sem); trans = btrfs_join_transaction(root, 1); + if (IS_ERR(trans)) + retur...
2003 Jan 29
0
Ext3, orphans and read-only
...s a simple fix that reorders the tests in orphan_cleanup. It works on 2.4.9-e.10 and 2.4.18-19. A very similar patch should work on 2.5.59. --- linux-as/fs/ext3/super.c.orig Wed Jan 29 08:53:59 2003 +++ linux-as/fs/ext3/super.c Wed Jan 29 08:57:51 2003 @@ -815,12 +815,6 @@ return; } - if (s_flags & MS_RDONLY) { - printk(KERN_INFO "EXT3-fs: %s: orphan cleanup on readonly fs\n", - bdevname(sb->s_dev)); - sb->s_flags &= ~MS_RDONLY; - } - if (sb->u.ext3_sb.s_mount_state & EXT3_ERROR_FS) { if (es->s_last_orphan) jbd_debug(1, "Errors on f...
2011 May 18
2
Might a patch to ssh-agent to allow relaxing of peer euid check be accepted?
...-U Disable strict matching of peer EUID.\n"); exit(1); } @@ -1157,7 +1168,7 @@ init_rng(); seed_rng(); - while ((ch = getopt(ac, av, "cdksa:t:")) != -1) { + while ((ch = getopt(ac, av, "cdksa:t:U")) != -1) { switch (ch) { case 'c': if (s_flag) @@ -1186,6 +1197,9 @@ usage(); } break; + case 'U': + U_flag++; + break; default: usage(); } @@ -1193,7 +1207,7 @@ ac -= optind; av += optind; - if (ac > 0 && (c_flag || k_flag || s_flag || d_flag)) + if (ac > 0 && (c_flag || k_flag |...
2009 Sep 17
1
[PATCH 2/2] Btrfs: Fix setting umask when POSIX ACLs are not enabled
We currently set sb->s_flags |= MS_POSIXACL unconditionally, which is incorrect -- it tells the VFS that it shouldn''t set umask because we will, yet we don''t set it ourselves if we aren''t using POSIX ACLs, so the umask ends up ignored. Signed-off-by: Chris Ball <cjb@laptop.org> --- fs/btrfs/...
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
...lock *sb = (const struct ext3_super_block *)buf; - /* ext4dev needs ext2 + journal + test_fs flag + one !ext3 feature */ - if (sb->s_magic == __cpu_to_le16(EXT2_SUPER_MAGIC) - && (sb->s_feature_compat - & __cpu_to_le32(EXT3_FEATURE_COMPAT_HAS_JOURNAL)) - && (sb->s_flags & __cpu_to_le32(EXT2_FLAGS_TEST_FILESYS)) - && (sb->s_feature_incompat - & __cpu_to_le32(EXT3_FEATURE_RO_COMPAT_SUPP) - || sb->s_feature_incompat - & __cpu_to_le32(EXT3_FEATURE_INCOMPAT_UNSUPPORTED) - || sb->s_feature_incompat - & __cpu_to_le32(EXT4_FEATURE_I...
2007 Aug 23
2
give me some works
hello, Chris In the next several months, I will have a lot of spare time. I will be happy if you assign some work to me. I have learn linux kernel for years but only fix a few small bugs in IP stack. In the past few months, I read some EXT4/VFS codes. I began reading source of btrfs ten days ago and have read it twice now. Regards YZ
2002 Apr 02
0
[Bug 199] New: ssh-agent -k doesn't check $SHELL environment variable
...ty: minor Priority: P3 Component: ssh-agent AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: menscher+bug at uiuc.edu CC: menscher+bug at uiuc.edu Line 882 of ssh-agent.c reads: if (ac == 0 && !c_flag && !k_flag && !s_flag && !d_flag) { stuff to set c_flag=1 iff $SHELL=*csh } This means that someone running ssh-agent -k will have k_flag set and therefore won't get the auto-shell determination, therefore leaving them with bash-style commands. I'm guessing the debug flag shouldn't be here eit...
2005 Jan 18
0
[PATCH] ext3: commit superblock before panicking
...bit so the journal is aborted before panic() is called. Eric Signed-off-by: Eric Lammerts <eric at lammerts.org> --- linux-2.6.10/fs/ext3/super.c.orig 2005-01-18 15:07:47.673128436 -0500 +++ linux-2.6.10/fs/ext3/super.c 2005-01-18 15:43:55.311501654 -0500 @@ -143,9 +143,6 @@ if (sb->s_flags & MS_RDONLY) return; - if (test_opt (sb, ERRORS_PANIC)) - panic ("EXT3-fs (device %s): panic forced after error\n", - sb->s_id); if (test_opt (sb, ERRORS_RO)) { printk (KERN_CRIT "Remounting filesystem read-only\n"); sb->s_flags |= MS_RDONLY; @@ -...
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
...; > + } else if (osb->s_mount_opt & OCFS2_MOUNT_ERRORS_CONT) { > + pr_crit("OCFS2: Returning error to the calling process.\n"); > + rv = -EIO; > + } else { /* default option */ > + rv = -EROFS; > + if (sb->s_flags & MS_RDONLY && > + (ocfs2_is_soft_readonly(osb) || > + ocfs2_is_hard_readonly(osb))) > + return rv; > > - ocfs2_set_osb_flag(osb, OCFS2_OSB_ERROR_FS); > - > - if (sb->s_flags &a...
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
...; > + } else if (osb->s_mount_opt & OCFS2_MOUNT_ERRORS_CONT) { > + pr_crit("OCFS2: Returning error to the calling process.\n"); > + rv = -EIO; > + } else { /* default option */ > + rv = -EROFS; > + if (sb->s_flags & MS_RDONLY && > + (ocfs2_is_soft_readonly(osb) || > + ocfs2_is_hard_readonly(osb))) > + return rv; > > - ocfs2_set_osb_flag(osb, OCFS2_OSB_ERROR_FS); > - > - if (sb->s_flags &a...
2012 Apr 26
7
[PATCH 2/4] Btrfs: fix deadlock on sb->s_umount when doing umount
The reason the deadlock is that: Task Btrfs-cleaner umount() down_write(&s->s_umount) sync_filesystem() do auto-defragment and produce lots of dirty pages close_ctree() wait for the end of btrfs-cleaner start_transaction reserve space shrink_delalloc() writeback_inodes_sb_nr_if_idle()
2008 Jun 16
0
latest fixes
...; + __u16 s_reserved_word_pad; + __u32 s_default_mount_opts; + __u32 s_first_meta_bg; + __u32 s_mkfs_time; + __u32 s_jnl_blocks[17]; + __u32 s_blocks_count_hi; + __u32 s_r_blocks_count_hi; + __u32 s_free_blocks_hi; + __u16 s_min_extra_isize; + __u16 s_want_extra_isize; + __u32 s_flags; + __u16 s_raid_stride; + __u16 s_mmp_interval; + __u64 s_mmp_block; + __u32 s_raid_stripe_width; + __u32 s_reserved[163]; }; #endif /* __EXT3_FS_H */ diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c index eee3431..6ff48e5 100644 --- a/usr/kinit/fstype/fstype.c +++...
2009 Jan 24
2
[PATCH] btrfs: flushoncommit mount option
...t, FLUSHONCOMMIT); + break; default: break; } @@ -369,9 +374,8 @@ fail_close: int btrfs_sync_fs(struct super_block *sb, int wait) { struct btrfs_trans_handle *trans; - struct btrfs_root *root; + struct btrfs_root *root = btrfs_sb(sb); int ret; - root = btrfs_sb(sb); if (sb->s_flags & MS_RDONLY) return 0; diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 919172d..b8822d5 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -892,6 +892,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans, struct extent_io_tree *pinned_copy...
2009 Nov 12
0
[PATCH 05/12] Btrfs: Avoid orphan inodes cleanup during replaying log
...= 1; + root->clean_orphans = 1; + } spin_unlock(&fs_info->fs_roots_radix_lock); radix_tree_preload_end(); if (ret) { @@ -1227,10 +1230,6 @@ again: ret = btrfs_find_dead_roots(fs_info->tree_root, root->root_key.objectid); WARN_ON(ret); - - if (!(fs_info->sb->s_flags & MS_RDONLY)) - btrfs_orphan_cleanup(root); - return root; fail: free_fs_root(root); @@ -1689,6 +1688,7 @@ struct btrfs_root *open_ctree(struct super_block *sb, mutex_init(&fs_info->cleaner_mutex); mutex_init(&fs_info->volume_mutex); init_rwsem(&fs_info->extent...
2012 Apr 09
9
[PATCH] Btrfs: use i_version instead of our own sequence
...0; ei->last_sub_trans = 0; ei->logged_trans = 0; diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 54e7ee9..ee1bb31 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -770,7 +770,7 @@ static int btrfs_fill_super(struct super_block *sb, #ifdef CONFIG_BTRFS_FS_POSIX_ACL sb->s_flags |= MS_POSIXACL; #endif - + sb->s_flags |= MS_I_VERSION; err = open_ctree(sb, fs_devices, (char *)data); if (err) { printk("btrfs: open_ctree failed\n"); -- 1.7.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to...
2011 Apr 06
3
[PATCH V2] Btrfs: fix subvolume mount by name problem when default mount subvolume is set
...btrfs_parse_early_options(data, mode, fs_type, &subvol_name, &subvol_objectid, - &fs_devices); + &subvol_rootid, &fs_devices); if (error) return error; @@ -786,15 +801,17 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, s->s_flags |= MS_ACTIVE; } - root = get_default_root(s, subvol_objectid); - if (IS_ERR(root)) { - error = PTR_ERR(root); - deactivate_locked_super(s); - goto error_free_subvol_name; - } /* if they gave us a subvolume name bind mount into that */ if (strcmp(subvol_name, ".")) { struct...
2000 Feb 08
0
Bug report and PATCH in ssh-agent in openssh 1.2.2
...nt.c~ Mon Jan 3 20:41:05 2000 +++ openssh-1.2.2/ssh-agent.c Tue Feb 8 14:42:11 2000 @@ -515,7 +515,7 @@ __progname); exit(1); } - while ((ch = getopt(ac, av, "cks")) != -1) { + while ((ch = getopt(ac, av, "+cks")) != -1) { switch (ch) { case 'c': if (s_flag) -- cut here --------------------------------------------------------- I have built an rpm with this patch, but don't know where to upload it. -- Nick Urbanik, Dept. of Electrical & Communications Engineering Hong Kong Institute of Vocational Education (Tsing Yi) email: nicku at vtc.edu.hk...
2006 Aug 28
0
patch for ssh-agent force confirm keys
...); @@ -1029,7 +1026,7 @@ init_rng(); seed_rng(); - while ((ch = getopt(ac, av, "Ccdksa:t:")) != -1) { + while ((ch = getopt(ac, av, "cdksa:t:")) != -1) { switch (ch) { case 'c': if (s_flag) @@ -1058,9 +1055,6 @@ usage(); } break; - case 'C': - confirm = 1; - break; default: usage(); }
2005 Jun 20
0
[patch 1/3] fs/ext3/super.c: fix sparse warnings
An embedded and charset-unspecified text was scrubbed... Name: sparse-fs_ext3_super.patch URL: <http://listman.redhat.com/archives/ext3-users/attachments/20050620/af49961a/attachment.ksh>
2008 Aug 19
0
[PATCH] Reinstate '-osubvol=.' option to mount entire tree
...t; --- super.c | 34 +++++++++++++++++++--------------- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/super.c b/super.c index 55f4d00..f7b3eac 100644 --- a/super.c +++ b/super.c @@ -451,21 +451,25 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, s->s_flags |= MS_ACTIVE; } - mutex_lock(&s->s_root->d_inode->i_mutex); - root = lookup_one_len(subvol_name, s->s_root, strlen(subvol_name)); - mutex_unlock(&s->s_root->d_inode->i_mutex); - if (IS_ERR(root)) { - up_write(&s->s_umount); - deactivate_super(s); - error...