CernVM-FS  2.10.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 "logging.h"
#include "options.h"
#include "platform.h"
#include "sanitizer.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 321 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 213 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 296 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 284 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 158 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 237 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 355 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.

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

Definition at line 255 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