Commit 59c483e0 authored by Oliver Steffen's avatar Oliver Steffen Committed by Bernd Lietzow

storage: add filesystem type to warning message in QuotaTk::checkQuota()

(cherry picked from commit a25488fe01d45b4407121d9aae12b91546682615)
parent b13bbc0d
#include <common/toolkit/UnitTk.h>
#include <common/storage/quota/Quota.h>
#include <program/Program.h>
#include "QuotaTk.h"
#include <boost/lexical_cast.hpp>
#include <dlfcn.h>
// xfs/xfs.h includes linux/fs.h, which (sometimes) defines MS_RDONLY.
// sys/mount.h is the canonical source of MS_RDONLY, but declares it as an enum - which is then
......@@ -197,7 +199,8 @@ bool QuotaTk::checkQuota(QuotaBlockDeviceMap* blockDevices, QuotaData* outData,
LogContext(logContext).logErr("Error: Quota request - quotactl failed. Type: " +
QuotaData::QuotaDataTypeToString(outData->getType() ) + "; ID: " +
StringTk::uintToStr(outData->getID()) + "; SysErr: " +
System::getErrString(errorCode) );
System::getErrString(errorCode) +"; fstype = " +
boost::lexical_cast<std::string>(iter->second.getFsType()));
return false;
}
......
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