Searched refs:nr_sec (Results 1 – 8 of 8) sorted by relevance
/system/vold/ |
D | VoldUtil.c | 20 void get_blkdev_size(int fd, unsigned long* nr_sec) { in get_blkdev_size() argument 21 if ((ioctl(fd, BLKGETSIZE, nr_sec)) == -1) { in get_blkdev_size() 22 *nr_sec = 0; in get_blkdev_size()
|
D | Loop.cpp | 301 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec) { in lookupInfo() argument 311 get_blkdev_size(fd, nr_sec); in lookupInfo() 312 if (*nr_sec == 0) { in lookupInfo() 323 if (lseek(fd, ((*nr_sec - 1) * 512), SEEK_SET) < 0) { in lookupInfo()
|
D | VoldUtil.h | 25 void get_blkdev_size(int fd, unsigned long* nr_sec);
|
D | Loop.h | 30 … static int lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec);
|
D | VolumeManager.cpp | 1128 unsigned long nr_sec = 0; in finalizeAsec() local 1131 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in finalizeAsec() 1193 unsigned long nr_sec = 0; in fixupAsecPermissions() local 1196 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in fixupAsecPermissions() 1668 unsigned long nr_sec = 0; in mountAsec() local 1671 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in mountAsec() 1684 nr_sec--; // We don't want the devmapping to extend onto our superblock in mountAsec() 1686 …vice(dmDevice, sizeof(dmDevice), loopDevice, asecFileName, key, idHash , nr_sec, &cleanupDm, mDebu… in mountAsec() 1763 unsigned long nr_sec = 0; in mountObb() local 1771 get_blkdev_size(fd, &nr_sec); in mountObb() [all …]
|
D | cryptfs.c | 552 unsigned long nr_sec = 0; in get_crypt_ftr_info() local 553 get_blkdev_size(fd, &nr_sec); in get_crypt_ftr_info() 554 if (nr_sec != 0) { in get_crypt_ftr_info() 560 cached_off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET; in get_crypt_ftr_info() 1982 unsigned long nr_sec = 0; local 1983 get_blkdev_size(fd, &nr_sec); 1986 if (nr_sec == 0) { 1993 ext_crypt_ftr.fs_size = nr_sec; 3007 unsigned long nr_sec; local 3008 get_blkdev_size(fd, &nr_sec); [all …]
|
D | Utils.cpp | 520 unsigned long nr_sec = 0; in WipeBlockDevice() local 529 if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) { in WipeBlockDevice() 535 range[1] = (unsigned long long) nr_sec * 512; in WipeBlockDevice()
|
/system/core/fs_mgr/ |
D | fs_mgr_format.c | 36 unsigned int nr_sec; in format_ext4() local 44 if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) { in format_ext4() 52 info.len = ((off64_t)nr_sec * 512); in format_ext4()
|