Displaying 1 result from an estimated 1 matches for "mt_com".
Did you mean:
ip_com
2003 Aug 20
1
(Fwd) Lost data on FreeBSD tape (fwd)
...}
dev = (DEVICE *)malloc(sizeof(DEVICE));
memset(dev, 0, sizeof(DEVICE));
dev->fd = fd;
dev->dev_name = strdup(argv[0]);
dev->buf_len = BLOCK_SIZE;
dev->buf = (char *)malloc(BLOCK_SIZE);
do_tape_cmds();
return 0;
}
int rewind_dev(DEVICE *dev)
{
struct mtop mt_com;
if (dev->fd < 0) {
dev->dev_errno = EBADF;
printf("Bad call to rewind_dev. Device %s not open\n",
dev->dev_name);
return 0;
}
dev->state &= ~(ST_APPEND|ST_READ|ST_EOT|ST_EOF|ST_WEOT); /* remove EOF/EOT flags */
dev->block_num = d...