PEL: Add size, creator, sev to repo attributes

Have the Repository class track the disk usage, creator ID and severity
of each PEL along with the attributes already tracked so that they can
be used in the future for categorizing PELs to prune.

Note the size field is the amount of space the PEL file uses on disk, as
determined by the stat() function call, and not just the regular file
size, as the pruning algorithm is based on disk usage.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Idc996ef38726651d23ad478b18460b3d1ca950b5
diff --git a/extensions/openpower-pels/repository.hpp b/extensions/openpower-pels/repository.hpp
index 2e2f623..ecfcf7e 100644
--- a/extensions/openpower-pels/repository.hpp
+++ b/extensions/openpower-pels/repository.hpp
@@ -27,15 +27,20 @@
     struct PELAttributes
     {
         std::filesystem::path path;
+        size_t sizeOnDisk;
+        uint8_t creator;
+        uint8_t severity;
         std::bitset<16> actionFlags;
         TransmissionState hostState;
         TransmissionState hmcState;
 
         PELAttributes() = delete;
 
-        PELAttributes(const std::filesystem::path& p, uint16_t flags,
+        PELAttributes(const std::filesystem::path& p, size_t size,
+                      uint8_t creator, uint8_t sev, uint16_t flags,
                       TransmissionState hostState, TransmissionState hmcState) :
             path(p),
+            sizeOnDisk(size), creator(creator), severity(sev),
             actionFlags(flags), hostState(hostState), hmcState(hmcState)
         {
         }