History log of /external/e2fsprogs/misc/create_inode.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6686ee96494413b48aa3dd70b5db533cbb7e4852 30-Nov-2016 Adrien Schildknecht <adriens@google.com> misc: add callbacks to populate_fs

This patch let the caller of populate_fs registers a set of callbacks that
will be called everytime an inode is created.

Test: mm

Change-Id: I28ae100c4cc81223192860c29366cbac3077fe21
/external/e2fsprogs/misc/create_inode.h
25f291c9b32d8017e6969c72a75e37d354c0570b 13-Jul-2015 Theodore Ts'o <tytso@mit.edu> Eliminate unused parameter warnings from Android build

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/create_inode.h
0c49965fb69e7a8fac7043bea186323aa1c2197a 19-Sep-2014 Theodore Ts'o <tytso@mit.edu> create_inode: don't indiscriminately #include "nls-enable.h"

The create_inode.h header file is pulled in by debugfs, which is not
internationalized. It had no business pulling in nls-enable.h; that
header file should only be used in specific .c files that support
internationalization.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/create_inode.h
b99888a070656cb81994d2e1e08d946597b1fe43 12-Mar-2014 Darrick J. Wong <darrick.wong@oracle.com> create_inode: handle hard link inum mappings per populate_fs invocation

When calling populate_fs, the map for hardlink detection is not
cleaned up between populate_fs invocations, which could lead to
unexpected results if anyone calls populate_fs twice in the same
client program). This doesn't happen right now, but we might as well
clean it up.

The detctor fails if the external directory crosses mountpoints,
so fix that too.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/create_inode.h
a3111e80b82d28e2ad5c8ad74bc4acecf559d1d4 11-Mar-2014 Darrick J. Wong <darrick.wong@oracle.com> create_inode: move debugfs internal state back to debugfs

Since create_inode.c is shared between debugfs and mke2fs, don't
spread debugfs internal state into mke2fs.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/create_inode.h
8f8d8a575be5ee7c01438c98ff001ce0bc054115 12-Mar-2014 Darrick J. Wong <darrick.wong@oracle.com> create_inode: minor cleanups

Fix a couple of small style issues in the create_inode files.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/misc/create_inode.h
f84894bc047898559f314531ed469c52d79ad7f2 06-Mar-2014 Robert Yang <liezhi.yang@windriver.com> misc/create_inode.c: handle hardlinks

Create the inode and save the native inode number when we meet the hard
link (st_nlink > 1) at the first time, use ext2fs_link() to link the
name to the target inode number when we meet the same native inode
number again.

This algorithm is referred this from the genext2fs.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/create_inode.h
0d4deba22e2aa95ad958b44972dc933fd0ebbc59 06-Mar-2014 Robert Yang <liezhi.yang@windriver.com> mke2fs: add the ability to copy files from a given directory

We will add a -d option which will be used for adding the files from a
given directory to the filesystem, it is similiar to genext2fs, but
genext2fs doesn't fully support ext4.

* We already have the basic operations in debugfs:
- Copy regular file
- Create directory
- Create symlink
- Create special file

We will move these operations into create_inode.h and create_inode.c,
then let both mke2fs and debugfs use them.

* What we need to do are:
- Copy the given directory recursively, this will be done by the
populate_fs()
- Set the owner, mode and other informations
- Handle the hard links

TODO:
- The libext2fs can't create the socket file (S_IFSOCK), do we have a
plan to support it ?

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/misc/create_inode.h