@@ -50,6 +50,8 @@ extern "C" {
5050#include <ext4_errno.h>
5151#include <ext4_oflags.h>
5252#include <ext4_debug.h>
53+ #include <ext4_inode.h>
54+ #include <ext4_fs.h>
5355
5456#include <ext4_blockdev.h>
5557
@@ -123,6 +125,13 @@ int ext4_mount(struct ext4_blockdev *bd,
123125 const char * mount_point ,
124126 bool read_only );
125127
128+ /**@brief Umount operation.
129+ *
130+ * @param mount_point Mount point.
131+ *
132+ * @return Standard error code */
133+ int ext4_umount_mp (struct ext4_mountpoint * mp );
134+
126135/**@brief Umount operation.
127136 *
128137 * @param mount_pount Mount point.
@@ -140,23 +149,23 @@ int ext4_umount(const char *mount_point);
140149 *
141150 * ext4_journal_stop("/");
142151 * ext4_umount("/");
143- * @param mount_pount Mount point.
152+ * @param mount_point Mount point.
144153 *
145154 * @return Standard error code. */
146155int ext4_journal_start (const char * mount_point );
147156
148157/**@brief Stops journaling. Journaling start/stop functions are transparent
149158 * and might be used on filesystems without journaling support.
150159 *
151- * @param mount_pount Mount point name.
160+ * @param mount_point Mount point name.
152161 *
153162 * @return Standard error code. */
154163int ext4_journal_stop (const char * mount_point );
155164
156165/**@brief Journal recovery.
157166 * @warning Must be called after @ref ext4_mount.
158167 *
159- * @param mount_pount Mount point.
168+ * @param mount_point Mount point.
160169 *
161170 * @return Standard error code. */
162171int ext4_recover (const char * mount_point );
@@ -178,7 +187,7 @@ struct ext4_mount_stats {
178187
179188/**@brief Get file mount point stats.
180189 *
181- * @param mount_pount Mount point.
190+ * @param mount_point Mount point.
182191 * @param stats Filesystem stats.
183192 *
184193 * @return Standard error code. */
@@ -187,7 +196,7 @@ int ext4_mount_point_stats(const char *mount_point,
187196
188197/**@brief Setup OS lock routines.
189198 *
190- * @param mount_pount Mount point.
199+ * @param mount_point Mount point.
191200 * @param locks Lock and unlock functions
192201 *
193202 * @return Standard error code. */
@@ -196,7 +205,7 @@ int ext4_mount_setup_locks(const char *mount_point,
196205
197206/**@brief Acquire the filesystem superblock pointer of a mp.
198207 *
199- * @param mount_pount Mount point.
208+ * @param mount_point Mount point.
200209 * @param sb Superblock handle
201210 *
202211 * @return Standard error code. */
@@ -233,7 +242,7 @@ int ext4_get_sblock(const char *mount_point, struct ext4_sblock **sb);
233242 * Write back mode is useful when you want to create a lot of empty
234243 * files/directories.
235244 *
236- * @param mount_pount Mount point.
245+ * @param path Mount point.
237246 * @param on Enable/disable cache writeback mode.
238247 *
239248 * @return Standard error code. */
@@ -242,7 +251,7 @@ int ext4_cache_write_back(const char *path, bool on);
242251
243252/**@brief Force cache flush.
244253 *
245- * @param mount_pount Mount point.
254+ * @param path Mount point.
246255 *
247256 * @return Standard error code. */
248257int ext4_cache_flush (const char * path );
@@ -390,6 +399,9 @@ int ext4_raw_inode_fill(const char *path, uint32_t *ret_ino,
390399 * @return Standard error code.*/
391400int ext4_inode_exist (const char * path , int type );
392401
402+ void * ext4_get_inode_ref (const char * path , struct ext4_inode_ref * ref );
403+ int ext4_put_inode_ref (struct ext4_mountpoint * mp , struct ext4_inode_ref * ref );
404+
393405/**@brief Change file/directory/link mode bits.
394406 *
395407 * @param path Path to file/dir/link.
@@ -517,8 +529,8 @@ int ext4_setxattr(const char *path, const char *name, size_t name_len,
517529 * @param path Path to file/directory.
518530 * @param name Name of the entry to get.
519531 * @param name_len Length of @name in bytes.
520- * @param data Data of the entry to get.
521- * @param data_size Size of data to get.
532+ * @param buf Data of the entry to get.
533+ * @param buf_size Size of data to get.
522534 *
523535 * @return Standard error code.*/
524536int ext4_getxattr (const char * path , const char * name , size_t name_len ,
0 commit comments