42 MediaNFS::MediaNFS(
const Url & url_r,
43 const Pathname & attach_point_hint_r )
48 MIL <<
"MediaNFS::MediaNFS(" << url_r <<
", " << attach_point_hint_r <<
")" << endl;
77 DBG <<
"Using a shared media "
95 if( mountpoint.empty())
112 vector<string> optionList;
113 str::split( options, std::back_inserter(optionList),
"," );
114 vector<string>::const_iterator it;
115 bool contains_lock =
false, contains_soft =
false,
116 contains_timeo =
false, contains_hard =
false;
118 for( it = optionList.begin(); it != optionList.end(); ++it ) {
119 if ( *it ==
"lock" || *it ==
"nolock" ) contains_lock =
true;
120 else if ( *it ==
"soft") contains_soft =
true;
121 else if ( *it ==
"hard") contains_hard =
true;
122 else if ( it->find(
"timeo") != string::npos ) contains_timeo =
true;
125 if ( !(contains_lock && contains_soft) ) {
129 if ( !contains_lock ) {
130 optionList.push_back(
"nolock" );
137 if ( !(contains_soft || contains_hard) ) {
138 optionList.push_back(
"soft" );
139 if ( !contains_timeo ) {
142 optionList.push_back( s.str() );
148 mount.
mount(path,mountpoint,filesystem,options);
156 while( !(mountsucceeded=
isAttached()) && --limit)
173 "Unable to verify that the media was mounted",
239 const Pathname & dirname,
bool dots )
const
253 const Pathname & dirname,
bool dots )
const
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
unsigned split(const C_Str &line_r, _OutputIterator result_r, const C_Str &sepchars_r=" \t")
Split line_r into words.
std::string getPathName(EEncoding eflag=zypp::url::E_DECODED) const
Returns the path name from the URL.
std::string getHost(EEncoding eflag=zypp::url::E_DECODED) const
Returns the hostname or IP from the URL authority.
std::string join(_Iterator begin, _Iterator end, const C_Str &sep_r=" ")
Join strings using separator sep_r (defaults to BLANK).
std::list< DirEntry > DirContent
Returned by readdir.
std::string getQueryParam(const std::string ¶m, EEncoding eflag=zypp::url::E_DECODED) const
Return the value for the specified query parameter.
std::string asString(const Patch::SeverityFlag &obj)
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
std::string getScheme() const
Returns the scheme name of the URL.