Bug 2224202

Summary: mdadm -V and mdadm --version ouput should into stdout
Product: Red Hat Enterprise Linux 9 Reporter: Fine Fan <ffan>
Component: mdadmAssignee: XiaoNi <xni>
Status: ASSIGNED --- QA Contact: Fine Fan <ffan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.3CC: ncroxon, xni
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2224195 Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2224195    
Bug Blocks:    

Description Fine Fan 2023-07-20 07:49:00 UTC
+++ This bug was initially created as a clone of Bug #2224195 +++

Description of problem:

Checking the ouput of "mdadm -V" and "mdadm --version"

Version-Release number of selected component (if applicable):
mdadm-4.2-9.el9.

How reproducible:


Steps to Reproduce:
1. mdadm -V > mdadm_V.txt
2. mdadm --version > mdadm_version.txt
3. cat mdadm_V.txt   
4. cat mdadm_version.txt

Actual results:
Version number print to screen.
Nothing in the mdadm_V.txt and the mdadm_version.txt files.

Expected results:
mdadm version in these txt files.


Additional info:
If I use :
mdadm -V 2> mdadm_V.txt
mdadm --version 2> mdadm_version.txt
I could got the version in these txt files.