}
}
- mount.mount (it->name, mountpoint.c_str(), *fsit, options);
+ mount.mount(it->name, mountpoint, *fsit, options);
setMediaSource(media);
{
ZYPP_CAUGHT(excpt_r);
}
- ZYPP_THROW(MediaMountException(it->name, mountpoint,
- "Unable to verify that the media was mounted"
+ ZYPP_THROW(MediaMountException(
+ "Unable to verify that the media was mounted",
+ it->name, mountpoint
));
}
}
options="ro";
}
- mount.mount(_device,mountpoint.c_str(),_filesystem,options);
+ mount.mount(_device,mountpoint,_filesystem,options);
setMediaSource(media);
{
ZYPP_CAUGHT(excpt_r);
}
- ZYPP_THROW(MediaMountException(_device, mountpoint,
- "Unable to verify that the media was mounted"
+ ZYPP_THROW(MediaMountException(
+ "Unable to verify that the media was mounted",
+ _device, mountpoint
));
}
}
options = str::join( optionList, "," );
}
- mount.mount(path,mountpoint.c_str(),filesystem,options);
+ mount.mount(path,mountpoint,filesystem,options);
setMediaSource(media);
{
ZYPP_CAUGHT(excpt_r);
}
- ZYPP_THROW(MediaMountException(path, mountpoint,
- "Unable to verify that the media was mounted"
+ ZYPP_THROW(MediaMountException(
+ "Unable to verify that the media was mounted",
+ path, mountpoint
));
}
}
bool
MediaNFS::isAttached() const
{
- return checkAttached(false);
+ return checkAttached(false, true);
}
///////////////////////////////////////////////////////////////////
//
//////////////////////////////////////////////////////
- mount.mount( path, mountpoint.c_str(), _vfstype,
+ mount.mount( path, mountpoint, _vfstype,
options.asString(), environment );
setMediaSource(media);
{
ZYPP_CAUGHT(excpt_r);
}
- ZYPP_THROW(MediaMountException(path, mountpoint,
- "Unable to verify that the media was mounted"
+ ZYPP_THROW(MediaMountException(
+ "Unable to verify that the media was mounted",
+ path, mountpoint
));
}
}
bool
MediaSMB::isAttached() const
{
- return checkAttached(false);
+ return checkAttached(false, true);
}
///////////////////////////////////////////////////////////////////