Lines Matching defs:dev_fd
117 int dev_fd;
154 #define dev_fd (G.dev_fd )
432 if (BLOCK_SIZE * nr != lseek(dev_fd, BLOCK_SIZE * nr, SEEK_SET)) {
437 } else if (BLOCK_SIZE != read(dev_fd, addr, BLOCK_SIZE)) {
458 if (BLOCK_SIZE * nr != lseek(dev_fd, BLOCK_SIZE * nr, SEEK_SET))
460 if (BLOCK_SIZE != write(dev_fd, addr, BLOCK_SIZE)) {
578 if (BLOCK_SIZE != lseek(dev_fd, BLOCK_SIZE, SEEK_SET))
580 if (BLOCK_SIZE != write(dev_fd, super_block_buffer, BLOCK_SIZE))
588 if (IMAPS * BLOCK_SIZE != write(dev_fd, inode_map, IMAPS * BLOCK_SIZE))
590 if (ZMAPS * BLOCK_SIZE != write(dev_fd, zone_map, ZMAPS * BLOCK_SIZE))
592 if (INODE_BUFFER_SIZE != write(dev_fd, inode_buffer, INODE_BUFFER_SIZE))
621 if (BLOCK_SIZE != lseek(dev_fd, BLOCK_SIZE, SEEK_SET))
623 if (BLOCK_SIZE != read(dev_fd, super_block_buffer, BLOCK_SIZE))
659 if (IMAPS * BLOCK_SIZE != read(dev_fd, inode_map, IMAPS * BLOCK_SIZE))
661 if (ZMAPS * BLOCK_SIZE != read(dev_fd, zone_map, ZMAPS * BLOCK_SIZE))
663 if (INODE_BUFFER_SIZE != read(dev_fd, inode_buffer, INODE_BUFFER_SIZE))
1121 if (BLOCK_SIZE * i != lseek(dev_fd, BLOCK_SIZE * i, SEEK_SET))
1123 return (BLOCK_SIZE != read(dev_fd, buffer, BLOCK_SIZE));
1314 dev_fd = xopen(device_name, repair ? O_RDWR : O_RDONLY);