filesystem.cpp revision 54d2d2606d7c83a456819cd038a73e0f9a600ca4
c1c9242f0046150566414e1f222cb667e03e605evboxsync * IPRT Filesystem API (Filesystem) - generic code.
c1c9242f0046150566414e1f222cb667e03e605evboxsync * Copyright (C) 2012 Oracle Corporation
c1c9242f0046150566414e1f222cb667e03e605evboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
c1c9242f0046150566414e1f222cb667e03e605evboxsync * available from http://www.virtualbox.org. This file is free software;
c1c9242f0046150566414e1f222cb667e03e605evboxsync * you can redistribute it and/or modify it under the terms of the GNU
c1c9242f0046150566414e1f222cb667e03e605evboxsync * General Public License (GPL) as published by the Free Software
c1c9242f0046150566414e1f222cb667e03e605evboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
c1c9242f0046150566414e1f222cb667e03e605evboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c1c9242f0046150566414e1f222cb667e03e605evboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
c1c9242f0046150566414e1f222cb667e03e605evboxsync * The contents of this file may alternatively be used under the terms
c1c9242f0046150566414e1f222cb667e03e605evboxsync * of the Common Development and Distribution License Version 1.0
c1c9242f0046150566414e1f222cb667e03e605evboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
c1c9242f0046150566414e1f222cb667e03e605evboxsync * VirtualBox OSE distribution, in which case the provisions of the
c1c9242f0046150566414e1f222cb667e03e605evboxsync * CDDL are applicable instead of those of the GPL.
c1c9242f0046150566414e1f222cb667e03e605evboxsync * You may elect to license modified versions of this file under the
c1c9242f0046150566414e1f222cb667e03e605evboxsync * terms and conditions of either the GPL or the CDDL or both.
c1c9242f0046150566414e1f222cb667e03e605evboxsync/*******************************************************************************
c1c9242f0046150566414e1f222cb667e03e605evboxsync* Header Files *
c1c9242f0046150566414e1f222cb667e03e605evboxsync*******************************************************************************/
c1c9242f0046150566414e1f222cb667e03e605evboxsync/*******************************************************************************
c1c9242f0046150566414e1f222cb667e03e605evboxsync* Global variables *
c1c9242f0046150566414e1f222cb667e03e605evboxsync*******************************************************************************/
c1c9242f0046150566414e1f222cb667e03e605evboxsync * Supported volume formats.
54d2d2606d7c83a456819cd038a73e0f9a600ca4vboxsyncstatic int rtFsGetFormat(RTVFSFILE hVfsFile, PCRTFILESYSTEMDESC *ppFsDesc)
c1c9242f0046150566414e1f222cb667e03e605evboxsync uint32_t uScoreMax = RTFILESYSTEM_MATCH_SCORE_UNSUPPORTED;
54d2d2606d7c83a456819cd038a73e0f9a600ca4vboxsync for (unsigned i = 0; i < RT_ELEMENTS(g_aFsFmts); i++)
c1c9242f0046150566414e1f222cb667e03e605evboxsync if (uScoreMax > RTFILESYSTEM_MATCH_SCORE_UNSUPPORTED)
54d2d2606d7c83a456819cd038a73e0f9a600ca4vboxsyncRTDECL(int) RTFilesystemVfsFromFile(RTVFSFILE hVfsFile, PRTVFS phVfs)