Ignore:
Timestamp:
Apr 26, 2013, 8:08:45 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Add cifs support for #208 with first modifications to add cifs support as an external FS
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/mondorestore/mondorestore.c

    r3060 r3098  
    31343134                            bkpinfo->netfs_mount);
    31353135                    }
    3136                 } else {
    3137                     if (bkpinfo->netfs_user) {
    3138                         sprintf(tmp, "mount %s@%s -o nolock,ro /tmp/isodir",
    3139                             bkpinfo->netfs_user,bkpinfo->netfs_mount);
     3136                } else  {
     3137                    if (strstr(bkpinfo->netfs_proto, "smbfs")) {
     3138                        if (bkpinfo->netfs_user) {
     3139                            sprintf(tmp, "mount -t cifs %s /tmp/isodir -o user=%s,nolock,ro ",
     3140                                bkpinfo->netfs_mount,bkpinfo->netfs_user);
     3141                        } else {
     3142                            sprintf(tmp, "mount -t cifs %s /tmp/isodir -o nolock,ro ",
     3143                                bkpinfo->netfs_mount);
     3144                        }
    31403145                    } else {
    3141                         sprintf(tmp, "mount %s -o nolock,ro /tmp/isodir",
    3142                             bkpinfo->netfs_mount);
     3146                        if (bkpinfo->netfs_user) {
     3147                            sprintf(tmp, "mount %s@%s -o nolock,ro /tmp/isodir",
     3148                                bkpinfo->netfs_user,bkpinfo->netfs_mount);
     3149                        } else {
     3150                            sprintf(tmp, "mount %s -o nolock,ro /tmp/isodir",
     3151                                bkpinfo->netfs_mount);
     3152                        }
    31433153                    }
    31443154                }
Note: See TracChangeset for help on using the changeset viewer.