xfs
[Top] [All Lists]

Re: [PATCH 3/3] xfs: add an option to enable reflinks at mount time

To: xfs@xxxxxxxxxxx
Subject: Re: [PATCH 3/3] xfs: add an option to enable reflinks at mount time
From: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
Date: Mon, 6 Jun 2016 13:29:50 +0200
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20160606112342.GB23695@xxxxxxxxxx>
Mail-followup-to: xfs@xxxxxxxxxxx
References: <1464877150-20457-1-git-send-email-hch@xxxxxx> <1464877150-20457-4-git-send-email-hch@xxxxxx> <20160606112342.GB23695@xxxxxxxxxx>
User-agent: Mutt/1.5.24 (2015-08-30)
Ugh, I just realized dave and derrick had already replied, pointing issues I
didn't figure out, but still I'm curious for the question I asked :)

> Hi hch,
> 
> The patchset looks good, although I'm not quite familiar with the reflink code
> so, I apologize if it is a stupid question
> 
> After enabling the reflink feature during mount time, I believe this will not
> have any problems in future mounts of this filesystem without reflink support?
> 
> > index 84348af..dfa5077 100644
> > --- a/fs/xfs/xfs_super.c
> > +++ b/fs/xfs/xfs_super.c
> > @@ -82,7 +82,7 @@ enum {
> >     Opt_quota, Opt_noquota, Opt_usrquota, Opt_grpquota, Opt_prjquota,
> >     Opt_uquota, Opt_gquota, Opt_pquota,
> >     Opt_uqnoenforce, Opt_gqnoenforce, Opt_pqnoenforce, Opt_qnoenforce,
> > -   Opt_discard, Opt_nodiscard, Opt_dax, Opt_err,
> > +   Opt_discard, Opt_nodiscard, Opt_reflink, Opt_dax, Opt_err,
> >  };
> >  
> >  static const match_table_t tokens = {
> > @@ -132,6 +132,7 @@ static const match_table_t tokens = {
> >     {Opt_qnoenforce, "qnoenforce"}, /* same as uqnoenforce */
> >     {Opt_discard,   "discard"},     /* Discard unused blocks */
> >     {Opt_nodiscard, "nodiscard"},   /* Do not discard unused blocks */
> > +   {Opt_reflink,   "reflink"},     /* Do not discard unused blocks */
>                                               ^^^^
> 
> Also, I believe this comment is wrong!?
> 
> Cheers
> 
> -- 
> Carlos
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

-- 
Carlos

<Prev in Thread] Current Thread [Next in Thread>