zdev: implement option to identify files created by zdev

Enhance the 'chzdev' tool by introducing a new option to discern
files created by 'zdev-tools.' The command usage is as follows:

$ chzdev --is-owner <file-name>

When executed, the command will return an exit code of 0 for all
files generated by zdev-tools. In the case of an unknown file, the
tool will return the exit code 'EXIT_UNKNOWN_FILE i.e 33.'

Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Vineeth Vijayan
2024-02-01 16:27:41 +01:00
committed by Jan Höppner
parent 4c2bfb1d47
commit f1f80a8a20
5 changed files with 88 additions and 0 deletions

View File

@@ -58,5 +58,6 @@ OPTIONS
--no-settle Do not wait for udev to settle
--auto-conf Apply changes to auto-configuration only
-s, --site ID Apply changes to the specified site only
--is-owner FILE Examine whether the file is generated by zdev
-V, --verbose Print additional run-time information
-q, --quiet Print only minimal run-time information