1241519Sattilio/* 2241519Sattilio * Copyright (c) 2007-2009 Google Inc. and Amit Singh 3241519Sattilio * All rights reserved. 4241519Sattilio * 5241519Sattilio * Redistribution and use in source and binary forms, with or without 6241519Sattilio * modification, are permitted provided that the following conditions are 7241519Sattilio * met: 8241519Sattilio * 9241519Sattilio * * Redistributions of source code must retain the above copyright 10241519Sattilio * notice, this list of conditions and the following disclaimer. 11241519Sattilio * * Redistributions in binary form must reproduce the above 12241519Sattilio * copyright notice, this list of conditions and the following disclaimer 13241519Sattilio * in the documentation and/or other materials provided with the 14241519Sattilio * distribution. 15241519Sattilio * * Neither the name of Google Inc. nor the names of its 16241519Sattilio * contributors may be used to endorse or promote products derived from 17241519Sattilio * this software without specific prior written permission. 18241519Sattilio * 19241519Sattilio * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20241519Sattilio * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21241519Sattilio * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22241519Sattilio * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23241519Sattilio * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24241519Sattilio * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25241519Sattilio * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26241519Sattilio * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27241519Sattilio * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28241519Sattilio * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29241519Sattilio * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30241519Sattilio * 31241519Sattilio * $FreeBSD: releng/10.2/sys/fs/fuse/fuse_param.h 241519 2012-10-13 23:54:26Z attilio $ 32241519Sattilio */ 33241519Sattilio 34241519Sattilio#ifndef _FUSE_PARAM_H_ 35241519Sattilio#define _FUSE_PARAM_H_ 36241519Sattilio 37241519Sattilio/* 38241519Sattilio * This is the prefix ("fuse" by default) of the name of a FUSE device node 39241519Sattilio * in devfs. The suffix is the device number. "/dev/fuse0" is the first FUSE 40241519Sattilio * device by default. If you change the prefix from the default to something 41241519Sattilio * else, the user-space FUSE library will need to know about it too. 42241519Sattilio */ 43241519Sattilio#define FUSE_DEVICE_BASENAME "fuse" 44241519Sattilio 45241519Sattilio/* 46241519Sattilio * This is the number of /dev/fuse<n> nodes we will create. <n> goes from 47241519Sattilio * 0 to (FUSE_NDEVICES - 1). 48241519Sattilio */ 49241519Sattilio#define FUSE_NDEVICES 16 50241519Sattilio 51241519Sattilio/* 52241519Sattilio * This is the default block size of the virtual storage devices that are 53241519Sattilio * implicitly implemented by the FUSE kernel extension. This can be changed 54241519Sattilio * on a per-mount basis (there's one such virtual device for each mount). 55241519Sattilio */ 56241519Sattilio#define FUSE_DEFAULT_BLOCKSIZE 4096 57241519Sattilio 58241519Sattilio/* 59241519Sattilio * This is default I/O size used while accessing the virtual storage devices. 60241519Sattilio * This can be changed on a per-mount basis. 61241519Sattilio */ 62241519Sattilio#define FUSE_DEFAULT_IOSIZE 4096 63241519Sattilio 64241519Sattilio#ifdef KERNEL 65241519Sattilio 66241519Sattilio/* 67241519Sattilio * This is the soft upper limit on the number of "request tickets" FUSE's 68241519Sattilio * user-kernel IPC layer can have for a given mount. This can be modified 69241519Sattilio * through the fuse.* sysctl interface. 70241519Sattilio */ 71241519Sattilio#define FUSE_DEFAULT_MAX_FREE_TICKETS 1024 72241519Sattilio 73241519Sattilio#define FUSE_DEFAULT_IOV_PERMANENT_BUFSIZE (1L << 19) 74241519Sattilio#define FUSE_DEFAULT_IOV_CREDIT 16 75241519Sattilio 76241519Sattilio#endif 77241519Sattilio 78241519Sattilio#define FUSE_LINK_MAX LINK_MAX 79241519Sattilio 80241519Sattilio#endif /* _FUSE_PARAM_H_ */ 81