| /openbmc/u-boot/fs/ext4/ |
| H A D | ext4_write.c | 41 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_inodes_inc() argument 44 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_inc() 49 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_inc() 54 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_blocks_inc() argument 57 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_inc() 62 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_inc() 70 struct ext_filesystem *fs = get_fs(); in ext4fs_update() local 75 (struct ext2_sblock *)fs->sb, (uint32_t)SUPERBLOCK_SIZE); in ext4fs_update() 78 for (i = 0; i < fs->no_blkgrp; i++) { in ext4fs_update() 79 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_update() [all …]
|
| H A D | ext4_journal.c | 36 struct ext_filesystem *fs = get_fs(); in ext4fs_init_journal() local 59 if (fs->blksz == 4096) { in ext4fs_init_journal() 60 temp = zalloc(fs->blksz); in ext4fs_init_journal() 63 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal() 66 ext4fs_devread(0, 0, fs->blksz, temp); in ext4fs_init_journal() 67 memcpy(temp + SUPERBLOCK_SIZE, fs->sb, SUPERBLOCK_SIZE); in ext4fs_init_journal() 68 memcpy(journal_ptr[gindex]->buf, temp, fs->blksz); in ext4fs_init_journal() 72 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal() 75 memcpy(journal_ptr[gindex]->buf, fs->sb, SUPERBLOCK_SIZE); in ext4fs_init_journal() 93 struct ext_filesystem *fs = get_fs(); in ext4fs_dump_metadata() local [all …]
|
| H A D | ext4_common.c | 49 (const struct ext_filesystem *fs, uint32_t bg_idx) in ext4fs_get_group_descriptor() argument 51 return (struct ext2_block_group *)(fs->gdtable + (bg_idx * fs->gdsize)); in ext4fs_get_group_descriptor() 70 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_inodes_dec() argument 73 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_dec() 78 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_dec() 83 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_blocks_dec() argument 86 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_dec() 91 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_dec() 96 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_itable_unused_dec() argument 99 if (fs->gdsize == 64) in ext4fs_bg_itable_unused_dec() [all …]
|
| /openbmc/phosphor-power/test/ |
| H A D | temporary_subdirectory_tests.cpp | 26 namespace fs = std::filesystem; 32 fs::path path = subdirectory.getPath(); in TEST() 34 EXPECT_TRUE(fs::exists(path)); in TEST() 35 EXPECT_TRUE(fs::is_directory(path)); in TEST() 37 fs::path parentDir = path.parent_path(); in TEST() 49 EXPECT_TRUE(fs::exists(subdirectory1.getPath())); in TEST() 52 fs::path path = subdirectory1.getPath(); in TEST() 62 EXPECT_TRUE(fs::exists(subdirectory2.getPath())); in TEST() 72 EXPECT_TRUE(fs::exists(subdirectory1.getPath())); in TEST() 75 fs::path path1 = subdirectory1.getPath(); in TEST() [all …]
|
| H A D | temporary_file_tests.cpp | 26 namespace fs = std::filesystem; 35 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() 38 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable() 39 fs::rename(path, savePath); in makeFileUnRemovable() 42 fs::create_directory(path); in makeFileUnRemovable() 56 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() 60 fs::remove_all(path); in makeFileRemovable() 63 fs::path savePath{path.native() + ".save"}; in makeFileRemovable() 64 fs::rename(savePath, path); in makeFileRemovable() 71 fs::path path = file.getPath(); in TEST() [all …]
|
| /openbmc/qemu/hw/virtio/ |
| H A D | vhost-user-fs.c | 43 VHostUserFS *fs = VHOST_USER_FS(vdev); in vuf_get_config() local 46 memcpy((char *)fscfg.tag, fs->conf.tag, in vuf_get_config() 47 MIN(strlen(fs->conf.tag) + 1, sizeof(fscfg.tag))); in vuf_get_config() 49 virtio_stl_p(vdev, &fscfg.num_request_queues, fs->conf.num_request_queues); in vuf_get_config() 56 VHostUserFS *fs = VHOST_USER_FS(vdev); in vuf_start() local 67 ret = vhost_dev_enable_notifiers(&fs->vhost_dev, vdev); in vuf_start() 73 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, true); in vuf_start() 79 fs->vhost_dev.acked_features = vdev->guest_features; in vuf_start() 80 ret = vhost_dev_start(&fs->vhost_dev, vdev, true); in vuf_start() 91 for (i = 0; i < fs->vhost_dev.nvqs; i++) { in vuf_start() [all …]
|
| /openbmc/phosphor-logging/test/openpower-pels/ |
| H A D | temporary_file_test.cpp | 14 namespace fs = std::filesystem; 23 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() 27 fs::remove_all(path); in makeFileRemovable() 30 fs::path savePath{path.native() + ".save"}; in makeFileRemovable() 31 fs::rename(savePath, path); in makeFileRemovable() 41 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() 44 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable() 45 fs::rename(path, savePath); in makeFileUnRemovable() 48 fs::create_directory(path); in makeFileUnRemovable() 88 fs::path path = tmpFile->getPath(); in TEST_F() [all …]
|
| /openbmc/qemu/hw/audio/ |
| H A D | asc.c | 118 static uint8_t asc_fifo_get(ASCFIFOState *fs) in asc_fifo_get() argument 120 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); in asc_fifo_get() 121 bool fifo_half_irq_enabled = fs->extregs[ASC_EXTREGS_INTCTRL] & 1; in asc_fifo_get() 124 assert(fs->cnt); in asc_fifo_get() 126 val = fs->fifo[fs->rptr]; in asc_fifo_get() 127 trace_asc_fifo_get('A' + fs->index, fs->rptr, fs->cnt, val); in asc_fifo_get() 129 fs->rptr++; in asc_fifo_get() 130 fs->rptr &= 0x3ff; in asc_fifo_get() 131 fs->cnt--; in asc_fifo_get() 133 if (fs->cnt <= 0x1ff) { in asc_fifo_get() [all …]
|
| /openbmc/qemu/target/mips/tcg/ |
| H A D | lmmi_helper.c | 56 uint64_t helper_paddsb(uint64_t fs, uint64_t ft) in helper_paddsb() argument 61 vs.d = fs; in helper_paddsb() 70 uint64_t helper_paddusb(uint64_t fs, uint64_t ft) in helper_paddusb() argument 75 vs.d = fs; in helper_paddusb() 84 uint64_t helper_paddsh(uint64_t fs, uint64_t ft) in helper_paddsh() argument 89 vs.d = fs; in helper_paddsh() 98 uint64_t helper_paddush(uint64_t fs, uint64_t ft) in helper_paddush() argument 103 vs.d = fs; in helper_paddush() 112 uint64_t helper_paddb(uint64_t fs, uint64_t ft) in helper_paddb() argument 117 vs.d = fs; in helper_paddb() [all …]
|
| /openbmc/phosphor-bmc-code-mgmt/bmc/ |
| H A D | image_verify.cpp | 39 Signature::Signature(const fs::path& imageDirPath, in Signature() 40 const fs::path& signedConfPath) : in Signature() 43 fs::path file(imageDirPath / MANIFEST_FILE_NAME); in Signature() 61 if (!fs::is_directory(signedConfPath, ec)) in getAvailableKeyTypesFromSystem() 76 for (const auto& p : fs::recursive_directory_iterator(signedConfPath)) in getAvailableKeyTypesFromSystem() 93 fs::path hashpath(signedConfPath / key / HASH_FILE_NAME); in getKeyHashFileNames() 94 fs::path keyPath(signedConfPath / key / PUBLICKEY_FILE_NAME); in getKeyHashFileNames() 110 fs::path(imageDirPath) / "image-bmc.sig", in verifyFullImage() 111 fs::path(imageDirPath) / "image-hostfw.sig", in verifyFullImage() 112 fs::path(imageDirPath) / "image-kernel.sig", in verifyFullImage() [all …]
|
| H A D | serialize.cpp | 21 namespace fs = std::filesystem; 29 auto path = fs::path(PERSIST_DIR) / flashId; in storePriority() 30 if (!fs::is_directory(path, ec)) in storePriority() 32 if (fs::exists(path, ec)) in storePriority() 36 fs::remove_all(path, ec); in storePriority() 38 fs::create_directories(path, ec); in storePriority() 50 auto path = fs::path(PERSIST_DIR) / flashId; in storePurpose() 51 if (!fs::is_directory(path, ec)) in storePurpose() 53 if (fs::exists(path, ec)) in storePurpose() 57 fs::remove_all(path, ec); in storePurpose() [all …]
|
| H A D | image_verify.hpp | 23 namespace fs = std::filesystem; 26 using PublicKeyPath = fs::path; 27 using HashFilePath = fs::path; 134 Signature(const fs::path& imageDirPath, const fs::path& signedConfPath); 185 static bool verifyFile(const fs::path& file, const fs::path& signature, 186 const fs::path& publicKey, 194 static inline EVP_PKEY_Ptr createPublicRSA(const fs::path& publicKey); 202 static CustomMap mapFile(const fs::path& path, size_t size); 212 fs::path imageDirPath; 215 fs::path signedConfPath;
|
| /openbmc/openbmc/poky/meta/recipes-bsp/grub/files/ |
| H A D | CVE-2025-0677_CVE-2025-0684_CVE-2025-0685_CVE-2025-0686_CVE-2025-0689.patch | 4 Subject: [PATCH] fs: Disable many filesystems under lockdown 30 grub-core/fs/affs.c | 9 +++++++-- 31 grub-core/fs/cbfs.c | 9 +++++++-- 32 grub-core/fs/jfs.c | 9 +++++++-- 33 grub-core/fs/minix.c | 9 +++++++-- 34 grub-core/fs/nilfs2.c | 9 +++++++-- 35 grub-core/fs/ntfs.c | 9 +++++++-- 36 grub-core/fs/reiserfs.c | 9 +++++++-- 37 grub-core/fs/romfs.c | 9 +++++++-- 38 grub-core/fs/sfs.c | 9 +++++++-- [all …]
|
| H A D | CVE-2025-0678_CVE-2025-1125.patch | 4 Subject: [PATCH] fs: Prevent overflows when allocating memory for arrays 23 grub-core/fs/btrfs.c | 4 ++-- 24 grub-core/fs/hfspluscomp.c | 9 +++++++-- 25 grub-core/fs/squash4.c | 8 ++++---- 28 diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c 30 --- a/grub-core/fs/btrfs.c 31 +++ b/grub-core/fs/btrfs.c 43 diff --git a/grub-core/fs/hfspluscomp.c b/grub-core/fs/hfspluscomp.c 45 --- a/grub-core/fs/hfspluscomp.c 46 +++ b/grub-core/fs/hfspluscomp.c [all …]
|
| /openbmc/phosphor-hwmon/ |
| H A D | sysfs.cpp | 29 namespace fs = std::filesystem; 49 fs::path ioChannelsPath{iochanneldir}; in findPhandleMatch() 52 if (!fs::exists(ioChannelsPath)) in findPhandleMatch() 63 for (const auto& ofInst : fs::recursive_directory_iterator(phandledir)) in findPhandleMatch() 89 fs::path devPath{instancePath}; in findCalloutPath() 94 devPath = fs::canonical(devPath); in findCalloutPath() 102 fs::path p{devPath}; in findCalloutPath() 104 p = fs::canonical(p); in findCalloutPath() 114 fs::path ofDevPath{devPath}; in findCalloutPath() 119 ofDevPath = fs::canonical(ofDevPath); in findCalloutPath() [all …]
|
| /openbmc/u-boot/fs/ |
| H A D | Kconfig | 7 source "fs/btrfs/Kconfig" 9 source "fs/cbfs/Kconfig" 11 source "fs/ext4/Kconfig" 13 source "fs/reiserfs/Kconfig" 15 source "fs/fat/Kconfig" 17 source "fs/jffs2/Kconfig" 19 source "fs/ubifs/Kconfig" 21 source "fs/cramfs/Kconfig" 23 source "fs/yaffs2/Kconfig"
|
| /openbmc/phosphor-mboxd/vpnor/test/ |
| H A D | tmpd.hpp | 21 namespace fs = std::experimental::filesystem; 32 root = fs::path{tmpdir}; in VpnorRoot() 36 fs::create_directory(root / attr); in VpnorRoot() 39 fs::path tocFilePath = root / "ro" / PARTITION_TOC_FILE; in VpnorRoot() 49 fs::path partitionFilePath = root / "ro" / part.data.name; in VpnorRoot() 74 fs::remove_all(root); in ~VpnorRoot() 76 fs::path ro() in ro() 78 return fs::path{root} / "ro"; in ro() 80 fs::path rw() in rw() 82 return fs::path{root} / "rw"; in rw() [all …]
|
| /openbmc/hiomapd/vpnor/test/ |
| H A D | tmpd.hpp | 26 namespace fs = std::filesystem; 37 root = fs::path{tmpdir}; in VpnorRoot() 41 fs::create_directory(root / attr); in VpnorRoot() 44 fs::path tocFilePath = root / "ro" / PARTITION_TOC_FILE; in VpnorRoot() 54 fs::path partitionFilePath = root / "ro" / part.data.name; in VpnorRoot() 87 fs::remove_all(root); in ~VpnorRoot() 89 fs::path ro() in ro() 91 return fs::path{root} / "ro"; in ro() 93 fs::path rw() in rw() 95 return fs::path{root} / "rw"; in rw() [all …]
|
| /openbmc/phosphor-logging/ |
| H A D | elog_serialize.hpp | 15 namespace fs = std::filesystem; 23 fs::path serialize(const Entry& e, 24 const fs::path& dir = fs::path(paths::error())); 32 bool deserialize(const fs::path& path, Entry& e); 40 fs::path getEntrySerializePath(uint32_t id, 41 const fs::path& dir = fs::path(paths::error()));
|
| /openbmc/openbmc/poky/meta/recipes-core/initrdscripts/initramfs-framework/ |
| H A D | e2fs | 13 for fs in $filesystems; do 14 load_kernel_module $fs 17 for fs in $filesystems; do 18 eval "fs_options=\$bootparam_${fs}" 23 info "Mounting $dev as $fs on $path as $fs..." 25 mount -t $fs $dev $path
|
| /openbmc/phosphor-power/tools/power-utils/test/ |
| H A D | test_updater.cpp | 24 namespace fs = std::filesystem; 44 fs::remove_all(tmpDir); in ~TestUpdater() 49 auto tmpPath = fs::temp_directory_path(); in setupDeviceSysfs() 56 realDevicePath = fs::path(tmpDir) / "devices/3-0068"; in setupDeviceSysfs() 57 devPath = fs::path(tmpDir) / "i2c"; in setupDeviceSysfs() 58 fs::create_directories(realDevicePath); in setupDeviceSysfs() 59 fs::create_directories(realDevicePath / "driver"); in setupDeviceSysfs() 60 fs::create_directories(devPath); in setupDeviceSysfs() 62 fs::create_directory_symlink(realDevicePath, devPath); in setupDeviceSysfs() 72 fs::path realDevicePath; [all …]
|
| /openbmc/phosphor-user-manager/test/ |
| H A D | ldap_config_test.cpp | 23 namespace fs = std::filesystem; 38 dir = fs::path(mkdtemp(tmpldap)); in SetUp() 39 fs::path tlsCacertFilePath{TLS_CACERT_PATH}; in SetUp() 41 fs::path tlsCertFilePath{TLS_CERT_FILE}; in SetUp() 44 fs::path confFilePath{LDAP_CONFIG_FILE}; in SetUp() 46 std::fstream fs; in SetUp() local 47 fs.open(dir / defaultNslcdFile, std::fstream::out); in SetUp() 48 fs.close(); in SetUp() 49 fs.open(dir / nsSwitchFile, std::fstream::out); in SetUp() 50 fs.close(); in SetUp() [all …]
|
| /openbmc/qemu/include/hw/s390x/ |
| H A D | s390_flic.h | 51 int (*register_io_adapter)(S390FLICState *fs, uint32_t id, uint8_t isc, 53 int (*io_adapter_map)(S390FLICState *fs, uint32_t id, uint64_t map_addr, 55 int (*add_adapter_routes)(S390FLICState *fs, AdapterRoutes *routes); 56 void (*release_adapter_routes)(S390FLICState *fs, AdapterRoutes *routes); 57 int (*clear_io_irq)(S390FLICState *fs, uint16_t subchannel_id, 59 int (*modify_ais_mode)(S390FLICState *fs, uint8_t isc, uint16_t mode); 60 int (*inject_airq)(S390FLICState *fs, uint8_t type, uint8_t isc, 62 void (*inject_service)(S390FLICState *fs, uint32_t parm); 63 void (*inject_io)(S390FLICState *fs, uint16_t subchannel_id, 66 void (*inject_crw_mchk)(S390FLICState *fs); [all …]
|
| /openbmc/google-ipmi-sys/test/ |
| H A D | bm_mode_transition_unittest.cpp | 42 namespace fs = std::filesystem; 66 EXPECT_CALL(*fsMockPtr, exists(fs::path(bmDriveCleaningDoneAckFlagPath), _)) in TEST() 76 EXPECT_CALL(*fsMockPtr, exists(fs::path(bmDriveCleaningDoneAckFlagPath), _)) in TEST() 78 EXPECT_CALL(*fsMockPtr, exists(fs::path(bmDriveCleaningDoneFlagPath), _)) in TEST() 80 EXPECT_CALL(*fsMockPtr, rename(fs::path(bmDriveCleaningDoneFlagPath), in TEST() 81 fs::path(bmDriveCleaningDoneAckFlagPath), _)) in TEST() 91 EXPECT_CALL(*fsMockPtr, exists(fs::path(bmDriveCleaningDoneAckFlagPath), _)) in TEST() 93 EXPECT_CALL(*fsMockPtr, exists(fs::path(bmDriveCleaningDoneFlagPath), _)) in TEST() 95 EXPECT_CALL(*fsMockPtr, exists(fs::path(BM_SIGNAL_PATH), _)) in TEST() 97 EXPECT_CALL(*fsMockPtr, exists(fs::path(bmDriveCleaningFlagPath), _)) in TEST() [all …]
|
| /openbmc/phosphor-logging/extensions/openpower-pels/ |
| H A D | pel_paths.cpp | 15 namespace fs = std::filesystem; 19 fs::path getPELIDFile() in getPELIDFile() 21 fs::path logIDPath{phosphor::logging::paths::extension()}; in getPELIDFile() 22 logIDPath /= fs::path{"pels"} / fs::path{"pelID"}; in getPELIDFile() 26 fs::path getPELRepoPath() in getPELRepoPath() 33 fs::path getPELReadOnlyDataPath() in getPELReadOnlyDataPath()
|