mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 13:58:00 -05:00
VFAT partition should be mounted in RO mode by default because writing to FAT filesystem is unsafe. Writing is allowed only in the LFS filesystem. If upgrade is needed FAT partition can be temporary switched to RW mode using mount() syscall with REMOUNT flag but it should be switched to RO mode again after upgrade.
15 lines
384 B
C++
15 lines
384 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "CountryCodesDB.hpp"
|
|
|
|
CountryCodesDB::CountryCodesDB(const char *name) : Database(name, true), countryCodes(this)
|
|
{
|
|
if (countryCodes.create() == false)
|
|
return;
|
|
isInitialized_ = true;
|
|
}
|
|
|
|
CountryCodesDB::~CountryCodesDB()
|
|
{}
|