Lines Matching refs:dstdev

96 static struct	pkgdev srcdev, dstdev;  variable
391 if (devtype(device2, &dstdev)) { in _pkgtrans()
397 if ((srcdev.cdevice && dstdev.cdevice) && in _pkgtrans()
398 strcmp(srcdev.cdevice, dstdev.cdevice) == 0) { in _pkgtrans()
405 if (dstdev.cdevice && !dstdev.bdevice || dstdev.pathname) in _pkgtrans()
409 if (!((ods_name = dstdev.cdevice) != NULL || in _pkgtrans()
410 (ods_name = dstdev.pathname) != NULL)) { in _pkgtrans()
433 if ((srcdev.dirname && dstdev.dirname) && in _pkgtrans()
434 strcmp(srcdev.dirname, dstdev.dirname) == 0) { in _pkgtrans()
440 if ((srcdev.pathname && dstdev.pathname) && in _pkgtrans()
441 strcmp(srcdev.pathname, dstdev.pathname) == 0) { in _pkgtrans()
484 dst = dstdev.dirname; in _pkgtrans()
520 if (!dstdev.pathname && in _pkgtrans()
522 dstdev.norewind))) { in _pkgtrans()
605 if (!(options & PT_ODTSTREAM) && dstdev.mount) { in _pkgtrans()
606 if (n = pkgmount(&dstdev, NULL, 0, 0, 1)) { in _pkgtrans()
816 if (dstdev.capacity && totsize > dstdev.capacity) { in genheader()
818 logerr(pkg_gt(MSG_NOSPACE), totsize, dstdev.capacity); in genheader()
844 if (dstdev.capacity && maxpsize > dstdev.capacity) { in genheader()
847 dstdev.capacity); in genheader()
871 if (dstdev.capacity && dstdev.capacity < totsize) { in genheader()
877 while (totsize <= dstdev.capacity && in genheader()
941 if (dstdev.pathname) in wdsheader()
1210 dst = dstdev.dirname; in pkgxfer()
1371 if (dstdev.mount) { in pkgxfer()
1373 if (pkgumount(&dstdev)) in pkgxfer()
1376 if (n = pkgmount(&dstdev, NULL, part+1, in pkgxfer()
1484 if ((ds_fd = open(dstdev.cdevice, O_WRONLY)) < 0) { in pkgxfer()
1486 logerr(pkg_gt(MSG_OPEN), dstdev.cdevice, in pkgxfer()
1490 if (ds_ginit(dstdev.cdevice) < 0) { in pkgxfer()
1492 logerr(pkg_gt(MSG_OPEN), dstdev.cdevice, in pkgxfer()
1623 if (!(options & PT_ODTSTREAM) && dstdev.mount) { in pkgxfer()
1625 if (pkgumount(&dstdev)) in pkgxfer()
1630 n = pkgmount(&dstdev, NULL, part, nparts, 1); in pkgxfer()
1657 if ((ds_fd = open(dstdev.cdevice, 1)) < 0) { in pkgxfer()
1660 dstdev.cdevice, errno); in pkgxfer()
1663 if (ds_ginit(dstdev.cdevice) < 0) { in pkgxfer()
1666 dstdev.cdevice, errno); in pkgxfer()
1844 if (dstdev.mount && !ods_name) in cleanup()
1845 (void) pkgumount(&dstdev); in cleanup()