Home
last modified time | relevance | path

Searched refs:filesystem (Results 1 – 25 of 1147) sorted by relevance

12345678910>>...46

/openbmc/estoraged/src/test/
H A Dutil_test.cpp30 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()
133 std::filesystem::path deviceFile, sysfsDir; in TEST()
151 EXPECT_EQ(3U, std::filesystem::remove_all("abc")); in TEST()
152 EXPECT_EQ(2U, std::filesystem::remove_all("def")); in TEST()
[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()
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()
146 std::filesystem::path
158 std::filesystem::permissions( in limitPermissions()
160 std::filesystem::perm_options::replace); in limitPermissions()
165 return std::filesystem::exists(join(directory, subPath)); in exist()
[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/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()
123 auto linkPath = std::filesystem::path(directory) / in setupSymlinks()
125 std::filesystem::create_directories(std::filesystem::path(directory) / in setupSymlinks()
139 std::filesystem::create_directories(std::filesystem::path(directory) / in setupSymlinks()
164 ASSERT_FALSE(std::filesystem::exists(dummyReportPath)); in SetUpTestSuite()
170 if (std::filesystem::exists(dummyReportPath)) in TearDown()
172 std::filesystem::remove(dummyReportPath); in TearDown()
176 static const std::filesystem::path dummyReportPath;
[all …]
/openbmc/openpower-pnor-code-mgmt/
H A Dimage_verify.cpp34 Signature::Signature(const std::filesystem::path& imageDirPath, in Signature()
40 std::filesystem::path file(imageDirPath / MANIFEST_FILE); in Signature()
53 if (!std::filesystem::is_directory(signedConfPath)) in getAvailableKeyTypesFromSystem()
108 std::filesystem::path file(imageDirPath); in verify()
113 std::filesystem::path sigFile(imageDirPath); in verify()
152 std::filesystem::path pkeyFileSig(pkeyFile); in systemLevelVerify()
157 std::filesystem::path manifestFileSig(manifestFile); in systemLevelVerify()
204 if (!(std::filesystem::exists(file) && std::filesystem::exists(sigFile))) in verifyFile()
246 auto size = std::filesystem::file_size(file); in verifyFile()
258 size = std::filesystem::file_size(sigFile); in verifyFile()
[all …]
H A Dimage_verify.hpp23 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);
203 std::filesystem::path imageDirPath;
[all …]
H A Dfunctions.hpp28 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&);
/openbmc/phosphor-logging/test/openpower-pels/
H A Dpel_utils.hpp22 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;
49 static std::filesystem::path registryPath;
[all …]
H A Dpel_paths.cpp27 std::filesystem::path getPELIDFile() in getPELIDFile()
34 std::filesystem::path dir = mkdtemp(templ); in getPELIDFile()
40 std::filesystem::path getPELRepoPath() in getPELRepoPath()
47 std::filesystem::path dir = mkdtemp(templ); in getPELRepoPath()
53 std::filesystem::path getPELReadOnlyDataPath() in getPELReadOnlyDataPath()
/openbmc/estoraged/include/
H A DfilesystemInterface.hpp70 virtual bool createDirectory(const std::filesystem::path& p) = 0;
79 virtual bool removeDirectory(const std::filesystem::path& p) = 0;
87 virtual bool directoryExists(const std::filesystem::path& p) = 0;
123 bool createDirectory(const std::filesystem::path& p) override in createDirectory()
125 return std::filesystem::create_directory(p); in createDirectory()
128 bool removeDirectory(const std::filesystem::path& p) override in removeDirectory()
130 return std::filesystem::remove(p); in removeDirectory()
133 bool directoryExists(const std::filesystem::path& p) override in directoryExists()
135 return std::filesystem::is_directory(std::filesystem::status(p)); in directoryExists()
H A Dutil.hpp15 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/openpower-pnor-code-mgmt/ubi/
H A Ditem_updater_ubi.cpp180 if (std::filesystem::is_regular_file(file)) in validateSquashFSImage()
218 if (std::filesystem::is_directory(patchDir)) in reset()
222 std::filesystem::remove_all(iter); in reset()
230 if (std::filesystem::is_directory(rwDir)) in reset()
241 if (std::filesystem::is_directory(PNOR_PRSV)) in reset()
250 std::filesystem::remove_all(iter); in reset()
264 std::filesystem::path activeRO = in isVersionFunctional()
267 if (!std::filesystem::is_directory(activeRO)) in isVersionFunctional()
402 if (!std::filesystem::exists(symlinkPath)) in determineId()
429 if (std::filesystem::is_regular_file(path)) in reset()
[all …]
H A Dserialize.cpp22 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()
133 std::filesystem::remove(path); in removeFile()
/openbmc/phosphor-debug-collector/
H A Ddump_manager_bmc.cpp117 std::filesystem::path dumpPath(dumpDir); in captureDump()
170 void Manager::createEntry(const std::filesystem::path& file) in createEntry()
201 std::filesystem::file_size(file), file, in createEntry()
225 if (!std::filesystem::is_directory(i.first)) in watchCallback()
241 std::filesystem::is_directory(i.first)) in watchCallback()
254 void Manager::removeWatch(const std::filesystem::path& path) in removeWatch()
262 std::filesystem::path dir(dumpDir); in restore()
263 if (!std::filesystem::exists(dir) || std::filesystem::is_empty(dir)) in restore()
275 if ((std::filesystem::is_directory(p.path())) && in restore()
310 if (!std::filesystem::is_directory(p)) in getDirectorySize()
[all …]
H A Ddump_entry.cpp70 std::filesystem::path dir = file.parent_path() / PRESERVE; in serialize()
73 std::filesystem::path serializePath = dir / SERIAL_FILE; in serialize()
76 if (!std::filesystem::exists(dir)) in serialize()
78 std::filesystem::create_directories(dir); in serialize()
105 std::filesystem::remove_all(dir, ec); in serialize()
109 void Entry::deserialize(const std::filesystem::path& dumpPath) in deserialize()
114 std::filesystem::path dir = dumpPath / PRESERVE; in deserialize()
115 if (!std::filesystem::exists(dir)) in deserialize()
124 std::filesystem::path serializePath = dir / SERIAL_FILE; in deserialize()
157 std::filesystem::remove_all(dir, ec); in deserialize()
/openbmc/linux/Documentation/filesystems/
H A Dfuse.rst10 Userspace filesystem:
106 Control filesystem
125 filesystem is hung or deadlocked.
134 Interrupting filesystem operations
174 Aborting a filesystem connection
195 - Kill the filesystem daemon and all users of the filesystem. Works
201 - Abort filesystem through the FUSE control filesystem. Most
215 help of the mounted filesystem
238 filesystem, the filesystem daemon serving requests can record the
279 the filesystem or not.
[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 \
10 STORAGE_CRIT_TGT = "clean-up-filesystem.service"
17 clean-up-filesystem.service \
23 …install -m 0644 ${WORKDIR}/clean-up-filesystem.service ${D}${systemd_system_unitdir}/clean-up-file…
25 install -m 0755 ${WORKDIR}/clean-up-filesystem ${D}${libexecdir}/${PN}/
/openbmc/qemu/tests/qemu-iotests/tests/
H A Dvvfat29 filesystem = os.path.join(iotests.test_dir, "filesystem") variable
40 if os.path.exists(filesystem):
41 if os.path.isdir(filesystem):
42 shutil.rmtree(filesystem)
46 os.mkdir(filesystem)
50 with open(os.path.join(filesystem, f"file{i}.txt"),
55 with open(os.path.join(filesystem, "large1.txt"), "wb") as f:
60 with open(os.path.join(filesystem, "large2.txt"), "wb") as f:
74 "dir": filesystem,
104 shutil.rmtree(filesystem)
[all …]
/openbmc/bmcweb/include/
H A Dwebassets.hpp23 inline std::string getStaticEtag(const std::filesystem::path& webpath) in getStaticEtag()
56 std::filesystem::path absolutePath;
150 inline void addFile(App& app, const std::filesystem::directory_entry& dir) in addFile()
154 std::filesystem::path relativePath( in addFile()
158 std::filesystem::path webpath = relativePath; in addFile()
230 std::vector<std::filesystem::directory_entry> paths( in requestRoutes()
231 std::filesystem::begin(dirIter), std::filesystem::end(dirIter)); in requestRoutes()
234 for (const std::filesystem::directory_entry& dir : paths) in requestRoutes()
236 if (std::filesystem::is_directory(dir)) in requestRoutes()
240 std::filesystem::is_symlink(dir)) in requestRoutes()
[all …]
/openbmc/pldm/test/
H A Dtest_instance_id.hpp19 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/test/
H A Dtest_functions.cpp269 std::filesystem::remove_all(workdir); in TEST()
284 std::filesystem::remove_all(workdir); in TEST()
293 std::filesystem::path callbackPath; in TEST()
305 std::filesystem::remove_all(workdir); in TEST()
315 std::filesystem::path callbackPath; in TEST()
324 std::filesystem::remove_all(workdir); in TEST()
345 std::filesystem::remove_all(workdir); in TEST()
371 std::filesystem::remove_all(workdir); in TEST()
396 std::filesystem::remove_all(workdir); in TEST()
408 std::filesystem::path callbackPath; in TEST()
[all …]
/openbmc/bmcweb/include/ibm/
H A Dmanagement_console_rest.hpp65 std::filesystem::path loc( in handleFilePut()
83 if (!std::filesystem::is_directory(it, ec)) in handleFilePut()
193 std::filesystem::perms permission = std::filesystem::perms::owner_write | in handleFilePut()
195 std::filesystem::permissions(loc, permission); in handleFilePut()
225 std::filesystem::path loc( in handleConfigFileList()
227 if (std::filesystem::exists(loc) && std::filesystem::is_directory(loc)) in handleConfigFileList()
254 std::filesystem::path loc( in deleteConfigFiles()
256 if (std::filesystem::exists(loc) && std::filesystem::is_directory(loc)) in deleteConfigFiles()
258 std::filesystem::remove_all(loc, ec); in deleteConfigFiles()
275 std::filesystem::path loc( in handleFileGet()
[all …]
/openbmc/linux/fs/ext4/
H A DKconfig6 tristate "The Extended 3 (ext3) filesystem"
10 filesystem is now handled by the ext4 driver.
19 filesystem is now handled by the ext4 driver.
27 filesystem is now handled by the ext4 driver.
30 tristate "The Extended 4 (ext4) filesystem"
39 This is the next generation of the ext3 filesystem.
41 Unlike the change from ext2 filesystem to ext3 filesystem,
50 The ext4 filesystem supports mounting an ext3 filesystem; while there
54 filesystem as an ext4 filesystem initially. Without explicit enabling
91 labels in the ext4 filesystem.
[all …]
/openbmc/estoraged/src/
H A Dutil.cpp97 std::string getPartNumber(const std::filesystem::path& sysfsPath) in getPartNumber()
103 std::filesystem::path namePath(sysfsPath); in getPartNumber()
122 std::string getSerialNumber(const std::filesystem::path& sysfsPath) in getSerialNumber()
128 std::filesystem::path serialPath(sysfsPath); in getSerialNumber()
148 const std::filesystem::path& searchDir) in findDevice()
228 for (const auto& dirEntry : std::filesystem::directory_iterator{searchDir}) in findDevice()
234 std::filesystem::path curPath(dirEntry.path()); in findDevice()
236 if (!std::filesystem::exists(curPath)) in findDevice()
250 std::filesystem::path deviceName(dirEntry.path().filename()); in findDevice()
252 std::filesystem::path sysfsDir = dirEntry.path(); in findDevice()
[all …]
/openbmc/entity-manager/src/
H A Doverlay.cpp80 std::filesystem::create_directory(linkDir, ec); in linkMux()
82 std::filesystem::path devDir(i2CDevsDir); in linkMux()
94 std::filesystem::path channelPath = in linkMux()
102 std::filesystem::path bus = std::filesystem::read_symlink(channelPath); in linkMux()
104 std::filesystem::path fp("/dev" / bus.filename()); in linkMux()
107 std::filesystem::create_symlink(fp, link, ec); in linkMux()
119 std::filesystem::path deviceDestructor(busPath); in deleteDevice()
136 std::filesystem::path deviceConstructor(busPath); in createDevice()
154 std::filesystem::path dirPath = busPath; in deviceIsCreated()
163 return std::filesystem::exists(dirPath, ec); in deviceIsCreated()
[all …]

12345678910>>...46