All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Williams <dan.j.williams@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: "linux-nvdimm@lists.01.org" <linux-nvdimm@lists.01.org>
Subject: Re: [PATCH v5] ndctl: daxctl: Adding io option for daxctl
Date: Wed, 6 Sep 2017 12:47:11 -0700	[thread overview]
Message-ID: <CAPcyv4g9N57y1aTrGy2=f883w6jdv+2=A0NzHRCy+j860u84FQ@mail.gmail.com> (raw)
In-Reply-To: <150420355300.6418.16181413869611049451.stgit@djiang5-desk3.ch.intel.com>

On Thu, Aug 31, 2017 at 11:20 AM, Dave Jiang <dave.jiang@intel.com> wrote:
> The daxctl io option allows I/Os to be performed between file descriptor to
> and from device dax files. It also provides a way to zero a device dax
> device.
>
> i.e. daxctl io --input=/home/myfile --output=/dev/dax1.0
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
[..]
> diff --git a/configure.ac b/configure.ac
> index 316f5b7..a16d555 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -93,6 +93,7 @@ PKG_CHECK_MODULES([KMOD], [libkmod])
>  PKG_CHECK_MODULES([UDEV], [libudev])
>  PKG_CHECK_MODULES([UUID], [uuid])
>  PKG_CHECK_MODULES([JSON], [json-c])
> +PKG_CHECK_MODULES([PMEM], [libpmem])

Ok, one last build comment. I think we should put the "daxctl io"
command support behind an explicit "--with-daxctl-io" option to
configure. The reason being that ndctl is a base level system system
package and libpmem is higher order application functionality. Ideally
libpmem would be using some of the libndctl helpers internally. In
order to bootstrap a configuration where libpmem depends on libndctl
and the daxctl utility depends on libpmem you need a way to disable
the libpmem dependency when initially building daxctl.

Also some environments may not want or be prepared to satisfy the
libpmem dependency, so let's default "daxctl io" to disabled. This
also means the spec file template needs to specify this option.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

      reply	other threads:[~2017-09-06 19:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-31 18:20 [PATCH v5] ndctl: daxctl: Adding io option for daxctl Dave Jiang
2017-09-06 19:47 ` Dan Williams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPcyv4g9N57y1aTrGy2=f883w6jdv+2=A0NzHRCy+j860u84FQ@mail.gmail.com' \
    --to=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=linux-nvdimm@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.