2 .\" Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
4 .\" @APPLE_LICENSE_OSREFERENCE_HEADER_START@
6 .\" This file contains Original Code and/or Modifications of Original Code
7 .\" as defined in and that are subject to the Apple Public Source License
8 .\" Version 2.0 (the "License"). You may not use this file except in
9 .\" compliance with the License. The rights granted to you under the
10 .\" License may not be used to create, or enable the creation or
11 .\" redistribution of, unlawful or unlicensed copies of an Apple operating
12 .\" system, or to circumvent, violate, or enable the circumvention or
13 .\" violation of, any terms of an Apple operating system software license
16 .\" Please obtain a copy of the License at
17 .\" http://www.opensource.apple.com/apsl/ and read it before using this
20 .\" The Original Code and all software distributed under the License are
21 .\" distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 .\" EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 .\" INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 .\" FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 .\" Please see the License for the specific language governing rights and
26 .\" limitations under the License.
28 .\" @APPLE_LICENSE_OSREFERENCE_HEADER_END@
35 .Nd control filesystems
37 .Fd #include <sys/attr.h>
38 .Fd #include <sys/ioctl.h>
40 .Fn fsctl "const char *path" "unsigned long request" "void *data" "unsigned long options"
44 function manipulates the filesystem controlling mounted volumes.
45 In particular, many filesystem-specific operating
46 characteristics of mounted filesystems may be controlled
51 requests can also be used to extract filesystem-specific
52 information for a mounted volumes.
55 is the path name of any file within the mounted filesystem.
58 has encoded in it whether the argument is an
63 parameter, and the size of the argument
68 are entirely filesystem-specific except for the following, defined in
69 .Ao Pa sys/fsctl.h Ac :
70 .Bd -literal -offset indent
71 FSGETMOUNTINFOSIZE /* Return size of mount info data */
74 Macros and defines used in specifying an fsctl
78 requests and are located in the file
79 .Ao Pa sys/ioccom.h Ac .
81 may specify special flags for the processing of the
83 call. The options are specified by
85 the option values. The only option currently defined is
86 .Bd -literal -offset indent
87 #define FSOPT_NOFOLLOW 0x00000001 /* Don't follow symlinks */
90 which is interpreted by the
92 call to prevent following of symlinks. The
94 argument is passed to the filesystem, which may define and handle
100 If an error has occurred, a value of -1 is returned and
102 is set to indicate the error.
108 A component of the path prefix is not a directory.
109 .It Bq Er ENAMETOOLONG
110 A component of a pathname exceeded
112 characters, or an entire path name exceeded
116 The named file does not exist.
118 Search permission is denied for a component of the path prefix.
120 Too many symbolic links were encountered in translating the pathname.
125 points to an invalid address.
129 error occurred while reading from or writing to the file system.
143 function call appeared in Mac OS X version 10.0.