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

/system/vold/
H A DVoldUtil.c22 unsigned int nr_sec; local
24 if ( (ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) {
25 nr_sec = 0;
28 return nr_sec;
H A DLoop.h30 static int lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned int *nr_sec);
H A DLoop.cpp252 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned int *nr_sec) { argument
262 if (ioctl(fd, BLKGETSIZE, nr_sec)) {
273 if (lseek(fd, ((*nr_sec - 1) * 512), SEEK_SET) < 0) {
H A Dcryptfs.c192 unsigned int nr_sec; local
204 if ((nr_sec = get_blkdev_size(fd))) {
210 cached_off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET;
242 unsigned int nr_sec, cnt; local
375 unsigned int nr_sec, cnt; local
1318 int nr_sec, fd; local
1326 nr_sec = get_blkdev_size(fd);
1328 if (nr_sec == 0) {
1333 sd_crypt_ftr.fs_size = nr_sec;
1591 unsigned long nr_sec; local
[all...]
H A DVolumeManager.cpp500 unsigned int nr_sec = 0; local
503 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) {
557 unsigned int nr_sec = 0; local
560 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) {
967 unsigned int nr_sec = 0; local
970 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) {
983 nr_sec--; // We don't want the devmapping to extend onto our superblock
987 if (Devmapper::create(idHash, loopDevice, key, nr_sec,
1108 unsigned int nr_sec = 0; local
1116 if (ioctl(fd, BLKGETSIZE, &nr_sec)) {
[all...]

Completed in 64 milliseconds