llvfs.cpp File Reference

Implementation of virtual file system. More...

#include "linden_common.h"
#include <sys/stat.h>
#include <set>
#include <map>
#include <sys/file.h>
#include "llvfs.h"
#include "llstl.h"
#include "llapr.h"

Include dependency graph for llvfs.cpp:

Go to the source code of this file.

Classes

class  LLVFSBlock
class  LLVFSFileBlock
struct  LLVFSFileBlock_less

Functions

LLString get_extension (LLAssetType::EType type)

Variables

const S32 FILE_BLOCK_MASK = 0x000003FF
const S32 VFS_CLEANUP_SIZE = 5242880
const S32 BLOCK_LENGTH_INVALID = -1
LLVFSgVFS = NULL


Detailed Description

Implementation of virtual file system.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llvfs.cpp.


Function Documentation

LLString get_extension ( LLAssetType::EType  type  ) 

Definition at line 2044 of file llvfs.cpp.

References LLAssetType::AT_ANIMATION, LLAssetType::AT_IMAGE_JPEG, LLAssetType::AT_SOUND, LLAssetType::AT_SOUND_WAV, LLAssetType::AT_TEXTURE, and LLAssetType::AT_TEXTURE_TGA.

Referenced by LLVFS::dumpFiles(), and LLVFS::listFiles().


Variable Documentation

const S32 BLOCK_LENGTH_INVALID = -1

Definition at line 52 of file llvfs.cpp.

Referenced by LLVFS::dumpFiles(), LLVFS::dumpStatistics(), LLVFS::incLock(), LLVFS::listFiles(), LLVFS::removeFileBlock(), LLVFS::storeData(), and LLVFS::sync().

const S32 FILE_BLOCK_MASK = 0x000003FF

Definition at line 50 of file llvfs.cpp.

Referenced by LLVFS::setMaxSize().

LLVFS* gVFS = NULL

Definition at line 54 of file llvfs.cpp.

Referenced by cleanup_app(), LLVorbisDecodeState::finishDecode(), LLAudioEngine::hasLocalFile(), idle_startup(), init_cache(), LLVorbisDecodeState::initDecode(), LLAssetUploadResponder::LLAssetUploadResponder(), LLFloaterAnimPreview::onBtnOK(), LLFloaterAuction::onClickSnapshot(), LLTexLayerSetBuffer::readBackAndUpload(), LLAssetUploadResponder::result(), LLPreviewNotecard::saveIfNeeded(), LLPreviewGesture::saveIfNeeded(), LLSnapshotLivePreview::saveTexture(), LLFloaterPostcard::sendPostcard(), LLFloaterReporter::takeScreenshot(), upload_new_resource(), LLUpdateTaskInventoryResponder::uploadComplete(), and LLUpdateAgentInventoryResponder::uploadComplete().

const S32 VFS_CLEANUP_SIZE = 5242880

Definition at line 51 of file llvfs.cpp.

Referenced by LLVFS::findFreeBlock().


Generated on Thu Jul 1 06:10:46 2010 for Second Life Viewer by  doxygen 1.4.7