]> sourceware.org Git - lvm2.git/commit
RAID: Add RAID status accessibility functions
authorJonathan Brassow <jbrassow@redhat.com>
Fri, 1 Feb 2013 17:31:47 +0000 (11:31 -0600)
committerJonathan Brassow <jbrassow@redhat.com>
Fri, 1 Feb 2013 17:31:47 +0000 (11:31 -0600)
commitc8242e5cf4895f13e16b598b387c876c6fab7180
tree48c27d6d3548f5a952a2fc3f2fee217da3a1c39a
parenta3cfe9d9b7d77d2641b052c33316fda71d05b0d7
RAID:  Add RAID status accessibility functions

Similar to the way thin* accesses its kernel status, we add a method
for RAID to grab the various values in its status output without the
higher levels (LVM) having to understand how to parse the output.
Added functions include:
        - lib/activate/dev_manager.c:dev_manager_raid_status()
          Pulls the status line from the kernel

        - libdm/libdm-deptree.c:dm_get_status_raid()
          Parses status line and puts components into dm_status_raid struct

        - lib/activate/activate.c:lv_raid_dev_health()
          Accesses dm_status_raid to deliver raid dev_health string

The new structure and functions can provide a more unified way to access
status information.  ('lv_raid_percent' could switch to using these
functions, for example.)
lib/activate/activate.c
lib/activate/activate.h
lib/activate/dev_manager.c
lib/activate/dev_manager.h
libdm/libdevmapper.h
libdm/libdm-deptree.c
This page took 0.038397 seconds and 5 git commands to generate.