Changeset 1858 for branches/2.2.5


Ignore:
Timestamp:
Jan 11, 2008, 4:22:14 PM (12 years ago)
Author:
bruno
Message:

Try to really fix the NFS mount problem already handled in rev [1849]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/libmondo-devices.c

    r1849 r1858  
    21322132        bkpinfo->please_dont_eject = TRUE;
    21332133
    2134         /* Initiate bkpinfo paths from running environment if not already done */
     2134        /* Initiate bkpinfo nfs_mount path from running environment if not already done */
    21352135        if (!bkpinfo->nfs_mount[0]) {
    21362136            strcpy(bkpinfo->nfs_mount,
    21372137                   call_program_and_get_last_line_of_output
    21382138                   ("mount | grep \":\" | cut -d' ' -f1 | head -n1"));
    2139         }
    2140         if (!bkpinfo->isodir[0]) {
    2141             strcpy(bkpinfo->isodir,
    2142                    call_program_and_get_last_line_of_output
    2143                    ("mount | grep \":\" | cut -d' ' -f3 | head -n1"));
    21442139        }
    21452140#ifdef __FreeBSD__
     
    22012196            }
    22022197        }
    2203         if (!is_this_device_mounted(bkpinfo->nfs_mount)) {
     2198        /* Initiate bkpinfo isodir path from running environment if mount already done */
     2199        if (is_this_device_mounted(bkpinfo->nfs_mount)) {
     2200            strcpy(bkpinfo->isodir,
     2201                   call_program_and_get_last_line_of_output
     2202                   ("mount | grep \":\" | cut -d' ' -f3 | head -n1"));
     2203        } else {
    22042204            sprintf(bkpinfo->isodir, "%s/nfsdir", bkpinfo->tmpdir);
    22052205            sprintf(command, "mkdir -p %s", bkpinfo->isodir);
Note: See TracChangeset for help on using the changeset viewer.