Searched refs:sbfd (Results 1 – 1 of 1) sorted by relevance
99 int sbfd = open(name, O_RDWR | O_CLOEXEC); in writeSuperBlock() local100 if (sbfd < 0) { in writeSuperBlock()105 if (lseek(sbfd, (numImgSectors * 512), SEEK_SET) < 0) { in writeSuperBlock()107 close(sbfd); in writeSuperBlock()111 if (write(sbfd, sb, sizeof(struct asec_superblock)) != sizeof(struct asec_superblock)) { in writeSuperBlock()113 close(sbfd); in writeSuperBlock()116 close(sbfd); in writeSuperBlock()