Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset bb8cd79 in mainline


Ignore:
Timestamp:
2011-07-28T20:36:01Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
99e846f0
Parents:
99f043e
Message:

Add comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs_dentry.c

    r99f043e rbb8cd79  
    3333#include "mfs.h"
    3434
     35/**Read a directory entry from disk.
     36 *
     37 * @param mnode         Pointer to the directory node.
     38 * @param d_info        Pointer to a directory entry structure where the dentry info
     39 *                      will be stored.
     40 * @param index         index of the dentry in the list.
     41 *
     42 * @return              EOK on success or a negative error code.
     43 */
    3544int
    3645read_dentry(struct mfs_node *mnode,
     
    8695}
    8796
     97/**Write a directory entry on disk.
     98 *
     99 * @param d_info        Pointer to the directory entry structure to write on disk.
     100 *
     101 * @return              EOK on success or a negative error code.
     102 */
    88103int
    89104write_dentry(struct mfs_dentry_info *d_info)
     
    128143}
    129144
     145/**Remove a directory entry from a directory.
     146 *
     147 * @param mnode         Pointer to the directory node.
     148 * @param d_name        Name of the directory entry to delete.
     149 *
     150 * @return              EOK on success or a negative error code.
     151 */
    130152int
    131153remove_dentry(struct mfs_node *mnode, const char *d_name)
     
    156178}
    157179
     180/**Insert a new directory entry in a existing directory.
     181 *
     182 * @param mnode         Pointer to the directory node.
     183 * @param d_name        Name of the new directory entry.
     184 * @param d_inum        index of the inode that will be pointed by the new dentry.
     185 *
     186 * @return              EOK on success or a negative error code.
     187 */
    158188int
    159189insert_dentry(struct mfs_node *mnode, const char *d_name, fs_index_t d_inum)
Note: See TracChangeset for help on using the changeset viewer.