Christoph''s patch e244a0aeb6a599c19a7c802cda6e2d67c847b154 doesn''t display the discard option in /proc/mounts, leading to some confusion for me. Here''s the missing bit. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 752a546..5e5bd29 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -450,6 +450,8 @@ static int btrfs_show_options(struct seq_file *seq, struct vfsmount *vfs) seq_puts(seq, ",notreelog"); if (btrfs_test_opt(root, FLUSHONCOMMIT)) seq_puts(seq, ",flushoncommit"); + if (btrfs_test_opt(root, DISCARD)) + seq_puts(seq, ",discard"); if (!(root->fs_info->sb->s_flags & MS_POSIXACL)) seq_puts(seq, ",noacl"); return 0; -- Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you''re interested in selling us this operating system, but compare it to ours. We can''t possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Christoph Hellwig
2009-Dec-14 23:04 UTC
Re: [PATCH] btrfs: Show discard option in /proc/mounts
On Mon, Dec 14, 2009 at 03:01:12PM -0700, Matthew Wilcox wrote:> > Christoph''s patch e244a0aeb6a599c19a7c802cda6e2d67c847b154 doesn''t display > the discard option in /proc/mounts, leading to some confusion for me. > Here''s the missing bit. > > Signed-off-by: Matthew Wilcox <willy@linux.intel.com>Looks good, sorry for forgetting that bit. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html