diff mbox

[v3] ceph: show mount option 'ino32' if the value is different with default

Message ID 20180604080351.29559-1-cgxu519@gmx.com (mailing list archive)
State New, archived
Headers show

Commit Message

Chengguang Xu June 4, 2018, 8:03 a.m. UTC
In current ceph_show_options(), there is no item for showing 'ino32',
so add showing mount option 'ino32' if the value is different with
default.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
---
v1->v2:
- Remove modification about wsize because it has been fixed in commit
  c6cb3a2758i.

v2->v3:
- Remove showing option 'norequire_active_mds' because it's useless.
- Rebase on testing tree.

 fs/ceph/super.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ilya Dryomov June 4, 2018, 3:35 p.m. UTC | #1
On Mon, Jun 4, 2018 at 10:03 AM, Chengguang Xu <cgxu519@gmx.com> wrote:
> In current ceph_show_options(), there is no item for showing 'ino32',
> so add showing mount option 'ino32' if the value is different with
> default.
>
> Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
> ---
> v1->v2:
> - Remove modification about wsize because it has been fixed in commit
>   c6cb3a2758i.
>
> v2->v3:
> - Remove showing option 'norequire_active_mds' because it's useless.
> - Rebase on testing tree.
>
>  fs/ceph/super.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/fs/ceph/super.c b/fs/ceph/super.c
> index cec1d3343742..b5c5c4449d31 100644
> --- a/fs/ceph/super.c
> +++ b/fs/ceph/super.c
> @@ -544,6 +544,8 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root)
>                 seq_puts(m, ",nopoolperm");
>         if (fsopt->flags & CEPH_MOUNT_OPT_NOQUOTADF)
>                 seq_puts(m, ",noquotadf");
> +       if (fsopt->flags & CEPH_MOUNT_OPT_INO32)
> +               seq_puts(m, ",ino32");
>
>  #ifdef CONFIG_CEPH_FS_POSIX_ACL
>         if (fsopt->sb_flags & SB_POSIXACL)

Applied.

Thanks,

                Ilya
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index cec1d3343742..b5c5c4449d31 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -544,6 +544,8 @@  static int ceph_show_options(struct seq_file *m, struct dentry *root)
 		seq_puts(m, ",nopoolperm");
 	if (fsopt->flags & CEPH_MOUNT_OPT_NOQUOTADF)
 		seq_puts(m, ",noquotadf");
+	if (fsopt->flags & CEPH_MOUNT_OPT_INO32)
+		seq_puts(m, ",ino32");
 
 #ifdef CONFIG_CEPH_FS_POSIX_ACL
 	if (fsopt->sb_flags & SB_POSIXACL)