Lines Matching defs:srcdev

96 static struct	pkgdev srcdev, dstdev;
331 if (devtype(device1, &srcdev)) {
336 srcdev.rdonly++;
340 if (srcdev.bdevice) {
341 if (n = _getvol(srcdev.bdevice, NULL, NULL,
342 pkg_gt("Insert %v into %p."), srcdev.norewind)) {
350 if (ds_readbuf(srcdev.cdevice))
351 ids_name = srcdev.cdevice;
354 if (srcdev.cdevice && !srcdev.bdevice)
355 ids_name = srcdev.cdevice;
356 else if (srcdev.pathname) {
357 ids_name = srcdev.pathname;
366 if (n = pkgmount(&srcdev, NULL, 1, 0, 0)) {
370 if (srcdev.mount && *srcdev.mount)
371 pkgdir = strdup(srcdev.mount);
397 if ((srcdev.cdevice && dstdev.cdevice) &&
398 strcmp(srcdev.cdevice, dstdev.cdevice) == 0) {
433 if ((srcdev.dirname && dstdev.dirname) &&
434 strcmp(srcdev.dirname, dstdev.dirname) == 0) {
440 if ((srcdev.pathname && dstdev.pathname) &&
441 strcmp(srcdev.pathname, dstdev.pathname) == 0) {
452 if (srcdev.cdevice && !srcdev.bdevice &&
453 (n = _getvol(srcdev.cdevice, NULL, NULL, NULL,
454 srcdev.norewind))) {
462 if (srcdev.dirname = tmpnam(NULL))
463 tmpdir = srcdev.dirname = strdup(srcdev.dirname);
465 if ((srcdev.dirname == NULL) || mkdir(srcdev.dirname, 0755) ||
466 chdir(srcdev.dirname)) {
468 logerr(pkg_gt(MSG_NOTEMP), srcdev.dirname);
472 if (ds_init(ids_name, pkg, srcdev.norewind)) {
476 } else if (srcdev.mount) {
477 if (n = pkgmount(&srcdev, NULL, 1, 0, 0)) {
483 src = srcdev.dirname;
1209 src = srcdev.dirname;
1360 nparts = ds_findpkg(srcdev.cdevice, srcinst);
1366 if (ds_getpkg(srcdev.cdevice, part, dstdir)) {
1451 if (srcdev.mount) {
1597 if (srcdev.mount && (nparts > 1)) {
1600 if (pkgumount(&srcdev))
1605 n = pkgmount(&srcdev, NULL, part, nparts, 1);
1612 (void) pkgumount(&srcdev);
1617 (void) pkgumount(&srcdev);
1687 * device pointed to by the static 'srcdev' variable,
1724 if (srcdev.mount) {
1725 src = srcdev.dirname;
1842 if (srcdev.mount && !ids_name)
1843 (void) pkgumount(&srcdev);
1858 * in the static 'srcdev' variable.
1891 src = srcdev.dirname;