Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:Update
ndctl
0010-ndctl-scrub-Stop-translating-return-values...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0010-ndctl-scrub-Stop-translating-return-values.patch of Package ndctl
From c52109355b715bbe21e284090435bee7563863cc Mon Sep 17 00:00:00 2001 From: Dan Williams <dan.j.williams@intel.com> Date: Wed, 26 May 2021 16:33:04 -0700 Subject: [PATCH] ndctl/scrub: Stop translating return values Upstream: v72 Git-commit: c52109355b715bbe21e284090435bee7563863cc In preparation for triggering a poll loop within ndctl_bus_start_scrub(), stop translating return values into -EOPNOTSUPP. Link: https://lore.kernel.org/r/162207198482.3715490.5994844104395495686.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> --- ndctl/lib/libndctl.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c index aa36a3c..e5641fe 100644 --- a/ndctl/lib/libndctl.c +++ b/ndctl/lib/libndctl.c @@ -1354,14 +1354,8 @@ static int __ndctl_bus_get_scrub_state(struct ndctl_bus *bus, NDCTL_EXPORT int ndctl_bus_start_scrub(struct ndctl_bus *bus) { struct ndctl_ctx *ctx = ndctl_bus_get_ctx(bus); - int rc; - rc = sysfs_write_attr(ctx, bus->scrub_path, "1\n"); - if (rc == -EBUSY) - return rc; - else if (rc < 0) - return -EOPNOTSUPP; - return 0; + return sysfs_write_attr(ctx, bus->scrub_path, "1\n"); } NDCTL_EXPORT int ndctl_bus_get_scrub_state(struct ndctl_bus *bus) -- 2.35.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor