2014-09-07 15:08:27 +00:00
|
|
|
/*
|
|
|
|
* s3fs - FUSE-based file system backed by Amazon S3
|
|
|
|
*
|
2017-05-07 11:24:17 +00:00
|
|
|
* Copyright(C) 2007 Randy Rizun <rrizun@gmail.com>
|
2014-09-07 15:08:27 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
2015-08-21 16:19:31 +00:00
|
|
|
|
2013-03-30 13:37:14 +00:00
|
|
|
#ifndef S3FS_COMMON_H_
|
|
|
|
#define S3FS_COMMON_H_
|
|
|
|
|
2022-07-30 03:06:47 +00:00
|
|
|
#include <sys/types.h>
|
2021-08-03 22:36:32 +00:00
|
|
|
|
2015-08-21 16:19:31 +00:00
|
|
|
#include "../config.h"
|
2020-08-22 12:40:53 +00:00
|
|
|
#include "types.h"
|
2015-08-21 16:19:31 +00:00
|
|
|
|
2020-08-22 12:40:53 +00:00
|
|
|
//-------------------------------------------------------------------
|
2014-04-05 05:11:55 +00:00
|
|
|
// Global variables
|
2020-08-22 12:40:53 +00:00
|
|
|
//-------------------------------------------------------------------
|
2018-12-16 01:42:38 +00:00
|
|
|
// TODO: namespace these
|
2021-05-06 10:40:35 +00:00
|
|
|
static const int64_t FIVE_GB = 5LL * 1024LL * 1024LL * 1024LL;
|
|
|
|
static const off_t MIN_MULTIPART_SIZE = 5 * 1024 * 1024;
|
|
|
|
|
2015-09-30 19:41:27 +00:00
|
|
|
extern bool foreground;
|
|
|
|
extern bool nomultipart;
|
|
|
|
extern bool pathrequeststyle;
|
2017-05-04 03:41:24 +00:00
|
|
|
extern bool complement_stat;
|
2020-08-22 12:40:53 +00:00
|
|
|
extern bool noxmlns;
|
2015-09-30 19:41:27 +00:00
|
|
|
extern std::string program_name;
|
|
|
|
extern std::string service_path;
|
2020-08-22 12:40:53 +00:00
|
|
|
extern std::string s3host;
|
2015-09-30 19:41:27 +00:00
|
|
|
extern std::string mount_prefix;
|
|
|
|
extern std::string endpoint;
|
2017-04-04 12:32:53 +00:00
|
|
|
extern std::string cipher_suites;
|
2018-02-28 07:51:35 +00:00
|
|
|
extern std::string instance_name;
|
2013-03-30 13:37:14 +00:00
|
|
|
|
2022-10-22 01:42:07 +00:00
|
|
|
//-------------------------------------------------------------------
|
|
|
|
// For weak attribute
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
#define S3FS_FUNCATTR_WEAK __attribute__ ((weak,unused))
|
|
|
|
|
2013-03-30 13:37:14 +00:00
|
|
|
#endif // S3FS_COMMON_H_
|
2014-09-07 15:08:27 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
2020-08-22 12:40:53 +00:00
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
2014-09-07 15:08:27 +00:00
|
|
|
* End:
|
2020-08-22 12:40:53 +00:00
|
|
|
* vim600: expandtab sw=4 ts=4 fdm=marker
|
|
|
|
* vim<600: expandtab sw=4 ts=4
|
2014-09-07 15:08:27 +00:00
|
|
|
*/
|