2 .\" Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
4 .\" @APPLE_LICENSE_HEADER_START@
6 .\" The contents of this file constitute Original Code as defined in and
7 .\" are subject to the Apple Public Source License Version 1.1 (the
8 .\" "License"). You may not use this file except in compliance with the
9 .\" License. Please obtain a copy of the License at
10 .\" http://www.apple.com/publicsource and read it before using this file.
12 .\" This Original Code and all software distributed under the License are
13 .\" distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 .\" EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 .\" INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 .\" FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 .\" License for the specific language governing rights and limitations
18 .\" under the License.
20 .\" @APPLE_LICENSE_HEADER_END@
27 .Nd control filesystems
29 .Fd #include <sys/attr.h>
30 .Fd #include <sys/ioctl.h>
32 .Fn fsctl "const char *path" "unsigned long request" "void *data" "unsigned long options"
36 function manipulates the filesystem controlling mounted volumes.
37 In particular, many filesystem-specific operating
38 characteristics of mounted filesystems may be controlled
43 requests can also be used to extract filesystem-specific
44 information for a mounted volumes.
47 is the path name of any file within the mounted filesystem.
50 has encoded in it whether the argument is an
55 parameter, and the size of the argument
60 are entirely filesystem-specific except for the following, defined in
61 .Ao Pa sys/fsctl.h Ac :
62 .Bd -literal -offset indent
63 FSGETMOUNTINFOSIZE /* Return size of mount info data */
66 Macros and defines used in specifying an fsctl
70 requests and are located in the file
71 .Ao Pa sys/ioccom.h Ac .
73 may specify special flags for the processing of the
75 call. The options are specified by
77 the option values. The only option currently defined is
78 .Bd -literal -offset indent
79 #define FSOPT_NOFOLLOW 0x00000001 /* Don't follow symlinks */
82 which is interpreted by the
84 call to prevent following of symlinks. The
86 argument is passed to the filesystem, which may define and handle
92 If an error has occurred, a value of -1 is returned and
94 is set to indicate the error.
100 A component of the path prefix is not a directory.
101 .It Bq Er ENAMETOOLONG
102 A component of a pathname exceeded
104 characters, or an entire path name exceeded
108 The named file does not exist.
110 Search permission is denied for a component of the path prefix.
112 Too many symbolic links were encountered in translating the pathname.
117 points to an invalid address.
121 error occurred while reading from or writing to the file system.
135 function call appeared in Mac OS X version 10.0.