Searched refs:nr_sec (Results 1 - 8 of 8) sorted by relevance
/system/vold/ |
H A D | VoldUtil.c | 20 void get_blkdev_size(int fd, unsigned long* nr_sec) { argument 21 if ((ioctl(fd, BLKGETSIZE, nr_sec)) == -1) { 22 *nr_sec = 0;
|
H A D | VoldUtil.h | 25 void get_blkdev_size(int fd, unsigned long* nr_sec);
|
H A D | Loop.h | 30 static int lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec);
|
H A D | Loop.cpp | 301 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec) { argument 311 get_blkdev_size(fd, nr_sec); 312 if (*nr_sec == 0) { 323 if (lseek(fd, ((*nr_sec - 1) * 512), SEEK_SET) < 0) {
|
H A D | VolumeManager.cpp | 1128 unsigned long nr_sec = 0; local 1131 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { 1193 unsigned long nr_sec = 0; local 1196 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { 1668 unsigned long nr_sec = 0; local 1671 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { 1684 nr_sec--; // We don't want the devmapping to extend onto our superblock 1686 if (setupDevMapperDevice(dmDevice, sizeof(dmDevice), loopDevice, asecFileName, key, idHash , nr_sec, &cleanupDm, mDebug)) { 1763 unsigned long nr_sec = 0; local 1771 get_blkdev_size(fd, &nr_sec); [all...] |
H A D | cryptfs.c | 552 unsigned long nr_sec = 0; local 553 get_blkdev_size(fd, &nr_sec); 554 if (nr_sec != 0) { 560 cached_off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET; 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...] |
H A D | Utils.cpp | 520 unsigned long nr_sec = 0; local 529 if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) { 535 range[1] = (unsigned long long) nr_sec * 512;
|
/system/core/fs_mgr/ |
H A D | fs_mgr_format.c | 36 unsigned int nr_sec; local 44 if ((ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) { 52 info.len = ((off64_t)nr_sec * 512);
|
Completed in 88 milliseconds