* Removed now obsolete notification (this was not even used in Tracker

anymore).
* Added interface to get the current settings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33486 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-10-07 19:31:57 +00:00
parent 2cfe13f4b9
commit 011a4cdbfc
2 changed files with 12 additions and 8 deletions

View File

@ -11,10 +11,11 @@
const uint32 kMountVolume = 'mntv';
const uint32 kMountAllNow = 'mntn';
const uint32 kSetAutomounterParams = 'pmst';
const uint32 kGetAutomounterParams = 'gpms';
const uint32 kVolumeMounted = 'vmtd';
const uint32 kUnmountVolume = 'umnt';
const char* kMountServerSignature = "application/x-vnd.Haiku-mount_server";
#define kMountServerSignature "application/x-vnd.Haiku-mount_server"
#endif // _MOUNT_SERVER_H

View File

@ -123,6 +123,14 @@ AutoMounter::MessageReceived(BMessage* message)
break;
}
case kGetAutomounterParams:
{
BMessage reply;
_GetSettings(&reply);
message->SendReply(&reply);
break;
}
case kMountAllNow:
_MountVolumes(kAllVolumes, kAllVolumes);
break;
@ -498,13 +506,8 @@ AutoMounter::_MountVolumes(mount_mode normal, mount_mode removable,
}
}
if (partition->Mount(NULL, mountFlags) == B_OK
&& partition->GetMountPoint(&path) == B_OK) {
// notify Tracker that a new volume has been started
BMessage note(kVolumeMounted);
note.AddString("path", path.Path());
note.AddBool("initial rescan", fInitialRescan);
be_app->PostMessage(&note);
if (partition->Mount(NULL, mountFlags) != B_OK) {
// TODO: Error to syslog
}
return false;
}