ndctl: spelling fixes
PATCH 1/1 ndctl: spelling fixes
Fix various spelling errors in ndctl.
Signed-off-by Yi Zhang <[email protected]>
--- Documentation/cxl/cxl-reserve-dpa.txt | 2 +- Documentation/cxl/lib/libcxl.txt | 2 +- Documentation/daxctl/daxctl-create-device.txt | 2 +- Documentation/ndctl/ndctl-create-namespace.txt | 4 ++-- ccan/list/list.h | 2 +- cxl/bus.c | 2 +- cxl/lib/libcxl.c | 2 +- cxl/memdev.c | 2 +- meson.build | 2 +- ndctl/dimm.c | 2 +- ndctl/lib/ars.c | 4 ++-- ndctl/lib/libndctl.c | 8 ++++---- ndctl/lib/papr_pdsm.h | 8 ++++---- ndctl/libndctl.h | 4 ++-- test/cxl-sanitize.sh | 2 +- test/daxctl-create.sh | 4 ++-- test/daxctl-devices.sh | 4 ++-- test/libndctl.c | 2 +- test/security.sh | 2 +- util/parse-options.h | 6 +++--- util/strbuf.h | 2 +- 21 files changed, 34 insertions(+), 34 deletions(-)
Documentation/cxl/cxl-reserve-dpa.txt +1 -1
@@ -38,7 +38,7 @@ include::bus-option.txt[] -t:: --type:: Select the partition for the allocation. CXL devices implement a - partition that divdes 'ram' and 'pmem' capacity, where 'pmem' capacity + partition that divides 'ram' and 'pmem' capacity, where 'pmem' capacity consumes the higher DPA capacity above the partition boundary. The type defaults to 'pmem'. Note that given CXL DPA allocation constraints, once any 'pmem' allocation is established then all remaining 'ram' capacity
Documentation/cxl/lib/libcxl.txt +1 -1
@@ -296,7 +296,7 @@ use generic port APIs on root objects. Ports are hierarchical. All but the a root object have another CXL port as a parent object retrievable via cxl_port_get_parent(). -The root port of a hiearchy can be retrieved via any port instance in +The root port of a hierarchy can be retrieved via any port instance in that hierarchy via cxl_port_get_bus(). The host of a port is the corresponding device name of the PCIe Root
Documentation/daxctl/daxctl-create-device.txt +1 -1
@@ -62,7 +62,7 @@ DESCRIPTION ----------- Creates dax device in 'devdax' mode in dynamic regions. The resultant can also -be convereted to the 'system-ram' mode which arranges for the dax range to be +be converted to the 'system-ram' mode which arranges for the dax range to be hot-plugged into the system as regular memory. 'daxctl create-device' expects that the BIOS or kernel defines a range in the
Documentation/ndctl/ndctl-create-namespace.txt +2 -2
@@ -31,7 +31,7 @@ OPTIONS -m:: --mode=:: - "raw": expose the namespace capacity directly with - limitations. A raw pmem namepace namespace does not support + limitations. A raw pmem namespace does not support sector atomicity (see "sector" mode below). A raw pmem namespace may have limited to no dax support depending the kernel. In other words operations like direct-I/O targeting a
@@ -95,7 +95,7 @@ OPTIONS suffixes "k" or "K" for KiB, "m" or "M" for MiB, "g" or "G" for GiB and "t" or "T" for TiB. - For pmem namepsaces the size must be a multiple of the + For pmem namespaces the size must be a multiple of the interleave-width and the namespace alignment (see below).
ccan/list/list.h +1 -1
@@ -712,7 +712,7 @@ static inline void list_prepend_list_(struct list_head *to,* @off: offset(relative to @i) at which list node data resides. * * This is a low-level wrapper to iterate @i over the entire list, used to -* implement all oher, more high-level, for-each constructs. It's a for loop, +* implement all other, more high-level, for-each constructs. It's a for loop, * so you can break and continue as normal. * * WARNING! Being the low-level macro that it is, this wrapper doesn't know
cxl/bus.c +1 -1
@@ -100,7 +100,7 @@ static int bus_action(int argc, const char **argv, struct cxl_ctx *ctx,if (sscanf (argv[i],"%lu" , &id) ==1 )continue ; -log_err (&bl,"'%s' is not a valid bus identifer\n" , argv[i]); +log_err (&bl,"'%s' is not a valid bus identifier\n" , argv[i]); err++; }
cxl/lib/libcxl.c +1 -1
@@ -1785,7 +1785,7 @@ static void bus_invalidate(struct cxl_bus *bus)struct cxl_memdev *memdev;/* -* Something happend to cause the state of all ports to be +* Something happened to cause the state of all ports to be * indeterminate, delete them all and start over. */ cxl_memdev_foreach (ctx, memdev)
cxl/memdev.c +1 -1
@@ -650,7 +650,7 @@ param_size_to_volatile_size(const char *devname, enum cxl_setpart_type type, }/* -* Return the volatile_size to use in the CXL set paritition +* Return the volatile_size to use in the CXL set partition * command, or ULLONG_MAX if unable to validate the partition * request. */
meson.build +1 -1
@@ -173,7 +173,7 @@ keyutils = cc.find_library('keyutils', required : get_option('keyutils')) # iniparser lacks pkgconfig and its header files are either at '/usr/include' or '/usr/include/iniparser' # Use the path provided by user via meson configure -Diniparserdir=<somepath> -# if thats not provided then try searching for 'iniparser.h' in default system include path +# if that's not provided then try searching for 'iniparser.h' in default system include path # and if that not found then as a last resort try looking at '/usr/include/iniparser' iniparser_headers = ['iniparser.h', 'dictionary.h']
ndctl/dimm.c +1 -1
@@ -1074,7 +1074,7 @@ static int action_sanitize_dimm(struct ndctl_dimm *dimm,if (!param.crypto_erase && !param.overwrite) { param.crypto_erase = true;if (param.verbose) -fprintf (stderr,"No santize method passed in, default to crypto-erase\n" ); +fprintf (stderr,"No sanitize method passed in, default to crypto-erase\n" ); }if (param.crypto_erase) {
ndctl/lib/ars.c +2 -2
@@ -70,7 +70,7 @@ static bool __validate_ars_cap(struct ndctl_cmd *ars_cap) ({ \bool __valid =__validate_ars_cap (ars_cap); \if (!__valid) \ -dbg (ctx,"expected sucessfully completed ars_cap command\n" ); \ +dbg (ctx,"expected successfully completed ars_cap command\n" ); \ __valid; \ })
@@ -224,7 +224,7 @@ static bool __validate_ars_stat(struct ndctl_cmd *ars_stat) ({ \bool __valid =__validate_ars_stat (ars_stat); \if (!__valid) \ -dbg (ctx,"expected sucessfully completed ars_stat command\n" ); \ +dbg (ctx,"expected successfully completed ars_stat command\n" ); \ __valid; \ })
ndctl/lib/libndctl.c +4 -4
@@ -50,7 +50,7 @@ NDCTL_EXPORT size_t ndctl_sizeof_namespace_index(void) }/** -* ndctl_min_namespace_size - minimum namespace size that btt suports +* ndctl_min_namespace_size - minimum namespace size that btt supports */ NDCTL_EXPORT size_t ndctl_min_namespace_size(void) {
@@ -3184,7 +3184,7 @@ NDCTL_EXPORT struct ndctl_cmd *ndctl_dimm_cmd_new_cfg_read(struct ndctl_cmd *cfgif (cfg_size->type !=ND_CMD_GET_CONFIG_SIZE || cfg_size->status !=0 ) { -dbg (ctx,"expected sucessfully completed cfg_size command\n" ); +dbg (ctx,"expected successfully completed cfg_size command\n" );return NULL ; }
@@ -3275,7 +3275,7 @@ NDCTL_EXPORT struct ndctl_cmd *ndctl_dimm_cmd_new_cfg_write(struct ndctl_cmd *cf/* enforce rmw */ if (cfg_read->type !=ND_CMD_GET_CONFIG_DATA || cfg_read->status !=0 ) { -dbg (ctx,"expected sucessfully completed cfg_read command\n" ); +dbg (ctx,"expected successfully completed cfg_read command\n" );return NULL ; }
@@ -4694,7 +4694,7 @@ NDCTL_EXPORT int ndctl_namespace_disable_safe(struct ndctl_namespace *ndns)* Yes, TOCTOU hole, but if you're racing namespace * creation you have other problems, and there's nothing * stopping the !bdev case from racing to mount an fs or -* re-enabling the namepace. +* re-enabling the namespace. */ dbg (ctx,"%s: %s failed exclusive open: %s\n" , devname, bdev,strerror (errno));
ndctl/lib/papr_pdsm.h +4 -4
@@ -44,7 +44,7 @@* * PDSM Header: * This is papr-scm specific header that precedes the payload. This is defined -* as nd_cmd_pdsm_pkg. Following fields aare available in this header: +* as nd_cmd_pdsm_pkg. Following fields are available in this header: * * 'cmd_status' : (Out) Errors if any encountered while servicing PDSM. * 'reserved' : Not used, reserved for future and should be set to 0.
@@ -83,11 +83,11 @@* Various flags indicate the health status of the dimm. * * extension_flags : Any extension fields present in the struct. -* dimm_unarmed : Dimm not armed. So contents wont persist. +* dimm_unarmed : Dimm not armed. So contents won't persist. * dimm_bad_shutdown : Previous shutdown did not persist contents. -* dimm_bad_restore : Contents from previous shutdown werent restored. +* dimm_bad_restore : Contents from previous shutdown weren't restored. * dimm_scrubbed : Contents of the dimm have been scrubbed. -* dimm_locked : Contents of the dimm cant be modified until CEC reboot +* dimm_locked : Contents of the dimm can't be modified until CEC reboot * dimm_encrypted : Contents of dimm are encrypted. * dimm_health : Dimm health indicator. One of PAPR_PDSM_DIMM_XXXX * dimm_fuel_gauge : Life remaining of DIMM as a percentage from 0-100
ndctl/libndctl.h +2 -2
@@ -53,7 +53,7 @@ typedef unsigned char uuid_t[16];* * Notes: * 1/ The object ids are not guaranteed to be stable from boot to boot -* 2/ While regions and busses are numbered in sequential/bus-discovery +* 2/ While regions and buses are numbered in sequential/bus-discovery * order, the resulting block devices may appear to have random ids. * Use static attributes of the devices/device-path to generate a * persistent name.
@@ -258,7 +258,7 @@ int ndctl_cmd_ars_stat_get_flag_overflow(struct ndctl_cmd *ars_stat);/* * the ndctl.h definition of these are deprecated, libndctl.h is the -* authoritative defintion. +* authoritative definition. */ #define ND_SMART_HEALTH_VALID (1 << 0)#define ND_SMART_SPARES_VALID (1 << 1)
test/cxl-sanitize.sh +1 -1
@@ -64,7 +64,7 @@ done [ -z $inactive ] && err $LINENO # kickoff a background sanitize and make sure the wait takes a couple -# secounds +# seconds set_timeout $inactive 3000 start=$SECONDS echo 1 > /sys/bus/cxl/devices/${inactive}/security/sanitize &
test/daxctl-create.sh +2 -2
@@ -279,7 +279,7 @@ daxctl_test_adjust() } # Test 0: -# Sucessfully zero out the region device and allocate the whole space again. +# Successfully zero out the region device and allocate the whole space again. daxctl_test0() { clear_dev
@@ -287,7 +287,7 @@ daxctl_test0() } # Test 1: -# Sucessfully creates and destroys a device with the whole available space +# Successfully creates and destroys a device with the whole available space daxctl_test1() { local daxdev
test/daxctl-devices.sh +2 -2
@@ -117,7 +117,7 @@ daxctl_test() if ! "$NDCTL" disable-namespace "$testdev"; then echo "disable-namespace failed as expected" else - echo "disable-namespace succeded, expected failure" + echo "disable-namespace succeeded, expected failure" echo "reboot required to recover from this state" return 1 fi
@@ -130,7 +130,7 @@ daxctl_test() if ! "$DAXCTL" reconfigure-device -N -m system-ram "$daxdev"; then echo "reconfigure failed as expected" else - echo "reconfigure succeded, expected failure" + echo "reconfigure succeeded, expected failure" restore_online_policy return 1 fi
test/libndctl.c +1 -1
@@ -1617,7 +1617,7 @@ static int check_namespaces(struct ndctl_region *region,* On the second time through this loop we skip * establishing btt|pfn since * check_{btt|pfn}_autodetect() destroyed the -* inital instance. +* initial instance. */ if (mode ==BTT ) { btt_s = namespace->do_configure >0
test/security.sh +1 -1
@@ -250,7 +250,7 @@ echo "Test 5, freeze security" test_5_security_freeze # Load-keys is independent of actual nvdimm security and is part of key -# mangement testing. +# management testing. echo "Test 6, test load-keys" test_6_load_keys
util/parse-options.h +3 -3
@@ -75,7 +75,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);* * `flags`:: * mask of parse_opt_option_flags. -* PARSE_OPT_OPTARG: says that the argument is optionnal (not for BOOLEANs) +* PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs) * PARSE_OPT_NOARG: says that this option takes no argument, for CALLBACKs * PARSE_OPT_NONEG: says that this option cannot be negated * PARSE_OPT_HIDDEN this option is skipped in the default usage, showed in
@@ -141,7 +141,7 @@ struct option { .flags = PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NOARG}/* parse_options() will filter out the processed options and leave the -* non-option argments in argv[]. +* non-option arguments in argv[]. * Returns the number of arguments left in argv[]. */ extern int parse_options(int argc, const char **argv,
@@ -160,7 +160,7 @@ extern int parse_options_subcommand(int argc, const char **argv, extern NORETURN void usage_with_options(const char * const *usagestr,const struct option *options); -/*----- incremantal advanced APIs -----*/ +/*----- incremental advanced APIs -----*/ enum {PARSE_OPT_HELP =-1 ,
util/strbuf.h +1 -1
@@ -19,7 +19,7 @@* build complex strings/buffers whose final size isn't easily known. * * It is NOT legal to copy the ->buf pointer away. -* `strbuf_detach' is the operation that detachs a buffer from its shell +* `strbuf_detach' is the operation that detaches a buffer from its shell * while keeping the shell valid wrt its invariants. * * 2. the ->buf member is a byte array that has at least ->len + 1 bytes
Signature · 1 line
2.45.1
Quoted 3 lines · Yi Zhang
Fix various spelling errors in ndctl.
Signed-off-by Yi Zhang <[email protected]>
Reviewed-by Dave Jiang <[email protected]>
Quoted 402 lines
--- Documentation/cxl/cxl-reserve-dpa.txt | 2 +- Documentation/cxl/lib/libcxl.txt | 2 +- Documentation/daxctl/daxctl-create-device.txt | 2 +- Documentation/ndctl/ndctl-create-namespace.txt | 4 ++-- ccan/list/list.h | 2 +- cxl/bus.c | 2 +- cxl/lib/libcxl.c | 2 +- cxl/memdev.c | 2 +- meson.build | 2 +- ndctl/dimm.c | 2 +- ndctl/lib/ars.c | 4 ++-- ndctl/lib/libndctl.c | 8 ++++---- ndctl/lib/papr_pdsm.h | 8 ++++---- ndctl/libndctl.h | 4 ++-- test/cxl-sanitize.sh | 2 +- test/daxctl-create.sh | 4 ++-- test/daxctl-devices.sh | 4 ++-- test/libndctl.c | 2 +- test/security.sh | 2 +- util/parse-options.h | 6 +++--- util/strbuf.h | 2 +- 21 files changed, 34 insertions(+), 34 deletions(-)Documentation/cxl/cxl-reserve-dpa.txt +1
-1@@ -38,7 +38,7 @@ include::bus-option.txt[] -t:: --type:: Select the partition for the allocation. CXL devices implement a - partition that divdes 'ram' and 'pmem' capacity, where 'pmem' capacity + partition that divides 'ram' and 'pmem' capacity, where 'pmem' capacity consumes the higher DPA capacity above the partition boundary. The type defaults to 'pmem'. Note that given CXL DPA allocation constraints, once any 'pmem' allocation is established then all remaining 'ram' capacityDocumentation/cxl/lib/libcxl.txt +1
-1@@ -296,7 +296,7 @@ use generic port APIs on root objects. Ports are hierarchical. All but the a root object have another CXL port as a parent object retrievable via cxl_port_get_parent(). -The root port of a hiearchy can be retrieved via any port instance in +The root port of a hierarchy can be retrieved via any port instance in that hierarchy via cxl_port_get_bus(). The host of a port is the corresponding device name of the PCIe RootDocumentation/daxctl/daxctl-create-device.txt +1
-1@@ -62,7 +62,7 @@ DESCRIPTION ----------- Creates dax device in 'devdax' mode in dynamic regions. The resultant can also -be convereted to the 'system-ram' mode which arranges for the dax range to be +be converted to the 'system-ram' mode which arranges for the dax range to be hot-plugged into the system as regular memory. 'daxctl create-device' expects that the BIOS or kernel defines a range in theDocumentation/ndctl/ndctl-create-namespace.txt +2
-2@@ -31,7 +31,7 @@ OPTIONS -m:: --mode=:: - "raw": expose the namespace capacity directly with - limitations. A raw pmem namepace namespace does not support + limitations. A raw pmem namespace does not support sector atomicity (see "sector" mode below). A raw pmem namespace may have limited to no dax support depending the kernel. In other words operations like direct-I/O targeting a@@ -95,7 +95,7 @@ OPTIONS suffixes "k" or "K" for KiB, "m" or "M" for MiB, "g" or "G" for GiB and "t" or "T" for TiB. - For pmem namepsaces the size must be a multiple of the + For pmem namespaces the size must be a multiple of the interleave-width and the namespace alignment (see below).ccan/list/list.h +1
-1@@ -712,7 +712,7 @@ static inline void list_prepend_list_(struct list_head *to,* @off: offset(relative to @i) at which list node data resides. * * This is a low-level wrapper to iterate @i over the entire list, used to -* implement all oher, more high-level, for-each constructs. It's a for loop, +* implement all other, more high-level, for-each constructs. It's a for loop, * so you can break and continue as normal. * * WARNING! Being the low-level macro that it is, this wrapper doesn't know cxl/bus.c +1
-1@@ -100,7 +100,7 @@ static int bus_action(int argc, const char **argv, struct cxl_ctx *ctx,if (sscanf (argv[i],"%lu" , &id) ==1 )continue ; -log_err (&bl,"'%s' is not a valid bus identifer\n" , argv[i]); +log_err (&bl,"'%s' is not a valid bus identifier\n" , argv[i]); err++; }cxl/lib/libcxl.c +1
-1@@ -1785,7 +1785,7 @@ static void bus_invalidate(struct cxl_bus *bus)struct cxl_memdev *memdev;/* -* Something happend to cause the state of all ports to be +* Something happened to cause the state of all ports to be * indeterminate, delete them all and start over. */ cxl_memdev_foreach (ctx, memdev)cxl/memdev.c +1
-1@@ -650,7 +650,7 @@ param_size_to_volatile_size(const char *devname, enum cxl_setpart_type type, }/* -* Return the volatile_size to use in the CXL set paritition +* Return the volatile_size to use in the CXL set partition * command, or ULLONG_MAX if unable to validate the partition * request. */ meson.build +1
-1@@ -173,7 +173,7 @@ keyutils = cc.find_library('keyutils', required : get_option('keyutils')) # iniparser lacks pkgconfig and its header files are either at '/usr/include' or '/usr/include/iniparser' # Use the path provided by user via meson configure -Diniparserdir=<somepath> -# if thats not provided then try searching for 'iniparser.h' in default system include path +# if that's not provided then try searching for 'iniparser.h' in default system include path # and if that not found then as a last resort try looking at '/usr/include/iniparser' iniparser_headers = ['iniparser.h', 'dictionary.h']ndctl/dimm.c +1
-1@@ -1074,7 +1074,7 @@ static int action_sanitize_dimm(struct ndctl_dimm *dimm,if (!param.crypto_erase && !param.overwrite) { param.crypto_erase = true;if (param.verbose) -fprintf (stderr,"No santize method passed in, default to crypto-erase\n" ); +fprintf (stderr,"No sanitize method passed in, default to crypto-erase\n" ); }if (param.crypto_erase) {ndctl/lib/ars.c +2
-2@@ -70,7 +70,7 @@ static bool __validate_ars_cap(struct ndctl_cmd *ars_cap) ({ \bool __valid =__validate_ars_cap (ars_cap); \if (!__valid) \ -dbg (ctx,"expected sucessfully completed ars_cap command\n" ); \ +dbg (ctx,"expected successfully completed ars_cap command\n" ); \ __valid; \ })@@ -224,7 +224,7 @@ static bool __validate_ars_stat(struct ndctl_cmd *ars_stat) ({ \bool __valid =__validate_ars_stat (ars_stat); \if (!__valid) \ -dbg (ctx,"expected sucessfully completed ars_stat command\n" ); \ +dbg (ctx,"expected successfully completed ars_stat command\n" ); \ __valid; \ })ndctl/lib/libndctl.c +4
-4@@ -50,7 +50,7 @@ NDCTL_EXPORT size_t ndctl_sizeof_namespace_index(void) }/** -* ndctl_min_namespace_size - minimum namespace size that btt suports +* ndctl_min_namespace_size - minimum namespace size that btt supports */ NDCTL_EXPORT size_t ndctl_min_namespace_size(void) {@@ -3184,7 +3184,7 @@ NDCTL_EXPORT struct ndctl_cmd *ndctl_dimm_cmd_new_cfg_read(struct ndctl_cmd *cfgif (cfg_size->type !=ND_CMD_GET_CONFIG_SIZE || cfg_size->status !=0 ) { -dbg (ctx,"expected sucessfully completed cfg_size command\n" ); +dbg (ctx,"expected successfully completed cfg_size command\n" );return NULL ; }@@ -3275,7 +3275,7 @@ NDCTL_EXPORT struct ndctl_cmd *ndctl_dimm_cmd_new_cfg_write(struct ndctl_cmd *cf/* enforce rmw */ if (cfg_read->type !=ND_CMD_GET_CONFIG_DATA || cfg_read->status !=0 ) { -dbg (ctx,"expected sucessfully completed cfg_read command\n" ); +dbg (ctx,"expected successfully completed cfg_read command\n" );return NULL ; }@@ -4694,7 +4694,7 @@ NDCTL_EXPORT int ndctl_namespace_disable_safe(struct ndctl_namespace *ndns)* Yes, TOCTOU hole, but if you're racing namespace * creation you have other problems, and there's nothing * stopping the !bdev case from racing to mount an fs or -* re-enabling the namepace. +* re-enabling the namespace. */ dbg (ctx,"%s: %s failed exclusive open: %s\n" , devname, bdev,strerror (errno));ndctl/lib/papr_pdsm.h +4
-4@@ -44,7 +44,7 @@* * PDSM Header: * This is papr-scm specific header that precedes the payload. This is defined -* as nd_cmd_pdsm_pkg. Following fields aare available in this header: +* as nd_cmd_pdsm_pkg. Following fields are available in this header: * * 'cmd_status' : (Out) Errors if any encountered while servicing PDSM. * 'reserved' : Not used, reserved for future and should be set to 0. @@ -83,11 +83,11 @@* Various flags indicate the health status of the dimm. * * extension_flags : Any extension fields present in the struct. -* dimm_unarmed : Dimm not armed. So contents wont persist. +* dimm_unarmed : Dimm not armed. So contents won't persist. * dimm_bad_shutdown : Previous shutdown did not persist contents. -* dimm_bad_restore : Contents from previous shutdown werent restored. +* dimm_bad_restore : Contents from previous shutdown weren't restored. * dimm_scrubbed : Contents of the dimm have been scrubbed. -* dimm_locked : Contents of the dimm cant be modified until CEC reboot +* dimm_locked : Contents of the dimm can't be modified until CEC reboot * dimm_encrypted : Contents of dimm are encrypted. * dimm_health : Dimm health indicator. One of PAPR_PDSM_DIMM_XXXX * dimm_fuel_gauge : Life remaining of DIMM as a percentage from 0-100 ndctl/libndctl.h +2
-2@@ -53,7 +53,7 @@ typedef unsigned char uuid_t[16];* * Notes: * 1/ The object ids are not guaranteed to be stable from boot to boot -* 2/ While regions and busses are numbered in sequential/bus-discovery +* 2/ While regions and buses are numbered in sequential/bus-discovery * order, the resulting block devices may appear to have random ids. * Use static attributes of the devices/device-path to generate a * persistent name. @@ -258,7 +258,7 @@ int ndctl_cmd_ars_stat_get_flag_overflow(struct ndctl_cmd *ars_stat);/* * the ndctl.h definition of these are deprecated, libndctl.h is the -* authoritative defintion. +* authoritative definition. */ #define ND_SMART_HEALTH_VALID (1 << 0)#define ND_SMART_SPARES_VALID (1 << 1)test/cxl-sanitize.sh +1
-1@@ -64,7 +64,7 @@ done [ -z $inactive ] && err $LINENO # kickoff a background sanitize and make sure the wait takes a couple -# secounds +# seconds set_timeout $inactive 3000 start=$SECONDS echo 1 > /sys/bus/cxl/devices/${inactive}/security/sanitize &test/daxctl-create.sh +2
-2@@ -279,7 +279,7 @@ daxctl_test_adjust() } # Test 0: -# Sucessfully zero out the region device and allocate the whole space again. +# Successfully zero out the region device and allocate the whole space again. daxctl_test0() { clear_dev@@ -287,7 +287,7 @@ daxctl_test0() } # Test 1: -# Sucessfully creates and destroys a device with the whole available space +# Successfully creates and destroys a device with the whole available space daxctl_test1() { local daxdevtest/daxctl-devices.sh +2
-2@@ -117,7 +117,7 @@ daxctl_test() if ! "$NDCTL" disable-namespace "$testdev"; then echo "disable-namespace failed as expected" else - echo "disable-namespace succeded, expected failure" + echo "disable-namespace succeeded, expected failure" echo "reboot required to recover from this state" return 1 fi@@ -130,7 +130,7 @@ daxctl_test() if ! "$DAXCTL" reconfigure-device -N -m system-ram "$daxdev"; then echo "reconfigure failed as expected" else - echo "reconfigure succeded, expected failure" + echo "reconfigure succeeded, expected failure" restore_online_policy return 1 fitest/libndctl.c +1
-1@@ -1617,7 +1617,7 @@ static int check_namespaces(struct ndctl_region *region,* On the second time through this loop we skip * establishing btt|pfn since * check_{btt|pfn}_autodetect() destroyed the -* inital instance. +* initial instance. */ if (mode ==BTT ) { btt_s = namespace->do_configure >0 test/security.sh +1
-1@@ -250,7 +250,7 @@ echo "Test 5, freeze security" test_5_security_freeze # Load-keys is independent of actual nvdimm security and is part of key -# mangement testing. +# management testing. echo "Test 6, test load-keys" test_6_load_keysutil/parse-options.h +3
-3@@ -75,7 +75,7 @@ typedef int parse_opt_cb(const struct option *, const char *arg, int unset);* * `flags`:: * mask of parse_opt_option_flags. -* PARSE_OPT_OPTARG: says that the argument is optionnal (not for BOOLEANs) +* PARSE_OPT_OPTARG: says that the argument is optional (not for BOOLEANs) * PARSE_OPT_NOARG: says that this option takes no argument, for CALLBACKs * PARSE_OPT_NONEG: says that this option cannot be negated * PARSE_OPT_HIDDEN this option is skipped in the default usage, showed in @@ -141,7 +141,7 @@ struct option { .flags = PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NOARG}/* parse_options() will filter out the processed options and leave the -* non-option argments in argv[]. +* non-option arguments in argv[]. * Returns the number of arguments left in argv[]. */ extern int parse_options(int argc, const char **argv,@@ -160,7 +160,7 @@ extern int parse_options_subcommand(int argc, const char **argv, extern NORETURN void usage_with_options(const char * const *usagestr,const struct option *options); -/*----- incremantal advanced APIs -----*/ +/*----- incremental advanced APIs -----*/ enum {PARSE_OPT_HELP =-1 ,util/strbuf.h +1
-1@@ -19,7 +19,7 @@* build complex strings/buffers whose final size isn't easily known. * * It is NOT legal to copy the ->buf pointer away. -* `strbuf_detach' is the operation that detachs a buffer from its shell +* `strbuf_detach' is the operation that detaches a buffer from its shell * while keeping the shell valid wrt its invariants. * * 2. the ->buf member is a byte array that has at least ->len + 1 bytes
Alison Schofield
maintainerQuoted 1 line · Yi Zhang
Fix various spelling errors in ndctl.
Please limit this to user visible spelling errors, like echo, dbg() fprintf() log_err(), and Documentation/*.txt
Did you catch them all? How do you know? Please mention that in commit log.
Rather than the churn for non user visible messaging, let's catch spelling mistake before they get merged by reviewing ndctl patches on the list.
Please update with a proper commit message and log.
-- snip