(reading /etc/fstab from db not working yet) core/mount.h core/mountparser.h core/mountparser.cpp core/mounts.h core/mounts.cpp content/thread.cpp content/createthread.cpp templates/thread.cpp git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@495 e52654a7-88a9-db11-a3e9-0013d4bc506e
46 lines
588 B
C++
Executable File
46 lines
588 B
C++
Executable File
/*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef headerfilecoremounts
|
|
#define headerfilecoremounts
|
|
|
|
|
|
#include <map>
|
|
#include "mount.h"
|
|
#include "request.h"
|
|
#include "log.h"
|
|
#include "mountparser.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
|