Lines Matching refs:dstdev

95 static struct	pkgdev srcdev, dstdev;
390 if (devtype(device2, &dstdev)) {
396 if ((srcdev.cdevice && dstdev.cdevice) &&
397 strcmp(srcdev.cdevice, dstdev.cdevice) == 0) {
404 if (dstdev.cdevice && !dstdev.bdevice || dstdev.pathname)
408 if (!((ods_name = dstdev.cdevice) != NULL ||
409 (ods_name = dstdev.pathname) != NULL)) {
432 if ((srcdev.dirname && dstdev.dirname) &&
433 strcmp(srcdev.dirname, dstdev.dirname) == 0) {
439 if ((srcdev.pathname && dstdev.pathname) &&
440 strcmp(srcdev.pathname, dstdev.pathname) == 0) {
483 dst = dstdev.dirname;
519 if (!dstdev.pathname &&
521 dstdev.norewind))) {
604 if (!(options & PT_ODTSTREAM) && dstdev.mount) {
605 if (n = pkgmount(&dstdev, NULL, 0, 0, 1)) {
814 if (dstdev.capacity && totsize > dstdev.capacity) {
816 logerr(pkg_gt(MSG_NOSPACE), totsize, dstdev.capacity);
842 if (dstdev.capacity && maxpsize > dstdev.capacity) {
868 if (dstdev.capacity && dstdev.capacity < totsize) {
883 while (totsize <= dstdev.capacity &&
947 if (dstdev.pathname)
1222 dst = dstdev.dirname;
1377 if (dstdev.mount) {
1379 if (pkgumount(&dstdev))
1382 if (n = pkgmount(&dstdev, NULL, part+1,
1488 if ((ds_fd = open(dstdev.cdevice, O_WRONLY)) < 0) {
1490 logerr(pkg_gt(MSG_OPEN), dstdev.cdevice,
1494 if (ds_ginit(dstdev.cdevice) < 0) {
1496 logerr(pkg_gt(MSG_OPEN), dstdev.cdevice,
1620 if (!(options & PT_ODTSTREAM) && dstdev.mount) {
1622 if (pkgumount(&dstdev))
1627 n = pkgmount(&dstdev, NULL, part, nparts, 1);
1654 if ((ds_fd = open(dstdev.cdevice, 1)) < 0) {
1657 dstdev.cdevice, errno);
1660 if (ds_ginit(dstdev.cdevice) < 0) {
1663 dstdev.cdevice, errno);
1844 if (dstdev.mount && !ods_name)
1845 pkgumount(&dstdev);