OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:disk_size
(Results
1 - 2
of
2
) sorted by null
/sdk/emulator/mksdcard/src/source/
mksdcard.c
80
get_sectors_per_cluster( Wide
disk_size
)
82
Wide disk_MB =
disk_size
/(1024*1024);
100
get_sectors_per_fat( Wide
disk_size
, int sectors_per_cluster )
105
disk_size
-= RESERVED_SECTORS * BYTES_PER_SECTOR; /* don't count 32 reserved sectors */
106
disk_size
/= BYTES_PER_SECTOR; /* disk size in sectors */
109
return (int)( (
disk_size
+ (divider-1)) / divider );
113
boot_sector_init( Bytes boot, Bytes info, Wide
disk_size
, const char* label )
115
int sectors_per_cluster = get_sectors_per_cluster(
disk_size
);
116
int sectors_per_fat = get_sectors_per_fat(
disk_size
, sectors_per_cluster);
117
int sectors_per_disk = (int)(
disk_size
/ BYTES_PER_SECTOR)
223
Wide
disk_size
;
local
[
all
...]
/system/core/libdiskconfig/
diskconfig.c
276
uint64_t
disk_size
;
local
314
if (ioctl(fd, BLKGETSIZE64, &
disk_size
) < 0) {
319
dinfo->num_lba = (uint32_t)(
disk_size
/ (uint64_t)dinfo->sect_size);
321
disk_size
= (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size;
329
disk_size
= (uint64_t)dinfo->num_lba * (uint64_t)dinfo->sect_size;
332
disk_size
= (uint64_t)stat.st_size;
341
dinfo->device,
disk_size
, dinfo->num_lba, dinfo->sect_size);
374
if (S_ISBLK(stat.st_mode) && total_size >
disk_size
) {
376
"size (%"PRIu64").", total_size,
disk_size
);
Completed in 2230 milliseconds