Coder Social home page Coder Social logo

Comments (6)

SaimonWoidig avatar SaimonWoidig commented on May 24, 2024 1

Oh my god, I don't even know, how I missed that MDRaid functionality in mdraid.go. Thanks, I will look and try it out, and I honestly think, that it's a better way to go. Sorry for your wasted time. 🤦😔

from procfs.

discordianfish avatar discordianfish commented on May 24, 2024

Do you have a concrete use for this?

from procfs.

SaimonWoidig avatar SaimonWoidig commented on May 24, 2024

Sorry for the late response, I was on a vacation.
I am developing a Zabbix Agent2 plugin for monitoring MD RAID and I thought, I could use the mdstat parsing functionality from this package.
For now, I just copied the file, did some changes to make it work (mainly rewrite errors). I made sure, that it's known that I took this part of code from the procfs module. I also used the same license.

from procfs.

discordianfish avatar discordianfish commented on May 24, 2024

Why don't you use MDStat() and only the parsing? Just trying to understand, in general I'm totally fine with exporting it. @SuperQ wdyt?

from procfs.

dswarbrick avatar dswarbrick commented on May 24, 2024

AFAIU, the general consensus is to move away from the regex-based parsing of /proc/mdstat in mdstat.go, and use the sysfs-based parser in sysfs/mdraid.go.

from procfs.

discordianfish avatar discordianfish commented on May 24, 2024

Ok then let's close this for now!

from procfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.