Home
last modified time | relevance | path

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

/bootable/recovery/minzip/
DSysUtil.c90 char block_dev[PATH_MAX+1]; in sysMapBlockFile() local
97 if (fgets(block_dev, sizeof(block_dev), mapf) == NULL) { in sysMapBlockFile()
101 for (i = 0; i < sizeof(block_dev); ++i) { in sysMapBlockFile()
102 if (block_dev[i] == '\n') { in sysMapBlockFile()
103 block_dev[i] = 0; in sysMapBlockFile()
130 int fd = open(block_dev, O_RDONLY); in sysMapBlockFile()
132 LOGW("failed to open block device %s: %s\n", block_dev, strerror(errno)); in sysMapBlockFile()