1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-520 amazon ebs changes

This commit is contained in:
david hill
2018-10-26 18:57:09 -05:00
parent a82b431ae6
commit 648a1e7436

View File

@ -6505,7 +6505,10 @@ void Oam::addUMdisk(const int moduleID, std::string& volumeName, std::string& de
int user;
user = getuid();
if ( user == 0 )
cmd = "mkfs.ext2 -F " + device + " > /dev/null 2>&1";
else
cmd = "sudo mkfs.ext2 -F " + device + " > /dev/null 2>&1";
system(cmd.c_str());
@ -6752,7 +6755,10 @@ void Oam::addDbroot(const int dbrootNumber, DBRootConfigList& dbrootlist, string
int user;
user = getuid();
if (user == 0 )
cmd = "mkfs.ext2 -F " + amazonDeviceName + " > " + tmpdir + "/format.log 2>&1";
else
cmd = "sudo mkfs.ext2 -F " + amazonDeviceName + " > " + tmpdir + "/format.log 2>&1";
writeLog("addDbroot format cmd: " + cmd, LOG_TYPE_DEBUG );