/* $Id$ */
/** @file
* Apps - VBoxVolInfo, Volume information tool.
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include <dirent.h>
extern "C"
{
#define private privatekw
#include <libdevmapper.h>
}
#include <stdio.h>
#include <unistd.h>
/*******************************************************************************
* Function Prototypes *
*******************************************************************************/
/*
* Extracts logical volume dependencies via devmapper API and print them out.
*/
{
if (argc != 2)
{
return 1;
}
if (!dmtask)
return 2;
if (dm_task_run(dmtask))
{
if (dmdeps)
{
unsigned i;
}
}
return 0;
}
/*
* Looks up device name by id using /dev directory. Prints it to stdout.
*/
{
{
{
break;
}
}
}