Lines Matching refs:file

20 #include <sys/file.h>
123 /*! \brief Structure to manage a mounted file system
356 // file descriptor operation prototypes
748 /*! Tries to open the specified file system module.
749 Accepts a file system name of the form "bfs" or "file_systems/bfs/v1".
750 Returns a pointer to file system module interface, or NULL if it
772 /*! Accepts a file system name of the form "bfs" or "file_systems/bfs/v1"
784 // the name already seems to be the module's file name
806 /*! Accepts a list of file system names separated by a colon, one for each
807 layer and returns the file system name for the specified layer.
988 // itself (cf. vfs_get_vnode_cache()) and one belongs to the node's file
990 // to the vnode. The file cache, however, released its reference (cf.
992 // ever drop to 0. Deleting the file cache now, will cause the next to last
1013 // The file system has removed the resources of the vnode now, so we can
1042 a file system. This will be passed to file system hooks only.
1142 a file system.
1721 BSD flock() semantics are used, that is, all children can unlock the file
1742 // lock that one and search for any colliding file lock
1900 /*! Disconnects all file descriptors that are associated with the
1915 // iterate over all teams and peek into their file descriptors
2012 // '/' are not allowed in file names!
2031 // This path points to the root of the file system
2188 // If a file system doesn't have the access() function, we assume that
2478 // vnode so we get the underlying file system
2550 file system doesn't support this call, it will fall back to iterating
2558 paths aren't safe anyway: the path to a file can change at any time.
2720 // ToDo: when we can close a file descriptor at any point, investigate
2750 If \a fd is a valid file descriptor, \a path may be NULL for directories,
2795 // If the vnode is locked, we don't allow creating a new file/directory
2852 // The Open Group Base Specs don't mention any file types besides pipes,
2893 // get file vnode, if we shall resolve links
2923 // insert a directory separator if this is not the file system
3441 and calls the file system hooks to read/write the request to disk.
3450 // There are no file vecs at this offset, so we're obviously trying
3451 // to access the file outside of its bounds
3485 // If the file portion was contiguous, we're already done now
3489 // if we reached the end of the file, we can return as well
3588 //dprintf("-> file left = %Lu\n", fileLeft);
3676 // #pragma mark - public API for file systems
3709 // file system integrity check:
4248 file descriptor for it
4313 // wrong mount ID - must not gain access on foreign file system nodes
4355 /*! Finds the full path to the file that contains the module \a moduleName,
4358 \c B_ENTRY_NOT_FOUNT if no file could be found.
4388 VnodePutter file;
4406 status = vnode_path_to_vnode(dir.Detach(), path, true, true, file, NULL);
4410 if (S_ISDIR(file->Type())) {
4417 dir.SetTo(file.Detach());
4418 } else if (S_ISREG(file->Type())) {
4419 // it's a file so it should be what we've searched for
4423 "0x%08" B_PRIx32 "...\n", file->Type()));
4487 /*! \brief Creates a special node in the file system.
4496 the target file system will just create the node with its standard
4504 file system creating the node, with the private data pointer and
4853 // insert a directory separator if this is not the file system root
4876 /*! Releases any POSIX locks on the file descriptor. */
4891 /*! Closes all file descriptors of the specified I/O context that
4965 // Copy all parent file descriptors
5303 panic("vfs_init: error creating file descriptor object_cache\n");
5354 file descriptor for it
5375 file descriptor for it
5499 file descriptor for it
5525 file descriptor for it.
5559 // get directory to put the new file in
5578 // get directory to put the new file in
6184 // Set file descriptor flags
6197 // Get file descriptor flags
6206 // Set file descriptor open mode
6230 // Get file descriptor open mode
6611 // TODO: remove this once all file systems properly set them!
6825 // now we only need a file descriptor for this attribute and we're done
7354 // Helper to delete a newly created file device on failure.
7366 // If the file system is not a "virtual" one, the device argument should
7367 // point to a real file/device (if given at all).
7384 // an invalid path, or the path refers to an image file. We try
7385 // to let the DDM create a file device for the path.
7402 // correct path to file device
7590 // the root node is supposed to be owned by the file system - it must
7595 panic("fs_mount: file system does not own its root node!\n");
7774 // the file system is still busy - but we're forced to unmount it,
7775 // so let's disconnect all open file descriptors
7896 // First, synchronize all file caches
7954 // Let the file systems do their synchronizing work
7980 // fill in info the file system doesn't (have to) know about
7997 // if the call is not supported by the file system, there are still
9142 \return The file descriptor of the opened parent directory, if everything