haiku/headers/private/fs_shell
Ingo Weinhold 7ffafac8d7 * Reorganized the FS interface a little:
- Moved most file_system_module_info hooks into separate structures.
    Those that operate on mounted volumes to fs_volume_ops, those
    operating on a vnode to fs_vnode_ops.
  - Got rid of the fs_volume, fs_cookie, fs_vnode typedefs. We use void*
    again.
  - Instead of a void* volume and node cookie hooks are passed a
    fs_volume and fs_vnode structure pointer, which contain the cookie
    and an ops pointer (fs_volume a few more things).
  - The VFS {new,publish,get,...}_vnode() functions take a fs_volume*
    instead of the volume ID. So does vfs_get_fs_node_from_path().
  - Added type and flags arguments to publish_vnode() and the
    get_vnode() hook and removed the type argument from lookup() hook.
    Added vnode::type using formerly unused bits to store the node type.
    Simplified a few things in the VFS due to the now always available
    node type.
  - Added fs_volume_ops::{create,delete}_sub_vnode() and
    fs_vnode_ops::get_super_vnode() hooks. They are used to support file
    system layers, e.g. allowing to extend an FS not supporting BeOS
    attribute with attribute support. Needs some more work in the VFS.
  - Added fs_vnode_ops::create_special_node() hook for creating special
    nodes (e.g. FIFOs).
* Adjusted the built-in file systems and BFS according to the interface
  changes. Removed all other FSs from the image for the time being.
  We'll see whether further API changes are necessary before porting
  them.
* Adjusted the bfs_shell accordingly.
* Implemented create_special_node() in rootfs to support special nodes.
* Added support for FIFOs:
  - Added syscall _kern_create_fifo() (used by mkfifo()), which creates
    a special node (type S_IFIFO) in the respective file system.
  - When a special node is published the VFS creates a respective sub
    node. Currently only FIFOs are supported.
  - Added a little support for FIFO subnodes by using functionality from
    the pipefs.
  - Added mkfifo to the image. It can create FIFOs in the rootfs, but
    the FIFOs aren't really usable ATM, since they still work like
    pipes, i.e. readers and writers need to have them open at the same
    time.
* Some smaller changes in the VFS:
  - Made the *_CALL macros nicer to use (vargs).
  - Refactored FS entry lookup into new function lookup_dir_entry().
  - create_vnode() no longer just calls the FS create() hook. First it
    looks up the entry and uses open_vnode(), if it already exists. This
    is necessary for two reasons: 1) The FS might not support create()
    while still allowing to open() entries. 2) When the FS has other
    layers on to of it (or the respective node) it might not be
    responsible for opening the node.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-04-05 23:05:16 +00:00
..
DoublyLinkedList.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_api_wrapper.h * Reorganized the FS interface a little: 2008-04-05 23:05:16 +00:00
fssh_atomic.h x86_64 changes : 2007-06-17 10:50:18 +00:00
fssh_auto_locker.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_byte_order.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_defs.h Thou shall not leave a blank line between copyright header and header 2007-05-02 14:26:29 +00:00
fssh_dirent.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_disk_device_defs.h * Added disk system flags for whether a partition name and partition 2007-08-22 21:21:30 +00:00
fssh_disk_device_manager.h Added scan_partition() function which can be used by disk systems (e.g. 2007-10-04 18:03:24 +00:00
fssh_driver_settings.h Added driver settings support to the FS shell. 2007-05-25 05:07:34 +00:00
fssh_drivers.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_errno.h Provide a way to convert FS shell error codes to host platform error 2007-04-28 23:40:04 +00:00
fssh_errors.h Passed GENERAL_ERROR_BASE from LONG_MIN to INT_MIN (errors are uint32). 2007-06-20 21:58:02 +00:00
fssh_fcntl.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_fs_attr.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_fs_cache.h Looks like some bloke forgot to commit *some* files that should have been part 2008-04-03 14:14:27 +00:00
fssh_fs_index.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_fs_info.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_fs_interface.h * Reorganized the FS interface a little: 2008-04-05 23:05:16 +00:00
fssh_fs_query.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_fs_volume.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_kernel_export.h * Explained under which circumstances vnode_path_to_vnode() will clobber the 2008-03-09 13:43:38 +00:00
fssh_kernel_priv.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_module.h FS shell changes: 2007-04-27 22:37:01 +00:00
fssh_node_monitor.h Forgot to commit these; this fixes building the fs_shell, thanks Jerome! 2008-02-25 14:08:59 +00:00
fssh_os.h Thou shall not leave a blank line between copyright header and header 2007-05-02 14:26:29 +00:00
fssh_stat.h Surprising how much gcc 4 compilers on Linux differ. Another attempt to 2007-05-07 13:41:12 +00:00
fssh_stdio.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_string.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_time.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_type_constants.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_types.h this macro is preferred 2007-11-19 19:50:38 +00:00
fssh_uio.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
fssh_unistd.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
KPath.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00
Stack.h Beginnings of a new, better portable FS shell with Haiku FS interface. 2007-04-27 12:17:22 +00:00