Bug 1127481 - RFE: Platform plugin, for file system, detect if a mount is read-only or not
Summary: RFE: Platform plugin, for file system, detect if a mount is read-only or not
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-06 23:30 UTC by Elias Ross
Modified: 2014-11-10 13:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Elias Ross 2014-08-06 23:30:01 UTC
It would be nice to know if, for example, the root partition (or any other partition) was mounted read-only ('ro'), if for example the filesystem had errors and thus was unable to come up properly.

This is primarily for problem detection.

It may be exposed through Hyperic library:

http://www.hyperic.com/support/docs/sigar/org/hyperic/sigar/FileSystem.html#getOptions()

However, the mount options may contain lots of other things not critical. Perhaps a simple 'read only' flag would make sense rather than showing all the mount options. I'm not sure what operating systems other than Linux what might be indicators.

Comment 1 Michael Burman 2014-11-10 13:17:15 UTC
I have added mount options as available trait, so comparing this to previous value should warn you (in case of read-only). And this is a bit more general property for other users also, as those options should not change on their own.

In the master:

commit 1dd295933482b36fa8473d80941b8bad8c680cc7
Author: Michael Burman <miburman@redhat.com>
Date:   Mon Nov 10 15:14:57 2014 +0200

    [BZ 1127481] Add mount options as traits to the filesystem monitoring


Note You need to log in before you can comment on or make changes to this bug.