GNU Info

Info Node: (libext2fs.info)Creating and expanding directories

(libext2fs.info)Creating and expanding directories


Next: Creating and removing directory entries Prev: Iterating over a directory Up: Directory functions
Enter node , (file) or (file)node

Creating and expanding directories
----------------------------------

 - Function: errcode_t ext2fs_mkdir (ext2_filsys FS, ext2_ino_t PARENT,
          ext2_ino_t INUM, const char *NAME)
     This function creates a new directory.  If INUM is zero, then a
     new inode will be allocated; otherwise, the directory will be
     created in the inode specified by INUM.  If NAME specifies the
     name of the new directory; if it is non-NULL, then the new
     directory will be linked into the parent directory PARENT.

 - Function: errcode_t ext2fs_expand_dir (ext2_filsys FS, ext2_ino_t
          DIR)
     This function adds a new empty directory block and appends it to
     the directory DIR.  This allows functions such as `ext2fs_link' to
     add new directory entries to a directory which is full.



automatically generated by info2www version 1.2.2.9