Return-Path: Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2313B21A143F1 for ; Fri, 16 Jun 2017 17:50:07 -0700 (PDT) From: "Kani, Toshimitsu" Subject: RE: [PATCH v2] libnvdimm, pmem: Add sysfs notifications to badblocks Date: Sat, 17 Jun 2017 00:51:21 +0000 Message-ID: References: <20170612222511.22030-1-toshi.kani@hpe.com> In-Reply-To: Content-Language: en-US MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dan Williams Cc: "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" List-ID: > On Fri, Jun 16, 2017 at 5:35 PM, Kani, Toshimitsu wrote: > >> On Mon, Jun 12, 2017 at 3:25 PM, Toshi Kani wrote: > >> > Sysfs "badblocks" information may be updated during run-time that: > >> > - MCE, SCI, and sysfs "scrub" may add new bad blocks > >> > - Writes and ioctl() may clear bad blocks > >> > > >> > Add support to send sysfs notifications to sysfs "badblocks" file > >> > under region and pmem directories when their badblocks information > >> > is re-evaluated (but is not necessarily changed) during run-time. > >> > > >> > Signed-off-by: Toshi Kani > >> > Cc: Dan Williams > >> > Cc: Vishal Verma > >> > Cc: Linda Knippers > >> > --- > >> > v2: Send notifications for the clearing case > >> > --- > >> > >> This looks good to me, I've applied it, but I also want to extend the > >> ndctl unit tests to cover this mechanism. > > > > Right. For the time being, would you mind to use the attached test > > program for your sanity tests? It simply monitors sysfs notifications > > and prints badblocks info... Sorry for inconvenience. > > > > Since I am not familiar with the ndctl unit tests and I am traveling for > > the rest of the month, I may have to look into it after I am back. > > > > No worries, I'll take a look at integrating this. Have a nice trip! Thanks Dan!! I really appreciate it! -Toshi _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm