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