@@ -12,7 +12,7 @@ lib_LTLIBRARIES = libndctl.la
libndctl_la_SOURCES =\
libndctl.h \
- libndctl-private.h \
+ private.h \
../../util/log.c \
../../util/log.h \
../../util/sysfs.c \
@@ -26,13 +26,13 @@ libndctl_la_LIBADD =\
$(KMOD_LIBS)
if ENABLE_ARS
-libndctl_la_SOURCES += libndctl-ars.c
+libndctl_la_SOURCES += ars.c
endif
if ENABLE_SMART
-libndctl_la_SOURCES += libndctl-smart.c
-libndctl_la_SOURCES += libndctl-hpe1.c
-libndctl_la_SOURCES += libndctl-msft.c
+libndctl_la_SOURCES += smart.c
+libndctl_la_SOURCES += hpe1.c
+libndctl_la_SOURCES += msft.c
endif
EXTRA_DIST += libndctl.sym
similarity index 99%
rename from ndctl/lib/libndctl-ars.c
rename to ndctl/lib/ars.c
@@ -12,7 +12,7 @@
*/
#include <stdlib.h>
#include <ndctl/libndctl.h>
-#include "libndctl-private.h"
+#include "private.h"
NDCTL_EXPORT struct ndctl_cmd *ndctl_bus_cmd_new_ars_cap(struct ndctl_bus *bus,
unsigned long long address, unsigned long long len)
similarity index 99%
rename from ndctl/lib/libndctl-hpe1.c
rename to ndctl/lib/hpe1.c
@@ -15,9 +15,9 @@
#include <limits.h>
#include <util/log.h>
#include <ndctl/libndctl.h>
-#include "libndctl-private.h"
+#include "private.h"
-#include "ndctl-hpe1.h"
+#include "hpe1.h"
#define CMD_HPE1(_c) ((_c)->hpe1)
#define CMD_HPE1_SMART(_c) (CMD_HPE1(_c)->u.smart.data)
similarity index 100%
rename from ndctl/lib/ndctl-hpe1.h
rename to ndctl/lib/hpe1.h
@@ -37,7 +37,7 @@
#include <util/sysfs.h>
#include <ndctl/libndctl.h>
#include <daxctl/libdaxctl.h>
-#include "libndctl-private.h"
+#include "private.h"
static uuid_t null_uuid;
similarity index 98%
rename from ndctl/lib/libndctl-msft.c
rename to ndctl/lib/msft.c
@@ -16,8 +16,8 @@
#include <limits.h>
#include <util/log.h>
#include <ndctl/libndctl.h>
-#include "libndctl-private.h"
-#include "ndctl-msft.h"
+#include "private.h"
+#include "msft.h"
#define CMD_MSFT(_c) ((_c)->msft)
#define CMD_MSFT_SMART(_c) (CMD_MSFT(_c)->u.smart.data)
similarity index 100%
rename from ndctl/lib/ndctl-msft.h
rename to ndctl/lib/msft.h
similarity index 99%
rename from ndctl/lib/libndctl-private.h
rename to ndctl/lib/private.h
@@ -31,8 +31,8 @@
#include <ndctl/libndctl.h>
#include <ccan/endian/endian.h>
#include <ccan/short_types/short_types.h>
-#include "ndctl-hpe1.h"
-#include "ndctl-msft.h"
+#include "hpe1.h"
+#include "msft.h"
#define SZ_16M 0x01000000
similarity index 99%
rename from ndctl/lib/libndctl-smart.c
rename to ndctl/lib/smart.c
@@ -14,7 +14,7 @@
#include <limits.h>
#include <util/log.h>
#include <ndctl/libndctl.h>
-#include "libndctl-private.h"
+#include "private.h"
/*
* Define the wrappers around the ndctl_smart_ops:
The "libndctl-" prefix is redundant given the source files already live in the ndctl/lib/ directory. There is a similar story for removing the "ndctl-" prefix on the vendor-specific / internal-only headers. Cc: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- ndctl/lib/Makefile.am | 10 +++++----- ndctl/lib/ars.c | 2 +- ndctl/lib/hpe1.c | 4 ++-- ndctl/lib/hpe1.h | 0 ndctl/lib/libndctl.c | 2 +- ndctl/lib/msft.c | 4 ++-- ndctl/lib/msft.h | 0 ndctl/lib/private.h | 4 ++-- ndctl/lib/smart.c | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) rename ndctl/lib/{libndctl-ars.c => ars.c} (99%) rename ndctl/lib/{libndctl-hpe1.c => hpe1.c} (99%) rename ndctl/lib/{ndctl-hpe1.h => hpe1.h} (100%) rename ndctl/lib/{libndctl-msft.c => msft.c} (98%) rename ndctl/lib/{ndctl-msft.h => msft.h} (100%) rename ndctl/lib/{libndctl-private.h => private.h} (99%) rename ndctl/lib/{libndctl-smart.c => smart.c} (99%)