Searched refs:diskfd (Results 1 - 5 of 5) sorted by relevance

/netbsd-6-1-5-RELEASE/sbin/dump/
H A Drcache.c194 if (lseek(diskfd, ((off_t) blkno << dev_bshift), SEEK_SET) == -1) {
198 if ((cnt = read(diskfd, buf, size)) == size)
238 if (lseek(diskfd, ((off_t)blkno << dev_bshift),
244 if ((cnt = read(diskfd, buf, (int)dev_bsize)) == dev_bsize)
276 if (flock(diskfd, LOCK_EX)) {
395 if (lseek(diskfd, ((off_t) blockBlkNo << dev_bshift),
401 rsize = read(diskfd,
446 if (flock(diskfd, LOCK_UN))
H A Dmain.c446 if ((diskfd = open(disk, O_RDONLY)) < 0) {
453 diskfd = snap_open(mntinfo->f_mntonname, snap_backup,
455 if (diskfd < 0) {
462 if ((diskfd = open(disk, O_RDONLY)) < 0) {
H A Ddump.h110 int diskfd; /* disk file descriptor */ variable
H A Dtape.c825 (void) close(diskfd);
826 if ((diskfd = open(disk_dev, O_RDONLY)) < 0)
/netbsd-6-1-5-RELEASE/usr.sbin/sunlabel/
H A Dsunlabel.c167 static int diskfd; /* fd on the disk */ variable
235 if ((diskfd = open(s, O_RDWR)) == -1 ||
236 (diskfd = open(s, O_RDWR | O_NONBLOCK)) == -1) {
237 if ((diskfd = open(s, O_RDONLY)) == -1) {
584 if (lseek(diskfd, (off_t)0, SEEK_SET) == (off_t)-1)
587 if ((rv = read(diskfd, &labelbuf[0], 512)) == -1)
613 if (lseek(diskfd, (off_t)0, SEEK_SET) < (off_t)-1)
618 if ((rv = write(diskfd, &labelbuf[0], 512)) == -1) {
1191 if (ioctl(diskfd, DIOCGDINFO, &u.l) == -1) {
1219 if (ioctl(diskfd, DIOCSDINF
[all...]

Completed in 69 milliseconds