| /system/host/merkleroot/ |
| A D | merkleroot.cpp | 90 size_t len = MerkleTree::GetTreeLength(info.st_size); in handle_entry() 98 if (info.st_size != 0) { in handle_entry() 99 data = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd.get(), 0); in handle_entry() 101 if (info.st_size != 0 && data == MAP_FAILED) { in handle_entry() 106 MerkleTree::Create(data, info.st_size, tree.get(), len, &digest); in handle_entry() 107 if (info.st_size != 0 && munmap(data, info.st_size) != 0) { in handle_entry()
|
| /system/utest/fs/ |
| A D | test-fcntl.cpp | 33 ASSERT_EQ(sb.st_size, sizeof(buf) * 2); in TestFcntlAppend() 54 ASSERT_EQ(sb.st_size, sizeof(buf) * 2); in TestFcntlAppend() 75 ASSERT_EQ(sb.st_size, sizeof(buf)); in TestFcntlAccessBits() 93 ASSERT_EQ(sb.st_size, sizeof(buf) * 2); in TestFcntlAccessBits()
|
| A D | test-truncate.cpp | 29 ASSERT_EQ(st.st_size, len); in check_file_contains() 42 ASSERT_EQ(st.st_size, 0); in check_file_empty() 126 ssize_t old_len = st.st_size; in checked_truncate() 133 ASSERT_EQ(st.st_size, new_len); in checked_truncate() 140 ASSERT_EQ(st.st_size, new_len); in checked_truncate() 146 ASSERT_EQ(st.st_size, new_len); in checked_truncate() 161 ssize_t old_len = st.st_size; in fchecked_truncate() 166 ASSERT_EQ(st.st_size, new_len); in fchecked_truncate()
|
| A D | test-lseek.cpp | 106 ASSERT_EQ(st.st_size, len); in TestLseekZeroFill() 114 ASSERT_EQ(st.st_size, len); in TestLseekZeroFill() 125 ASSERT_EQ(st.st_size, len); in TestLseekZeroFill() 131 ASSERT_EQ(st.st_size, static_cast<off_t>(len + zeros + 1)); in TestLseekZeroFill() 153 ASSERT_EQ(st.st_size, static_cast<off_t>(len + zeros + 1)); in TestLseekZeroFill()
|
| A D | test-append.cpp | 51 ASSERT_EQ(st.st_size, (off_t)strlen(world)); in test_append() 75 ASSERT_EQ(st.st_size, (off_t)(strlen(hello) + strlen(world))); in test_append() 100 off_t size = st.st_size; in TestAppendOnClone() 111 ASSERT_EQ(st.st_size, size + static_cast<off_t>(sizeof(buf))); in TestAppendOnClone() 117 ASSERT_EQ(st.st_size, size); in TestAppendOnClone() 198 ASSERT_EQ(st.st_size, kWriteLength * kNumWrites * kNumThreads); in TestAppendAtomic()
|
| A D | test-maxfile.cpp | 99 ASSERT_EQ(buf.st_size, static_cast<ssize_t>(sz), "Unexpected max file size"); in test_maxfile() 109 ASSERT_EQ(buf.st_size, static_cast<ssize_t>(sz), "Unexpected max file size"); in test_maxfile() 192 ASSERT_EQ(buf.st_size, static_cast<ssize_t>(sz_a), "Unexpected max file size"); in TestZippedMaxfiles() 194 ASSERT_EQ(buf.st_size, static_cast<ssize_t>(sz_b), "Unexpected max file size"); in TestZippedMaxfiles()
|
| A D | test-minfs.cpp | 313 ssize_t truncate_size = fbl::round_up(static_cast<uint64_t>(s.st_size / 2), in TestFullOperations() 378 ASSERT_EQ(s.st_size % minfs::kMinfsBlockSize, 0); in TestFullOperations() 379 truncate_size = s.st_size - minfs::kMinfsBlockSize; in TestFullOperations() 422 ASSERT_EQ(s.st_size % minfs::kMinfsBlockSize, 0); in TestFullOperations() 423 truncate_size = s.st_size - minfs::kMinfsBlockSize; in TestFullOperations()
|
| A D | test-access.cpp | 169 ASSERT_EQ(st.st_size, static_cast<ssize_t>(datalen)); in TestAccessOpath() 177 ASSERT_EQ(st.st_size, static_cast<ssize_t>(datalen)); in TestAccessOpath()
|
| A D | test-rw.cpp | 106 ASSERT_EQ(st.st_size, static_cast<ssize_t>(opt.write_start + sizeof(expected))); in TestOffsetOperations()
|
| /system/utest/fs-host/ |
| A D | test-truncate.cpp | 17 ASSERT_EQ(st.st_size, len); in check_file_contains() 30 ASSERT_EQ(st.st_size, 0); in check_file_empty() 84 ssize_t old_len = st.st_size; in checked_truncate() 91 ASSERT_EQ(st.st_size, new_len); in checked_truncate() 98 ASSERT_EQ(st.st_size, new_len); in checked_truncate()
|
| A D | util.cpp | 65 if (stats.st_size == 0) { in run_fsck() 70 size_t size = stats.st_size /= minfs::kMinfsBlockSize; in run_fsck()
|
| A D | test-maxfile.cpp | 66 ASSERT_EQ(buf.st_size, sz, "Unexpected max file size"); in test_maxfile()
|
| /system/utest/fs-test-utils/ |
| A D | perftest_test.cpp | 86 ASSERT_GT(st.st_size, 0); in InvalidOptionsReturnFalseAndPrintsUsage() 108 ASSERT_GT(st.st_size, 0); in HelpPrintsUsageMessage() 157 ASSERT_EQ(st.st_size, 0); in OptionsAreOverwritten() 336 EXPECT_GT(st.st_size, 0); in RunTestCasesWritesResultsAndStatistics() 340 EXPECT_GT(st.st_size, 0); in RunTestCasesWritesResultsAndStatistics()
|
| /system/ulib/ftl/inc/ |
| A D | posix.h | 146 off_t st_size; // the file size in bytes member 160 off_t st_size; // file size in bytes member
|
| /system/uapp/usb-fwloader/ |
| A D | usb-fwloader.cpp | 161 zx_status_t status = zx::vmo::create(s.st_size, 0, &vmo); in read_firmware() 169 while ((total_read < s.st_size) && in read_firmware() 181 if (total_read != s.st_size) { in read_firmware() 182 fprintf(stderr, "Read %jd bytes, want %jd\n", (intmax_t)total_read, (intmax_t)s.st_size); in read_firmware()
|
| /system/ulib/fs-host/ |
| A D | common.cpp | 324 if (offset_ + length_ > stats.st_size) { in ProcessArgs() 329 length_ = stats.st_size - offset_; in ProcessArgs() 530 (stats.st_size != required_size || requested_size)) { in ResizeFile() 556 length_ = stats.st_size - offset_; in ResizeFile()
|
| /system/ulib/blobfs/include/blobfs/ |
| A D | host.h | 87 data_ = mmap(nullptr, s.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in Map() 91 length_ = s.st_size; in Map()
|
| /system/ulib/fvm-host/format/ |
| A D | minfs.cpp | 37 } else if (s.st_size == 0) { in MinfsFormat() 42 off_t size = s.st_size / minfs::kMinfsBlockSize; in MinfsFormat()
|
| /system/host/netprotocol/ |
| A D | netcp.c | 61 file_info->size = st.st_size; in file_open_read() 62 return st.st_size; in file_open_read()
|
| /system/ulib/minfs/ |
| A D | host.cpp | 37 s->st_size = a.size; in do_stat() 120 off_t size = s.st_size / minfs::kMinfsBlockSize; in emu_mkfs() 144 off_t size = s.st_size / minfs::kMinfsBlockSize; in emu_mount()
|
| /system/utest/zxcrypt/ |
| A D | zxcrypt.cpp | 56 ASSERT_GT(parent_buf.st_size, zxcrypt_buf.st_size); in TestDdkGetSize() 57 EXPECT_EQ((parent_buf.st_size - zxcrypt_buf.st_size) / device.block_size(), in TestDdkGetSize()
|
| /system/ulib/fvm-host/container/ |
| A D | sparse.cpp | 96 if (s.st_size > 0) { in SparseContainer() 97 disk_size_ = s.st_size; in SparseContainer() 333 disk_size_ = s.st_size; in Commit()
|
| A D | fvm.cpp | 65 uint64_t size = s.st_size; in FvmContainer() 323 disk_size_ = s.st_size; in Commit()
|
| /system/uapp/xdc-test/ |
| A D | xdc-test.cpp | 70 file_header_t file_header = { .file_size = s.st_size }; in write_file_header()
|
| /system/core/netsvc/ |
| A D | netfile.c | 75 *file_size = st.st_size; in netfile_open()
|