zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

volumes.c File Reference
#include "includes.h"
#include "../lib/includes.h"
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <libintl.h>
#include <locale.h>
#include <linux/limits.h>
#include <blkid/blkid.h>
#include "udev_support.h"
Include dependency graph for volumes.c:

Go to the source code of this file.

Macros

#define SIZE   64
 

Functions

static stringList_t _zuluCryptAddLVMVolumes (stringList_t stl)
 
static stringList_t _zuluCryptAddMDRAIDVolumes (stringList_t stl)
 
static stringList_t _remove_btfs_multiple_devices (stringList_t stl)
 
static int _not_removed (stringList_t stl, StringListIterator it, StringListIterator *end)
 
static stringList_t _remove_root_devices (stringList_t stl)
 
static int _supported_device (const char *device)
 
static stringList_t _zuluCryptVolumeList_0 (int resolve_loop_devices)
 
stringList_t zuluCryptVolumeList (void)
 
stringList_t zuluCryptGetAListOfAllVolumes (void)
 
int zuluCryptDeviceIsSupported (const char *device, uid_t uid)
 
static int _zuluCryptCheckSYSifDeviceIsSystem (const char *device)
 
stringList_t zuluCryptPartitions (int option, uid_t uid)
 
int zuluCryptVolumeIsInSystemVolumeList (const char *device)
 
u_int64_t zuluCryptGetVolumeSize (const char *device)
 
void zuluCryptPrintPartitionProperties (const char *device)
 
static void _zuluCryptPrintUnMountedPartitionProperties (stringList_t stl)
 
static void _print_list (stringList_t stl)
 
int zuluCryptPrintPartitions (int option, int info, uid_t uid)
 
static stringList_t _eval_path (string_t path, stringList_t stl_1)
 
stringList_t zuluCryptGetPartitionFromCrypttab (void)
 
stringList_t zuluCryptGetPartitionFromConfigFile (const char *path)
 
int _zuluCryptPartitionIsSystemPartition (const char *dev, uid_t uid)
 
int zuluCryptPartitionIsSystemPartition (const char *device, uid_t uid)
 

Macro Definition Documentation

◆ SIZE

#define SIZE   64

Function Documentation

◆ _eval_path()

◆ _not_removed()

static int _not_removed ( stringList_t  stl,
StringListIterator  it,
StringListIterator end 
)
static

Definition at line 188 of file volumes.c.

References e, StringListRemoveAt_1(), StringStartsWith_1(), and StringStartsWithAtLeastOne().

Referenced by _remove_root_devices().

◆ _print_list()

static void _print_list ( stringList_t  stl)
static

◆ _remove_btfs_multiple_devices()

◆ _remove_root_devices()

static stringList_t _remove_root_devices ( stringList_t  stl)
static

Definition at line 239 of file volumes.c.

References _not_removed(), and StringListGetIterators().

Referenced by _zuluCryptVolumeList_0().

◆ _supported_device()

static int _supported_device ( const char *  device)
static

Definition at line 257 of file volumes.c.

References StringAtLeastOnePrefixMatch().

Referenced by _zuluCryptVolumeList_0().

◆ _zuluCryptAddLVMVolumes()

◆ _zuluCryptAddMDRAIDVolumes()

static stringList_t _zuluCryptAddMDRAIDVolumes ( stringList_t  stl)
static

◆ _zuluCryptCheckSYSifDeviceIsSystem()

◆ _zuluCryptPartitionIsSystemPartition()

int _zuluCryptPartitionIsSystemPartition ( const char *  dev,
uid_t  uid 
)

◆ _zuluCryptPrintUnMountedPartitionProperties()

static void _zuluCryptPrintUnMountedPartitionProperties ( stringList_t  stl)
static

◆ _zuluCryptVolumeList_0()

◆ zuluCryptDeviceIsSupported()

int zuluCryptDeviceIsSupported ( const char *  device,
uid_t  uid 
)

◆ zuluCryptGetAListOfAllVolumes()

stringList_t zuluCryptGetAListOfAllVolumes ( void  )

◆ zuluCryptGetPartitionFromConfigFile()

◆ zuluCryptGetPartitionFromCrypttab()

◆ zuluCryptGetVolumeSize()

◆ zuluCryptPartitionIsSystemPartition()

◆ zuluCryptPartitions()

◆ zuluCryptPrintPartitionProperties()

◆ zuluCryptPrintPartitions()

◆ zuluCryptVolumeIsInSystemVolumeList()

int zuluCryptVolumeIsInSystemVolumeList ( const char *  device)

◆ zuluCryptVolumeList()

stringList_t zuluCryptVolumeList ( void  )

Definition at line 401 of file volumes.c.

References _zuluCryptVolumeList_0().

Referenced by zuluCryptGetVolumeSize(), and zuluCryptPartitions().