aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ndctl
AgeCommit message (Expand)AuthorFilesLines
2022-07-14ccan/list: Import latest list helpersDan Williams1-1/+0
2022-06-15ndctl/bus: Handle missing scrub commands more gracefullyTarun Sahu1-4/+14
2022-06-15ndctl/dimm: Flush invalidated labels after overwriteDan Williams1-12/+22
2022-06-15namespace-action: Drop more zero namespace checksMichal Suchanek3-14/+6
2022-06-15build: Move utility helpers to libutil.aDan Williams1-2/+0
2022-04-08monitor: Fix the monitor config file parsingShivaprasad G Bhat1-9/+20
2022-04-08ndctl,daxctl,util/build: Reconcile 'iniparser' dependencyVaibhav Jain1-1/+0
2022-02-23Merge branch 'for-73/rpm_fixes' into pendingVishal Verma2-43/+4
2022-02-23Merge branch 'for-73/vj/papr' into pendingVishal Verma8-23/+201
2022-02-22config: deduplicate monitor sample configuration.Michal Suchanek2-43/+4
2022-02-22ndctl,libndctl: Update nvdimm flags after smart-injectVaibhav Jain5-14/+51
2022-02-18libndctl/papr: Add limited support for inject-smartVaibhav Jain2-0/+78
2022-02-18libndctl, intel: Indicate supported smart-inject typesVaibhav Jain3-8/+38
2022-02-18libndctl/papr: Add support for reporting shutdown-countVaibhav Jain3-1/+34
2022-01-26util: Implement common bind/unbind helpersDan Williams1-91/+12
2022-01-26util/sysfs: Uplevel modalias lookup helper to util/Dan Williams1-28/+5
2022-01-26json: Add support for json_object_new_uint64()Dan Williams2-6/+6
2022-01-26ndctl: Rename util_filter to ndctl_filterDan Williams4-25/+26
2022-01-13ndctl: Jettison autotoolsDan Williams2-144/+0
2022-01-13build: Add meson build infrastructureDan Williams2-0/+130
2022-01-13build: Drop unnecessary $tool/config.h includesDan Williams2-2/+0
2022-01-13util: Distribute 'filter' and 'json' helpers to per-tool objectsDan Williams21-31/+1746
2022-01-13ndctl: Deprecate BLK aperture supportDan Williams3-21/+1
2021-12-17Merge branch 'for-72/vv/daxctl_config' into pendingVishal Verma8-38/+133
2021-12-17ndctl, monitor: refator monitor for supporting multiple config filesQI Fuli1-34/+39
2021-12-17ndctl, config: add the default ndctl configuration fileQI Fuli2-1/+59
2021-12-17ndctl: make ndctl support configuration filesQI Fuli6-2/+33
2021-12-17ndctl, util: add parse-configs helperQI Fuli1-1/+2
2021-07-08Merge branch 'for-72/ms/namespace_fixes' into pendingVishal Verma2-18/+16
2021-07-08namespace-action: Drop zero namespace checks.Santosh Sivaraj2-15/+0
2021-07-08ndctl/namespace: Suppress -ENXIO when processing all namespaces.Michal Suchanek1-0/+3
2021-07-08ndctl/namespace: Skip seed namespaces when processing all namespaces.Michal Suchanek1-3/+13
2021-07-08ndctl/dimm: Fix label index block calculationsJingqi Liu4-4/+22
2021-05-26ndctl/scrub: Reread scrub-engine status at startDan Williams1-1/+11
2021-05-26ndctl/scrub: Stop translating return valuesDan Williams1-7/+1
2021-05-20libndctl/papr: Fix probe for papr-scm compatible nvdimmsVaibhav Jain1-2/+55
2021-05-18libndctl: Remove redundant checks and assignmentsSantosh Sivaraj1-6/+3
2021-05-13Merge branch 'for-72/ss/papr_test' into pendingVishal Verma1-66/+42
2021-05-13papr: Add support to parse save_fail flag for dimmSantosh Sivaraj1-1/+4
2021-05-13libndctl: Unify adding dimms for papr and nfit familiesSantosh Sivaraj1-65/+38
2021-03-30libndctl: check for active system-ram before disabling daxctl devicesVishal Verma1-1/+24
2021-03-10Expose ndctl_bus_nfit_translate_spa as a public function.Tsaur, Erwin4-3/+7
2021-03-10zero_info_block: skip seed devicesJeff Moyer1-0/+3
2021-03-10ndctl/namespace: Fix disable-namespace accounting relative to seed devicesRedhairer Li3-7/+13
2021-03-09msft: Add xlat_firmware_status for JEDEC Byte Addressable Energy Backed DSMRedhairer Li2-0/+28
2020-12-21ndctl/dimm: Fix submit_abort_firmware()Jane Chu1-1/+1
2020-12-21ndctl/dimm: Attempt an abort upon firmware-update-busy statusDan Williams1-42/+67
2020-12-18Merge branches 'for-71/jm/devdax_subdiv', 'for-71/djbw/reconfig-ns', 'for-71/...Vishal Verma40-390/+162
2020-12-16ndctl/namespace: Reconfigure in-placeDan Williams1-24/+45
2020-12-16Rework license identificationDan Williams40-357/+81
2020-12-16Check whether seed is NULL in validate_namespace_optionsZhiqiang Liu1-4/+12
2020-12-16lib/inject: check whether cmd is created successfullyZhiqiang Liu1-0/+10
2020-12-16dimm: fix potential fd leakage in dimm_action()Zhiqiang Liu1-5/+7
2020-12-16lib/libndctl: fix memory leakage problem in add_busZhiqiang Liu1-0/+1
2020-12-16namespace: check whether pfn|dax|btt is NULL in setup_namespaceZhiqiang Liu1-0/+6
2020-10-09libndctl: Fix probe of non-nfit nvdimmsVaibhav Jain1-3/+0
2020-10-07ndctl/namespace: Catch attempts to sub-divide legacy / label-less capacityDan Williams1-0/+11
2020-10-01ndctl/inject-error: remove logically dead codeVishal Verma1-3/+0
2020-10-01libndctl: fix a potential buffer overflowVishal Verma1-1/+1
2020-09-29ndctl: Refactor nfit.h to acpi.hDan Williams1-52/+14
2020-08-20ndctl/bus: Add 'activate-firmware' commandDan Williams7-8/+249
2020-08-20ndctl/dimm: Auto-arm firmware activationDan Williams4-11/+149
2020-08-20ndctl/list: Add firmware activation enumerationDan Williams6-2/+185
2020-08-20ndctl/dimm: Emit dimm firmware details after updateDan Williams2-7/+17
2020-08-20ndctl/dimm: Prepare to emit dimm json object after firmware updateDan Williams3-94/+2
2020-08-20ndctl/dimm: Improve firmware-update failure messageDan Williams1-53/+55
2020-08-20ndctl/dimm: Detect firmware-update vs ARS conflictDan Williams1-9/+23
2020-08-20ndctl/list: Indicate firmware update capabilityDan Williams1-0/+5
2020-08-20ndctl/dimm: Fix chatty status messagesDan Williams1-7/+9
2020-07-22ndctl/lib: fix new symbol location in the symbol scriptVishal Verma1-1/+1
2020-07-21ndctl/namespace: fix a resource leak in file_write_infoblock()Vishal Verma1-1/+1
2020-07-21papr: Check for command type in papr_xlat_firmware_status()Vaibhav Jain1-3/+1
2020-07-20infoblock: Set the default alignment to the platform alignmentSantosh Sivaraj1-13/+56
2020-07-20ndctl/build: Fix zero-length array warningsDan Williams3-4/+4
2020-07-20libndctl/papr_scm: Add support for reporting "life_used_percentage" metricVaibhav Jain2-1/+34
2020-07-20Skip region filtering if numa_node attribute is not presentSantosh Sivaraj3-3/+15
2020-07-01monitor: Add epoll timeout for forcing a full dimm health checkVaibhav Jain1-3/+28
2020-06-19libndctl,papr_scm: Implement support for PAPR_PDSM_HEALTHVaibhav Jain1-1/+72
2020-06-19papr: Add scaffolding to issue and handle PDSM requestsVaibhav Jain1-0/+124
2020-06-19libndctl,papr_scm: Add definitions for PAPR nvdimm specific methodsVaibhav Jain4-0/+150
2020-06-19libncdtl: Add initial support for NVDIMM_FAMILY_PAPR nvdimm familyVaibhav Jain7-0/+123
2020-06-19libndctl: Refactor out add_dimm() to handle NFIT specific initVaibhav Jain1-81/+113
2020-03-23ndctl/namespace: Fix a resource leak in file_write_infoblockVishal Verma1-2/+4
2020-03-20ndctl/lib/namespace: Fix resource retrieval after size changeDan Williams1-0/+18
2020-03-20ndctl/list: Add option to list configured + disabled namespacesDan Williams1-5/+18
2020-03-20ndctl/namespace: Add write-infoblock commandDan Williams4-13/+317
2020-03-20ndctl/namespace: Parse infoblocks from stdinDan Williams1-7/+18
2020-03-20ndctl/namespace: Fix read-info-block vs read-infoblockDan Williams1-10/+10
2020-03-20ndctl/namespace: Update 'pfn' infoblock definitionDan Williams2-1/+13
2020-03-20ndctl/namespace: Fix namespace-action vs namespace-mode confusionDan Williams1-11/+11
2020-03-20ndctl/dimm: Rework iteration to drop unaligned pointersDan Williams2-14/+52
2020-03-20ndctl/dimm: Rework dimm command status reportingDan Williams9-52/+157
2020-03-20ndctl/namespace: Clarify 16M minimum size requirementDan Williams1-1/+20
2020-03-20ndctl/namespace: Validate namespace size within validate_namespace_options()Dan Williams1-17/+33
2020-03-20ndctl/namespace: Introduce mode-to-name and name-to-mode helpersDan Williams1-32/+7
2020-03-20ndctl/namespace: Kill off the legacy mode namesDan Williams3-35/+36
2020-03-20ndctl/namespace: Disable autorecovery of create-namespace failuresDan Williams1-4/+9
2020-03-20ndctl/namespace: Always zero info-blocksDan Williams1-10/+5
2020-03-20ndctl/namespace: Add read-infoblock commandDan Williams6-21/+457
2020-03-20ndctl/namespace: Validate resource alignment for dax-mode namespacesDan Williams1-0/+24
2020-03-20ndctl/util: Up-level is_power_of_2() and introduce IS_ALIGNEDDan Williams1-5/+1
2020-03-20ndctl/namespace: Check for region alignment violationsDan Williams1-0/+8
2020-03-20ndctl/namespace: Emit better errors on failureDan Williams1-27/+47
2020-03-20ndctl/region: Support ndctl_region_{get, set}_align()Dan Williams4-1/+58
2020-03-20ndctl/namespace: Fix destroy-namespace accounting relative to seed devicesDan Williams1-0/+10
2020-03-20ndctl/list: Drop named list objects from verbose listingDan Williams1-4/+13
2020-03-20ndctl/list: Add 'target_node' to region and namespace verbose listingsDan Williams5-3/+38
2020-02-28ndctl/build: Ensure header and other misc files are listed.Auke Kok2-2/+19
2020-02-28ndctl/zero-labels: Display error if regions are activeSantosh Sivaraj1-0/+6
2020-02-28namespace/create: Don't create multiple namespaces unless greedyVaibhav Jain1-4/+2
2020-02-27ndctl/namespace: Fix enable-namespace error for seed namespacesSantosh Sivaraj1-0/+5
2020-02-20ndctl: add util/filter.{c,h} to ndctl_SOURCES in Makefile.amVishal Verma1-1/+3
2020-02-20ndctl/lib: fix symbol redefinitions reported by GCC10Vishal Verma3-6/+6
2019-11-12Merge branch 'vv/ns_configuration_idle'Vishal Verma4-11/+29
2019-11-04ndctl/namespace: introduce ndctl_namespace_is_configuration_idle()Vishal Verma4-3/+29
2019-11-04ndctl/namespace: remove open coded is_namespace_active()Vishal Verma1-11/+3
2019-11-01ndctl: Clean up loop logic in query_fw_finish_statusIra Weiny1-68/+70
2019-10-23load-keys: get rid of duplicate assignmentJeff Moyer1-1/+0
2019-10-23query_fw_finish_status: get rid of redundant variableJeff Moyer1-6/+2
2019-10-23fix building of tags tablesJeff Moyer1-1/+1
2019-10-14ndctl: Reuse the align value from the original namespace on reconfigurationAneesh Kumar K.V1-0/+16
2019-09-20libndctl: Fix a potentially non NUL-terminated string operationVishal Verma1-2/+2
2019-08-29ndctl/namespace: add a --continue option to create namespaces greedilyVishal Verma1-6/+28
2019-08-27ndctl/namespace: Fix 'clear-error -s' excessive scrubbingDan Williams1-5/+13
2019-08-20ndctl/check-namespace: improve error message in absence of a BTTVishal Verma1-0/+2
2019-08-19ndctl/dimm: Add support for separate security-frozen attributeDan Williams4-1/+31
2019-08-07ndctl/lib: Fix duplicate bus detectionDan Williams1-1/+3
2019-08-06ndctl, check: Ensure mmap of BTT sections work with 64K page-sizesVaibhav Jain1-26/+67
2019-08-05ndctl/namespace: Report ENOSPC when regions are fullDan Williams1-0/+9
2019-08-05ndctl/namespace: Continue region search on 'missing seed' eventDan Williams1-1/+1
2019-08-05ndctl/namespace: Minimize label data transfer for autolabelDan Williams1-1/+1
2019-08-05ndctl/dimm: Limit read-labels with --index optionDan Williams1-16/+27
2019-08-05ndctl/dimm: Add offset and size options to {read, write, zero}-labelsDan Williams6-21/+74
2019-08-05ndctl/dimm: Minimize data-transfer for init-labelsDan Williams4-4/+53
2019-08-05ndctl/dimm: Support small label reads/writesDan Williams4-15/+103
2019-08-05ndctl/monitor: Allow monitor to be manually moved to the backgroundDan Williams1-2/+2
2019-08-05ndctl/dimm: Fix init-labels success reportingDan Williams1-1/+1
2019-08-05ndctl/namespace: Handle 'create-namespace' in label-less modeDan Williams1-3/+7
2019-08-05ndctl/dimm: Add --human support to read-labelsDan Williams1-8/+12
2019-08-05ndctl/dimm: Add 'flags' field to read-labels outputDan Williams1-0/+5
2019-08-01ndctl/monitor: make the daemon exit message 'info' levelVishal Verma1-1/+1
2019-06-14libndctl/inject: Refuse error injection for BTT namespacesVishal Verma1-9/+24
2019-05-10ndctl/namespace.c: fix a potential integer overflowVishal Verma1-1/+1
2019-05-10libndctl: fix an unhandled return in ndctl_bus_poll_scrub_completion()Vishal Verma1-0/+2
2019-05-10ndctl/namespace.c: fix an unchecked return valueVishal Verma1-2/+4
2019-05-10ndctl/namespace.c: fix a resource leak in bus_send_clear()Vishal Verma1-9/+11
2019-05-07ndctl: add a 'clear-errors' commandVishal Verma4-0/+282
2019-04-15ndctl/region: fix error propagation in region_action()Yi Zhang1-1/+1
2019-04-01monitor: remove the requirement of a default configQI Fuli1-2/+5
2019-03-28ndctl: fix key blob loading for non-TPM keysDave Jiang3-15/+28
2019-03-28ndctl: fix load-keys for non-TPM master-keysDave Jiang1-4/+2
2019-03-27ndctl: allow a "zero-key" for secure eraseDave Jiang3-8/+21
2019-03-26libndctl: Implement the "cmd_is_supported" dimm-op for Hyper-VDexuan Cui1-0/+14
2019-03-26libndctl: Add a new dimm-op cmd_is_supported()Dexuan Cui2-0/+6
2019-03-26ndctl, monitor: Don't require the support of ND_CMD_SMART_THRESHOLDDexuan Cui1-8/+4
2019-03-26libndctl: Implement the smart_get_shutdown_count dimm-op for Hyper-VDexuan Cui2-0/+51
2019-03-25libndctl: Implement the "smart_get_health" dimm-op for Hyper-VDexuan Cui6-0/+163
2019-03-22ndctl/list: Introduce region capability objectsDan Williams1-0/+12
2019-03-22ndctl: preserve keys after an overwrite commandDave Jiang1-3/+0
2019-03-20ndctl: fix a memory leak in libndctlƁukasz Plewa1-0/+1
2019-03-20ndctl/bus: Add poll interval to wait-scrubDan Williams4-24/+97
2019-02-05ndctl: fix ndctl linking with libkeyutilsPiotr Balcer2-4/+4
2019-02-05ndctl: Fix building in the absence of keyutilsOliver O'Halloran2-1/+3
2019-02-01ndctl, load-keys: fix a resource leak in load_dimm_keys()Vishal Verma1-4/+10
2019-02-01libndctl: fix a couple of theoretical buffer overrunsVishal Verma1-2/+2
2019-02-01ndctl, keys: fix a resource leak in verify_kek()Vishal Verma1-5/+11
2019-02-01ndctl, keys: fix a memory leak in dimm_create_key()Vishal Verma1-8/+9
2019-02-01ndctl, rpmbuild: Add a dummy readme file to ndctl_keysdirVishal Verma2-0/+3
2019-02-01ndctl: allow for a 'secure erase' using the master passphraseDave Jiang6-13/+44
2019-02-01ndctl: master phassphrase management supportDave Jiang6-35/+119
2019-02-01ndctl: add a wait-overwrite commandDave Jiang6-0/+109
2019-02-01ndctl: add an overwrite option to 'sanitize-dimm'Dave Jiang6-12/+83
2019-02-01ndctl: add a load-keys command and a modprobe configDave Jiang6-23/+310
2019-02-01ndctl: add a sanitize-dimm commandDave Jiang8-5/+103
2019-02-01ndctl: add a freeze-security commandDave Jiang6-0/+37
2019-02-01ndctl: add passphrase management commandsDave Jiang10-11/+677
2019-02-01ndctl: add support for displaying the security stateDave Jiang3-0/+45
2019-01-30libndctl: fix bb iterator leak in namespacesPiotr Balcer1-0/+1
2019-01-30ndctl/namespace: Make the create-namespace JSON output non-verboseOliver O'Halloran1-1/+1
2019-01-30ndctl/namespace: Validate alignment from the {pfn|dax} seedOliver O'Halloran1-8/+29
2019-01-30ndctl/namespace: Use seed alignment as the defaultOliver O'Halloran1-53/+43
2019-01-30ndctl/namespace: Check for seed namespaces earlierOliver O'Halloran1-25/+23
2019-01-30libndctl: Use the supported_alignment attributeOliver O'Halloran3-0/+51
2019-01-30libndctl: Fix the failure interpretation for status translationsVishal Verma1-1/+1
2019-01-17ndctl/build: Fix config.h dependencyDan Williams1-3/+3
2019-01-16ndctl: Introduce ndctl/config.hDan Williams2-0/+8
2019-01-16ndctl/init-labels: Fix label slot accounting per UEFI 2.7Dan Williams1-10/+25
2019-01-14ndctl: clean up usage of ndctl_cmd_submitVishal Verma4-17/+13
2019-01-14ndctl, monitor: switch to ndctl_cmd_submit_xlatVishal Verma1-3/+3
2019-01-14ndctl, inject-smart: switch to ndctl_cmd_submit_xlatVishal Verma2-12/+12
2019-01-14libndctl, intel: Add infrastructure for firmware_status translationVishal Verma6-0/+88
2019-01-08libndctl: ignore ENXIO in ndctl_namespace_deleteVishal Verma1-1/+6
2019-01-08ndctl, monitor: use type=simple instead of type=forkingJohannes Thumshirn1-3/+2
2019-01-02ndctl/monitor: Kill usage of ndctl/lib/private.hDan Williams3-44/+47
2019-01-02ndctl/monitor: Drop vasprintf usageDan Williams1-35/+8
2019-01-02ndctl/monitor: Fix / cleanup log_file()Dan Williams1-17/+6
2019-01-02ndctl/monitor: Unify definition of default monitor configfile pathDan Williams2-5/+3
2019-01-02ndctl/monitor: Drop 'struct ndctl_ctx *' castsDan Williams1-11/+11
2019-01-02ndctl, daxctl: Add type-safety to command harnessDan Williams13-78/+80
2019-01-02ndctl, daxctl: Split builtin.h per-commandDan Williams2-3/+36