Commit b13bbc0d authored by Oliver Steffen's avatar Oliver Steffen Committed by Bernd Lietzow

common: ostream operator<< for QuotaBlockDeviceFsType

(cherry picked from commit 5463fe5d6d54933932e9616ae114365ff6a403af)
parent 45274dfe
#include "Quota.h"
std::ostream& operator<<(std::ostream& stream, const QuotaBlockDeviceFsType type)
{
switch (type)
{
case QuotaBlockDeviceFsType_UNKNOWN:
return stream << "Unknown";
case QuotaBlockDeviceFsType_EXTX:
return stream << "Ext2/3/4";
case QuotaBlockDeviceFsType_XFS:
return stream << "XFS";
case QuotaBlockDeviceFsType_ZFS:
return stream << "ZFS";
}
return stream << "Invalid";
}
#ifndef COMMON_STORAGE_QUOTA_QUOTA_H_
#define COMMON_STORAGE_QUOTA_QUOTA_H_
#include <ostream>
enum QuotaBlockDeviceFsType
{
QuotaBlockDeviceFsType_UNKNOWN=0,
......@@ -9,6 +11,8 @@ enum QuotaBlockDeviceFsType
QuotaBlockDeviceFsType_ZFS=3
};
std::ostream& operator<<(std::ostream& stream, const QuotaBlockDeviceFsType type);
enum QuotaInodeSupport
{
QuotaInodeSupport_UNKNOWN=0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment