Home | History | Annotate | Download | only in linux

Lines Matching defs:dev_fd

106 int do_mount(int dev_fd, int *cookie, const char *mntpath, const char *fstype)
112 if (fstat(dev_fd, &st) < 0)
129 if (ioctl(loop_fd, LOOP_SET_FD, (void *)dev_fd)) {
147 (unsigned long)mypid, dev_fd);
161 (unsigned long)mypid, dev_fd);
262 int dev_fd, fd;
302 dev_fd = open(opt.device, O_RDWR);
303 if (dev_fd < 0 || fstat(dev_fd, &st) < 0) {
316 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
317 fsync(dev_fd);
380 if (do_mount(dev_fd, &mnt_cookie, mntpath, "vfat") &&
381 do_mount(dev_fd, &mnt_cookie, mntpath, "msdos")) {
386 if (do_mount(dev_fd, &mnt_cookie, mntpath, "ntfs-3g")) {
411 } else if (opt.update_only && !syslinux_already_installed(dev_fd)) {
510 xpwrite(dev_fd,
521 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
527 xpwrite(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
529 close(dev_fd);