Home
last modified time | relevance | path

Searched refs:nr_sec (Results 1 – 5 of 5) sorted by relevance

/system/vold/
DVoldUtil.c22 unsigned int nr_sec; in get_blkdev_size() local
24 if ( (ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) { in get_blkdev_size()
25 nr_sec = 0; in get_blkdev_size()
28 return nr_sec; in get_blkdev_size()
DLoop.h30 static int lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned int *nr_sec);
DLoop.cpp252 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned int *nr_sec) { in lookupInfo() argument
262 if (ioctl(fd, BLKGETSIZE, nr_sec)) { in lookupInfo()
273 if (lseek(fd, ((*nr_sec - 1) * 512), SEEK_SET) < 0) { in lookupInfo()
Dcryptfs.c192 unsigned int nr_sec; in get_crypt_ftr_info() local
204 if ((nr_sec = get_blkdev_size(fd))) { in get_crypt_ftr_info()
210 cached_off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET; in get_crypt_ftr_info()
242 unsigned int nr_sec, cnt; in put_crypt_ftr_and_key() local
375 unsigned int nr_sec, cnt; in get_crypt_ftr_and_key() local
1318 int nr_sec, fd; in cryptfs_setup_volume() local
1326 nr_sec = get_blkdev_size(fd); in cryptfs_setup_volume()
1328 if (nr_sec == 0) { in cryptfs_setup_volume()
1333 sd_crypt_ftr.fs_size = nr_sec; in cryptfs_setup_volume()
1591 unsigned long nr_sec; in cryptfs_enable() local
[all …]
DVolumeManager.cpp524 unsigned int nr_sec = 0; in finalizeAsec() local
527 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in finalizeAsec()
587 unsigned int nr_sec = 0; in fixupAsecPermissions() local
590 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in fixupAsecPermissions()
1065 unsigned int nr_sec = 0; in mountAsec() local
1068 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in mountAsec()
1081 nr_sec--; // We don't want the devmapping to extend onto our superblock in mountAsec()
1085 if (Devmapper::create(idHash, loopDevice, key, nr_sec, in mountAsec()
1206 unsigned int nr_sec = 0; in mountObb() local
1214 if (ioctl(fd, BLKGETSIZE, &nr_sec)) { in mountObb()
[all …]