[Ocfs2-tools-devel] [PATCH 5/6] O2info: Add running codes for '--volinfo'.
Joel Becker
Joel.Becker at oracle.com
Mon Apr 26 00:05:45 PDT 2010
On Mon, Apr 26, 2010 at 10:56:47AM +0800, tristan wrote:
> > Actually, the better reason is that we should be able to pass it
> >to mkfs/tunefs.
> >
> > mkfs -t ocfs2 --fs-features="$(o2info --fs-features /dev/xxx)" \
> > /dev/xxx
>
> It's quite attracting to me:)
We should also add an o2info operation --mkfs. It should output
mkfs.ocfs2 arguments that will duplicate the characteristics of the
specified volume.
# o2info --mkfs /dev/xxx
-N 2 -J size=128M --fs-features=sparse,unwritten,inline-data -C 4096 -b 4096
# mkfs -t ocfs2 $(o2info --mkfs /dev/xxx) /dev/yyy
Joel
--
Life's Little Instruction Book #139
"Never deprive someone of hope; it might be all they have."
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-tools-devel
mailing list