Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 38) sorted by relevance

12

/system/host/merkleroot/
A Dmerkleroot.cpp90 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 Dtest-fcntl.cpp33 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 Dtest-truncate.cpp29 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 Dtest-lseek.cpp106 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 Dtest-append.cpp51 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 Dtest-maxfile.cpp99 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 Dtest-minfs.cpp313 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 Dtest-access.cpp169 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 Dtest-rw.cpp106 ASSERT_EQ(st.st_size, static_cast<ssize_t>(opt.write_start + sizeof(expected))); in TestOffsetOperations()
/system/utest/fs-host/
A Dtest-truncate.cpp17 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 Dutil.cpp65 if (stats.st_size == 0) { in run_fsck()
70 size_t size = stats.st_size /= minfs::kMinfsBlockSize; in run_fsck()
A Dtest-maxfile.cpp66 ASSERT_EQ(buf.st_size, sz, "Unexpected max file size"); in test_maxfile()
/system/utest/fs-test-utils/
A Dperftest_test.cpp86 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 Dposix.h146 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 Dusb-fwloader.cpp161 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 Dcommon.cpp324 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 Dhost.h87 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 Dminfs.cpp37 } else if (s.st_size == 0) { in MinfsFormat()
42 off_t size = s.st_size / minfs::kMinfsBlockSize; in MinfsFormat()
/system/host/netprotocol/
A Dnetcp.c61 file_info->size = st.st_size; in file_open_read()
62 return st.st_size; in file_open_read()
/system/ulib/minfs/
A Dhost.cpp37 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 Dzxcrypt.cpp56 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 Dsparse.cpp96 if (s.st_size > 0) { in SparseContainer()
97 disk_size_ = s.st_size; in SparseContainer()
333 disk_size_ = s.st_size; in Commit()
A Dfvm.cpp65 uint64_t size = s.st_size; in FvmContainer()
323 disk_size_ = s.st_size; in Commit()
/system/uapp/xdc-test/
A Dxdc-test.cpp70 file_header_t file_header = { .file_size = s.st_size }; in write_file_header()
/system/core/netsvc/
A Dnetfile.c75 *file_size = st.st_size; in netfile_open()

Completed in 31 milliseconds

12