CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mount.cvmfs.cc File Reference
#include <errno.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/wait.h>
#include <sys/un.h>
#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <vector>
#include "options.h"
#include "sanitizer.h"
#include "util/logging.h"
#include "util/platform.h"
#include "util/posix.h"
#include "util/string.h"
Include dependency graph for mount.cvmfs.cc:

Go to the source code of this file.

Functions

static void Usage (int output_dest)
 
static void AddMountOption (const string &option, vector< string > *mount_options)
 
static string MkFqrn (const string &repository)
 
static bool CheckFuse ()
 
static bool CheckStrictMount (const string &fqrn)
 
static bool CheckProxy ()
 
static bool CheckConcurrentMount (const string &fqrn, const string &workspace, string *mountpointp)
 
static int GetExistingFuseFd (const string &fqrn, const string &workspace, uid_t cvmfs_uid)
 
static bool GetCacheDir (const string &fqrn, string *cachedir)
 
static bool GetWorkspace (const string &fqrn, string *workspace)
 
static bool WaitForReload (const std::string &mountpoint)
 
static bool GetCvmfsUser (string *cvmfs_user)
 
static std::string GetCvmfsBinary ()
 
static int AttachMount (const std::string &mountpoint, const std::string &fqrn, int fuse_fd)
 
int main (int argc, char **argv)
 

Variables

BashOptionsManager options_manager_
 

Function Documentation

static void AddMountOption ( const string &  option,
vector< string > *  mount_options 
)
static

Definition at line 49 of file mount.cvmfs.cc.

Referenced by main().

Here is the caller graph for this function:

static int AttachMount ( const std::string &  mountpoint,
const std::string &  fqrn,
int  fuse_fd 
)
static

Definition at line 322 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool CheckConcurrentMount ( const string &  fqrn,
const string &  workspace,
string *  mountpointp 
)
static

Definition at line 137 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool CheckFuse ( )
static

Definition at line 72 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool CheckProxy ( )
static

Definition at line 126 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool CheckStrictMount ( const string &  fqrn)
static

Definition at line 96 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool GetCacheDir ( const string &  fqrn,
string *  cachedir 
)
static

Definition at line 214 of file mount.cvmfs.cc.

Referenced by GetWorkspace(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

static std::string GetCvmfsBinary ( )
static

Definition at line 297 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool GetCvmfsUser ( string *  cvmfs_user)
static

Definition at line 285 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static int GetExistingFuseFd ( const string &  fqrn,
const string &  workspace,
uid_t  cvmfs_uid 
)
static

Definition at line 159 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static bool GetWorkspace ( const string &  fqrn,
string *  workspace 
)
static

Definition at line 238 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 356 of file mount.cvmfs.cc.

Here is the call graph for this function:

static string MkFqrn ( const string &  repository)
static

Definition at line 56 of file mount.cvmfs.cc.

Referenced by CheckStrictMount(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void Usage ( int  output_dest)
static

Definition at line 36 of file mount.cvmfs.cc.

Here is the call graph for this function:

static bool WaitForReload ( const std::string &  mountpoint)
static

Definition at line 256 of file mount.cvmfs.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation