2009-04-20 00:13:21 +02:00
|
|
|
/*
|
|
|
|
* This file is a part of CMSLU -- Content Management System like Unix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
|
|
|
* Copyright (c) 2009, Tomasz Sowa
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2009-04-21 22:50:55 +02:00
|
|
|
#ifndef headerfilecmslucorecoremounts
|
|
|
|
#define headerfilecmslucorecoremounts
|
2009-04-20 00:13:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include "mount.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Mounts
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
void ReadMounts();
|
|
|
|
|
|
|
|
void CalculateCurrentMountType();
|
|
|
|
Mount GetCurrentMountPoint();
|
|
|
|
void MountCmsForRoot();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Mount current_dir;
|
|
|
|
|
|
|
|
// dir_id, mount_point
|
|
|
|
std::map<long, Mount> mount_table;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|