2010-01-25 05:52:17 +01:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2010-01-25 05:52:17 +01:00
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2010-02-28 22:33:06 +01:00
|
|
|
* Copyright (c) 2008-2010, Tomasz Sowa
|
2010-01-25 05:52:17 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "content.h"
|
|
|
|
#include "../core/request.h"
|
|
|
|
#include "../core/data.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Content::CheckSpecialFile()
|
|
|
|
{
|
|
|
|
static std::string fstab = "fstab";
|
|
|
|
|
|
|
|
Item * etc = data.dirs.GetEtcDir();
|
|
|
|
|
|
|
|
if( !etc )
|
|
|
|
return;
|
|
|
|
|
|
|
|
if( request.item.parent_id != etc->id )
|
|
|
|
return;
|
|
|
|
|
|
|
|
if( request.item.url == fstab )
|
|
|
|
{
|
|
|
|
log << log3 << "Content: reloading mount points" << logend;
|
|
|
|
|
2010-02-28 22:33:06 +01:00
|
|
|
request.status = data.mounts.ReadMounts(request.item.content);
|
2010-01-25 05:52:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|