zfs/cmd
Arshad Hussain e2870fb24a
vdev_id: Add error message when $CONFIG is missing
It was observed that vdev_id exists silently when
the $CONFIG file is missing.

This patch adds error message in case vdev_id is
called without default $CONFIG or '-c'. This makes
end user observe the exit message more easily.

Before Patch:
~~~~~~~~~~~~~
$ ./cmd/vdev_id/vdev_id
$

After Patch:
~~~~~~~~~~~~
$ ./cmd/vdev_id/vdev_id
Error: Config file "/etc/zfs/vdev_id.conf" not found
$

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Closes #11498
2021-01-23 15:52:29 -08:00
..
arc_summary arc_summary3: Handle overflowing value width 2020-12-11 10:29:53 -08:00
arcstat FreeBSD: Update usage of py-sysctl 2020-12-10 15:28:31 -08:00
dbufstat dbufstat: Fix warnings with Python 3.8 2020-12-23 15:10:35 -08:00
fsck_zfs Fix typos in cmd/ 2019-08-30 09:43:30 -07:00
mount_zfs Re-apply path sanitizer, as mount(8) still mangles it 2021-01-19 11:57:31 -08:00
raidz_test allow callers to allocate and provide the abd_t struct 2021-01-20 11:24:37 -08:00
vdev_id vdev_id: Add error message when $CONFIG is missing 2021-01-23 15:52:29 -08:00
zdb Set aside a metaslab for ZIL blocks 2021-01-21 15:12:54 -08:00
zed ZED/zfs-list-cacher.sh: don't exit on ignored event type 2020-12-18 09:34:10 -08:00
zfs Use the correct return type for getopt 2020-12-17 10:19:30 -08:00
zfs_ids_to_path Use the correct return type for getopt 2020-12-17 10:19:30 -08:00
zgenhostid Install zgenhostid to sbindir 2021-01-21 12:58:24 -08:00
zhack nvlist leaked in zpool_find_config() 2020-12-28 10:05:31 -08:00
zinject Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
zpool Only add supported features during pool creation 2021-01-22 09:47:06 -08:00
zpool_influxdb zpool_influxdb: move to libexec dir 2020-11-28 11:15:57 -08:00
zstream Use the correct return type for getopt 2020-12-17 10:19:30 -08:00
zstreamdump Minor `zstream redup` command fixes 2020-04-10 21:10:09 -07:00
ztest ztest: Clean up use of ASSERT and VERIFY 2021-01-12 17:21:01 -08:00
zvol_id Replace ZFS on Linux references with OpenZFS 2020-10-08 20:10:13 -07:00
zvol_wait zvol_wait should ignore redacted zvols 2019-11-06 10:51:19 -08:00
Makefile.am Add zpool_influxdb command 2020-10-09 09:29:21 -07:00