Home
last modified time | relevance | path

Searched full:filesystem (Results 1 – 25 of 1121) sorted by relevance

12345678910>>...45

/openbmc/estoraged/include/
H A DfilesystemInterface.hpp5 #include <filesystem>
12 * @brief Interface to the filesystem operations that eStoraged needs.
13 * @details This class is used to mock out the filesystem operations.
27 /** @brief Runs the mkfs command to create the filesystem.
39 * @param[in] source - device where the filesystem is located.
40 * @param[in] target - path to where the filesystem should be mounted.
43 * @param[in] data - options for specific filesystem type, can be NULL
56 * @param[in] target - path location where the filesystem is mounted.
63 /** @brief Wrapper around std::filesystem::create_directory.
70 virtual bool createDirectory(const std::filesystem::path& p) = 0;
[all …]
H A Destoraged.hpp17 #include <filesystem>
26 using estoraged::Filesystem;
66 std::make_unique<Filesystem>());
76 /** @brief Format the LUKS encrypted device and create empty filesystem.
79 * @param[in] type - filesystem type, e.g. ext4
90 /** @brief Unmount filesystem and lock the LUKS device.
94 /** @brief Unlock device and mount the filesystem.
111 /** @brief Get the mount point for the filesystem on the LUKS device. */
124 /** @brief Mount point for the filesystem. */
141 /** @brief Pointer to filesystem interface object.
[all …]
H A Dutil.hpp4 #include <filesystem>
15 std::filesystem::path deviceFile;
16 std::filesystem::path sysfsDir;
24 DeviceInfo(std::filesystem::path& deviceFile, in DeviceInfo()
25 std::filesystem::path& sysfsDir, std::string& luksName, in DeviceInfo()
52 std::string getPartNumber(const std::filesystem::path& sysfsPath);
58 std::string getSerialNumber(const std::filesystem::path& sysfsPath);
74 const std::filesystem::path& searchDir);
/openbmc/docs/architecture/code-update/
H A Dflash-layout.md1 # OpenBMC Flash Layout and Filesystem Documentation
5 how the Linux filesystem is setup, filesystem layouts, overlays, boot options,
30 Before starting execution, systemd requires the root filesystem and all binaries
34 ### Root filesystem
36 For storage of the root filesystem, a read-only volume was selected. This allows
37 the majority of the filesystem content, including all executables and static
38 data files, to be stored in a read-only filesystem image. Replacing read-only
39 filesystem images allows the space used by the content to be confirmed at build
43 An effort has been made to adhere to the Filesystem Hierarchy Standard [FHS][].
50 read-only filesystem content. This applies to systems with limited attached
[all …]
/openbmc/telemetry/src/
H A Dpersistent_json_storage.cpp11 bool isAnySymlink(const std::filesystem::path& path) in isAnySymlink()
16 if (std::filesystem::is_symlink(currentPath)) in isAnySymlink()
44 std::filesystem::create_directories(path.parent_path(), ec); in store()
82 auto removed = std::filesystem::remove(path, ec); in remove()
93 std::filesystem::remove(path.parent_path(), ec); in remove()
102 if (!std::filesystem::exists(path)) in load()
128 if (!std::filesystem::exists(directory)) in list()
134 std::filesystem::recursive_directory_iterator(directory)) in list()
138 auto item = std::filesystem::relative(p.path(), directory); in list()
146 std::filesystem::path PersistentJsonStorage::join( in join()
[all …]
H A Dpersistent_json_storage.hpp19 static std::filesystem::path join(const std::filesystem::path&,
20 const std::filesystem::path&);
21 static void limitPermissions(const std::filesystem::path& path);
22 static void assertThatPathIsNotSymlink(const std::filesystem::path& path);
/openbmc/estoraged/src/test/
H A Dutil_test.cpp7 #include <filesystem>
30 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
44 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
57 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
78 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
99 EXPECT_TRUE(std::filesystem::remove(testFileName)); in TEST()
115 std::filesystem::create_directories("abc/device"); in TEST()
123 std::filesystem::create_directories("def/device"); in TEST()
126 std::filesystem::create_directories("mmcblk0/device"); in TEST()
133 std::filesystem::path deviceFile, sysfsDir; in TEST()
[all …]
/openbmc/telemetry/tests/src/
H A Dtest_persistent_json_storage.cpp19 ASSERT_FALSE(std::filesystem::exists(directory)); in SetUpTestSuite()
24 if (std::filesystem::exists(directory)) in TearDown()
26 std::filesystem::remove_all(directory); in TearDown()
39 std::filesystem::temp_directory_path() / "telemetry-tests");
120 const std::filesystem::path& originalFile, in setupSymlinks()
124 std::filesystem::path(directory) / "report/symlink.json"; in setupSymlinks()
125 std::filesystem::create_directories( in setupSymlinks()
126 std::filesystem::path(directory) / "report"); in setupSymlinks()
127 std::filesystem::create_symlink(originalFile, linkPath); in setupSymlinks()
135 const std::filesystem::path& originalFile, in setupSymlinks()
[all …]
/openbmc/dbus-sensors/src/tests/
H A Dtest_Utils.cpp9 #include <filesystem>
21 std::filesystem::path hwmonDir;
22 std::filesystem::path peciDir;
33 hwmonDir = std::filesystem::path(testDir) / "hwmon"; in TestUtils()
34 std::filesystem::create_directory(hwmonDir); in TestUtils()
36 std::filesystem::create_directory(hwmonDir / "hwmon10"); in TestUtils()
48 std::filesystem::remove_all(testDir); in ~TestUtils()
58 peciDir = std::filesystem::path(testDir) / "peci"; in createPECIDir()
61 std::filesystem::create_directories(peci0); in createPECIDir()
69 std::filesystem::create_directories(devDir); in createPECIDir()
[all …]
/openbmc/openbmc/poky/documentation/dev-manual/
H A Dread-only-rootfs.rst3 Creating a Read-Only Root Filesystem
7 root filesystem's write permissions (i.e. you need a read-only root
8 filesystem). Or, perhaps you are running the device's operating system
14 Supporting a read-only root filesystem requires that the system and
15 applications do not try to write to the root filesystem. You must
18 filesystem.
20 Creating the Root Filesystem
23 To create the read-only root filesystem, simply add the
42 Post-Installation Scripts and Read-Only Root Filesystem
47 image can be run at the time when the root filesystem is created during
[all …]
/openbmc/phosphor-logging/test/openpower-pels/
H A Dpel_utils.hpp3 #include <filesystem>
22 std::filesystem::remove_all( in TearDownTestCase()
23 std::filesystem::path{pelIDFile}.parent_path()); in TearDownTestCase()
26 static std::filesystem::path pelIDFile;
41 std::filesystem::remove_all( in TearDown()
42 std::filesystem::path{pelIDFile}.parent_path()); in TearDown()
43 std::filesystem::remove_all(repoPath); in TearDown()
44 std::filesystem::remove_all(registryPath); in TearDown()
47 static std::filesystem::path pelIDFile;
48 static std::filesystem::path repoPath;
[all …]
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/health/
H A Dphosphor-health-monitor_%.bbappend5 SRC_URI += "file://clean-up-filesystem \
6 file://clean-up-filesystem.service \
8 STORAGE_CRIT_TGT = "clean-up-filesystem.service"
15 clean-up-filesystem.service \
19 …install -m 0644 ${UNPACKDIR}/clean-up-filesystem.service ${D}${systemd_system_unitdir}/clean-up-fi…
21 install -m 0755 ${UNPACKDIR}/clean-up-filesystem ${D}${libexecdir}/${PN}/
/openbmc/pldm/test/
H A Dtest_instance_id.hpp8 #include <filesystem>
19 std::filesystem::remove(dbPath); in ~TestInstanceIdDb()
23 static std::filesystem::path createDb() in createDb()
31 std::filesystem::path dbPath(dbName); in createDb()
32 std::filesystem::resize_file( in createDb()
38 TestInstanceIdDb(std::filesystem::path dbPath) : in TestInstanceIdDb()
42 std::filesystem::path dbPath;
/openbmc/openpower-pnor-code-mgmt/
H A Dimage_verify.cpp34 Signature::Signature(const std::filesystem::path& imageDirPath, in Signature()
36 const std::filesystem::path& signedConfPath) : in Signature()
40 std::filesystem::path file(imageDirPath / MANIFEST_FILE); in Signature()
53 if (!std::filesystem::is_directory(signedConfPath)) in getAvailableKeyTypesFromSystem()
68 std::filesystem::recursive_directory_iterator(signedConfPath)) in getAvailableKeyTypesFromSystem()
85 std::filesystem::path hashpath(signedConfPath / key / HASH_FILE_NAME); in getKeyHashFileNames()
86 std::filesystem::path keyPath(signedConfPath / key / PUBLICKEY_FILE_NAME); in getKeyHashFileNames()
104 std::filesystem::path publicKeyFile(imageDirPath / PUBLICKEY_FILE_NAME); in verify()
108 std::filesystem::path file(imageDirPath); in verify()
113 std::filesystem::path sigFile(imageDirPath); in verify()
[all …]
H A Dfunctions.hpp1 #include <filesystem>
28 std::function<void(const std::filesystem::path&, std::error_code&)>;
30 std::function<void(const std::filesystem::path&,
31 const std::filesystem::path&, const ErrorCallbackType&)>;
37 void writeLink(const std::filesystem::path&, const std::filesystem::path&,
39 void findLinks(const std::filesystem::path&, const std::vector<std::string>&,
48 std::filesystem::path, ErrorCallbackType, sdeventplus::Event&);
51 std::filesystem::path, sdeventplus::Event&);
H A Dimage_verify.hpp10 #include <filesystem>
23 using PublicKeyPath = std::filesystem::path;
24 using HashFilePath = std::filesystem::path;
129 explicit Signature(const std::filesystem::path& imageDirPath,
131 const std::filesystem::path& signedConfPath);
182 bool verifyFile(const std::filesystem::path& file,
183 const std::filesystem::path& signature,
184 const std::filesystem::path& publicKey,
192 inline EVP_PKEY_Ptr createPublicRSA(const std::filesystem::path& publicKey);
200 CustomMap mapFile(const std::filesystem::path& path, size_t size);
[all …]
/openbmc/u-boot/fs/fat/
H A DKconfig2 bool "Enable FAT filesystem support"
5 (FAT) filesystem. FAT filesystem is a legacy, lightweight filesystem.
10 bool "Enable FAT filesystem write support"
14 existing FAT filesystem partition.
/openbmc/u-boot/fs/ext4/
H A DKconfig2 bool "Enable ext4 filesystem support"
4 This provides support for reading images from the ext4 filesystem.
5 ext4 is a widely used general-purpose filesystem for Linux.
9 bool "Enable ext4 filesystem write support"
13 existing ext4 filesystem partition.
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Inventory/Item/
H A DVolume.interface.yaml9 Format a LUKS encrypted device and create a filesystem.
18 Type of filesystem, e.g. ext2, ext3, ext4, vfat.
38 Unmount the filesystem, lock the volume, and remove sensitive data
46 Activate the volume and mount the filesystem.
111 Type of filesystem used on the storage device.
115 Filesystem type ext2
118 Filesystem type ext3
121 Filesystem type ext4
124 Filesystem type vfat
/openbmc/openpower-pnor-code-mgmt/ubi/
H A Ditem_updater_ubi.cpp15 #include <filesystem>
67 for (const auto& iter : std::filesystem::directory_iterator(MEDIA_DIR)) in processPNORImage()
82 if (!std::filesystem::is_regular_file(pnorTOC)) in processPNORImage()
108 auto path = std::filesystem::path(SOFTWARE_OBJPATH) / id; in processPNORImage()
159 if (!std::filesystem::is_directory(roDir)) in processPNORImage()
179 auto file = std::filesystem::path(filePath) / squashFSImage; in validateSquashFSImage()
180 if (std::filesystem::is_regular_file(file)) in validateSquashFSImage()
218 if (std::filesystem::is_directory(patchDir)) in reset()
220 for (const auto& iter : std::filesystem::directory_iterator(patchDir)) in reset()
222 std::filesystem::remove_all(iter); in reset()
[all …]
H A Dserialize.cpp8 #include <filesystem>
22 if (!std::filesystem::is_directory(PERSIST_DIR)) in storeToFile()
24 std::filesystem::create_directories(PERSIST_DIR); in storeToFile()
33 if (std::filesystem::is_directory(PNOR_RW_PREFIX + versionId)) in storeToFile()
54 if (std::filesystem::exists(varPath)) in restoreFromFile()
65 std::filesystem::remove(varPath); in restoreFromFile()
70 if (std::filesystem::exists(rwPath)) in restoreFromFile()
81 std::filesystem::remove(rwPath); in restoreFromFile()
89 if (std::filesystem::exists(devicePath) && !devicePath.empty()) in restoreFromFile()
131 if (std::filesystem::exists(path)) in removeFile()
[all …]
/openbmc/phosphor-debug-collector/
H A Ddump_manager_bmc.cpp79 auto objPath = std::filesystem::path(baseEntryPath) / std::to_string(id); in createDump()
118 std::filesystem::path dumpPath(dumpDir); in captureDump()
171 void Manager::createEntry(const std::filesystem::path& file) in createEntry()
188 ->update(timestamp, std::filesystem::file_size(file), file); in createEntry()
193 auto objPath = std::filesystem::path(baseEntryPath) / std::to_string(id); in createEntry()
202 std::filesystem::file_size(file), file, in createEntry()
213 timestamp, "SIZE", std::filesystem::file_size(file), "FILENAME", in createEntry()
226 if (!std::filesystem::is_directory(i.first)) in watchCallback()
242 std::filesystem::is_directory(i.first)) in watchCallback()
255 void Manager::removeWatch(const std::filesystem::path& path) in removeWatch()
[all …]
/openbmc/u-boot/fs/yaffs2/
H A DKconfig2 bool "YAFFS2 filesystem support"
5 Filesystem 2 is a filesystem designed specifically for NAND flash.
7 writes are sequential regardless of filesystem activity.
/openbmc/openpower-pnor-code-mgmt/test/
H A Dtest_functions.cpp9 #include <filesystem>
261 std::filesystem::path workdir = mkdtemp(&tmpl[0]); in TEST()
264 std::filesystem::path linkPath = workdir / "link"; in TEST()
265 std::filesystem::path targetPath = workdir / "target"; in TEST()
269 std::filesystem::remove_all(workdir); in TEST()
276 std::filesystem::path workdir = mkdtemp(&tmpl[0]); in TEST()
284 std::filesystem::remove_all(workdir); in TEST()
291 std::filesystem::path workdir = mkdtemp(&tmpl[0]); in TEST()
293 std::filesystem::path callbackPath; in TEST()
299 std::filesystem::create_directory(targetPath); in TEST()
[all …]
/openbmc/bmcweb/features/ibm/
H A Dutils.hpp7 #include <filesystem>
23 bool dirCreated = std::filesystem::create_directories(path, ec); in createDirectory()
35 std::filesystem::perms permission = std::filesystem::perms::owner_all; in createDirectory()
36 std::filesystem::permissions(path, permission); in createDirectory()

12345678910>>...45