Re: [PATCH v2 3/6] common/rc: Remove unused _require_scratch_dax()

Ira Weiny
2020-06-17T20:59:40Z

On Wed, Jun 17, 2020 at 05:32:01PM +0800, Xiao Yang wrote:
> From: Xiao Yang <yangx.jy@cn.fujitsu.com>
>
> Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>

Reviewed-by: Ira Weiny <ira.weiny@intel.com>

> ---
> common/rc | 13 -------------
> 1 file changed, 13 deletions(-)
>
> diff --git a/common/rc b/common/rc
> index ec7c19e4..dba52002 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -3175,19 +3175,6 @@ _require_scratch_shutdown()
> }
>
> # Does dax mount option work on this dev/fs?
> -_require_scratch_dax()
> -{
> - _require_scratch
> - _scratch_mkfs > /dev/null 2>&1
> - _try_scratch_mount -o dax || \
> - _notrun "mount $SCRATCH_DEV with dax failed"
> - # Check options to be sure. XFS ignores dax option
> - # and goes on if dev underneath does not support dax.
> - _fs_options $SCRATCH_DEV | grep -qw "dax" || \
> - _notrun "$SCRATCH_DEV $FSTYP does not support -o dax"
> - _scratch_unmount
> -}
> -
> _require_scratch_dax_mountopt()
> {
> local mountopt=$1
> --
> 2.21.0
>