The create Inode Operation
Creating a normal file is done using the "create" inode-operation, and in
STAMFS, with stamfs_iop_create():
- Create a new inode for the file (using the previously encountered
stamfs_inode_create_ino() function).
- Add it to children list the given directory, and instantiate the file's
dentry.
- If the above failed, reduce the new inode's link count and iput() it -
seeing that it has 0 links, the VFS will delete it (will invoke the
super-block's "delete_inode" operation).
Originally written by
guy keren