statvfs does not detect readonly status when set through sysrq-u

Solution Unverified - Updated -

Issue

Applications using statfs() system call, which gets filesystem statistics, fail to detect read-only status of the filesystems when filesystems are remounted read-only by running echo u > /proc/sysrq-trigger command.

Environment

  • Red Hat Enterprise Linux 7
  • ext4 filesystem

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