mirror of https://github.com/trapexit/mergerfs.git
Browse Source
Merge pull request #34 from trapexit/byref
Merge pull request #34 from trapexit/byref
pass const strings by reference. closes #33pull/37/merge
Antonio SJ Musumeci
10 years ago
38 changed files with 181 additions and 257 deletions
-
2src/access.cpp
-
10src/category.cpp
-
14src/category.hpp
-
2src/chmod.cpp
-
2src/chown.cpp
-
2src/create.cpp
-
92src/fs.cpp
-
84src/fs.hpp
-
2src/getattr.cpp
-
4src/getxattr.cpp
-
4src/ioctl.cpp
-
4src/link.cpp
-
2src/listxattr.cpp
-
1src/mergerfs.cpp
-
2src/mkdir.cpp
-
2src/mknod.cpp
-
2src/open.cpp
-
4src/opendir.hpp
-
2src/option_parser.cpp
-
2src/policy.cpp
-
14src/policy.hpp
-
4src/readdir.cpp
-
6src/readdir.hpp
-
4src/readlink.cpp
-
4src/releasedir.hpp
-
2src/removexattr.cpp
-
4src/rename.cpp
-
2src/rmdir.cpp
-
10src/rwlock.hpp
-
34src/setxattr.cpp
-
2src/str.cpp
-
12src/str.hpp
-
4src/symlink.cpp
-
55src/test.cpp
-
30src/test.hpp
-
2src/truncate.cpp
-
2src/unlink.cpp
-
8src/utimens.cpp
@ -1,55 +0,0 @@ |
|||
/*
|
|||
The MIT License (MIT) |
|||
|
|||
Copyright (c) 2014 Antonio SJ Musumeci <trapexit@spawn.link> |
|||
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy |
|||
of this software and associated documentation files (the "Software"), to deal |
|||
in the Software without restriction, including without limitation the rights |
|||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|||
copies of the Software, and to permit persons to whom the Software is |
|||
furnished to do so, subject to the following conditions: |
|||
|
|||
The above copyright notice and this permission notice shall be included in |
|||
all copies or substantial portions of the Software. |
|||
|
|||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|||
THE SOFTWARE. |
|||
*/ |
|||
|
|||
#include <sys/types.h>
|
|||
#include <sys/stat.h>
|
|||
#include <unistd.h>
|
|||
|
|||
#include <cstdlib>
|
|||
#include <iostream>
|
|||
#include <sstream>
|
|||
|
|||
#include <string>
|
|||
#include <vector>
|
|||
#include <map>
|
|||
|
|||
#include <string.h>
|
|||
|
|||
#include "config.hpp"
|
|||
#include "readdir.hpp"
|
|||
#include "fs.hpp"
|
|||
|
|||
using std::string; |
|||
|
|||
namespace mergerfs |
|||
{ |
|||
int |
|||
test(const struct fuse_args &args, |
|||
const mergerfs::config::Config &config) |
|||
{ |
|||
|
|||
|
|||
return 0; |
|||
} |
|||
} |
@ -1,30 +0,0 @@ |
|||
/*
|
|||
The MIT License (MIT) |
|||
|
|||
Copyright (c) 2014 Antonio SJ Musumeci <trapexit@spawn.link> |
|||
|
|||
Permission is hereby granted, free of charge, to any person obtaining a copy |
|||
of this software and associated documentation files (the "Software"), to deal |
|||
in the Software without restriction, including without limitation the rights |
|||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|||
copies of the Software, and to permit persons to whom the Software is |
|||
furnished to do so, subject to the following conditions: |
|||
|
|||
The above copyright notice and this permission notice shall be included in |
|||
all copies or substantial portions of the Software. |
|||
|
|||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|||
THE SOFTWARE. |
|||
*/ |
|||
|
|||
namespace mergerfs |
|||
{ |
|||
int |
|||
test(const struct fuse_args &args, |
|||
const mergerfs::config::Config &config); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue