Bug 2224195

Summary: mdadm -V and mdadm --version ouput should into stdout
Product: Red Hat Enterprise Linux 8 Reporter: Fine Fan <ffan>
Component: mdadmAssignee: XiaoNi <xni>
Status: ASSIGNED --- QA Contact: Fine Fan <ffan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.9CC: ncroxon, xni
Target Milestone: rcKeywords: Triaged
Target Release: 8.10   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2224202 (view as bug list) 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:    
Bug Blocks: 2224202    

Description Fine Fan 2023-07-20 07:19:24 UTC
Description of problem:

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

Version-Release number of selected component (if applicable):
mdadm-4.2-8.el8.x86_64

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.