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 "
108 str::split( options, std::back_inserter(optionList),
"," );
110 bool contains_lock =
false, contains_soft =
false,
111 contains_timeo =
false, contains_hard =
false;
113 for( it = optionList.begin(); it != optionList.end(); ++it ) {
114 if ( *it ==
"lock" || *it ==
"nolock" ) contains_lock =
true;
115 else if ( *it ==
"soft") contains_soft =
true;
116 else if ( *it ==
"hard") contains_hard =
true;
117 else if ( it->find(
"timeo") != string::npos ) contains_timeo =
true;
120 if ( !(contains_lock && contains_soft) ) {
124 if ( !contains_lock ) {
125 optionList.push_back(
"nolock" );
132 if ( !(contains_soft || contains_hard) ) {
133 optionList.push_back(
"soft" );
134 if ( !contains_timeo ) {
137 optionList.push_back( s.str() );
144 mount.
mount(path,mountpoint,filesystem,options);
152 while( !(mountsucceeded=
isAttached()) && --limit)
169 "Unable to verify that the media was mounted",
235 const Pathname & dirname,
bool dots )
const
249 const Pathname & dirname,
bool dots )
const