[RHEL 9][LVM2] LVM_SUPPRESS_FD_WARNINGS not obeyed by command-line tools since 2.03.24

Solution In Progress - Updated -

Issue

Since LVM2 version 2.03.24 LVM_SUPPRESS_FD_WARNINGS=1 no longer works to suppress "File descriptor N (path) leaked on lvm invocation."

This is easily reproduced by running:

# { exec 123<> /dev/null; LVM_SUPPRESS_FD_WARNINGS=1 vgck  5>&-; }
File descriptor 123 (/dev/null) leaked on vgck invocation. Parent PID 138463: -bash

Environment

  • Red Hat Enterprise Linux 9
  • LVM2 versions 2.03.24 - 2.03.30

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content