platform/upstream/e2fsprogs.git
9 years agomke2fs.8.in: update the manual for the -d option
Robert Yang [Thu, 6 Mar 2014 16:00:25 +0000 (11:00 -0500)]
mke2fs.8.in: update the manual for the -d option

Update the manual for the -d option

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>
9 years agodebugfs: use the functions in misc/create_inode.c
Robert Yang [Thu, 6 Mar 2014 16:00:25 +0000 (11:00 -0500)]
debugfs: use the functions in misc/create_inode.c

* Use the functions in misc/create_inode.c, and remove the duplicated
  code.

* The CREATE_INODE_DEPS in the debugfs/Makefile.in is used for recording
  create_inode.o's depends which is from misc/Makefile.in, we have to
  recompile create_inode.o because we need it to print more messages when
  it is used by debugfs, just like we recompile e2freefrag.o, but it seems
  that the e2freefrag.o's depends in debugfs/Makefile.in is incorrect, it
  would not rebuild when its depends (e.g.: lib/config.h) is changed,
  which would cause unexpected errors. Make duplicated code in
  debugfs/Makefile.in and misc/Makefile.in is not a good idea, maybe we'd
  better define CREATE_INODE_DEPS in the top Makefile, I'd like to send
  another patch and fix the e2freefrag if you are fine with 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>
9 years agomisc/create_inode.c: handle hardlinks
Robert Yang [Thu, 6 Mar 2014 16:00:25 +0000 (11:00 -0500)]
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>
9 years agomke2fs.c: add an option: -d root-directory
Robert Yang [Thu, 6 Mar 2014 16:00:25 +0000 (11:00 -0500)]
mke2fs.c: add an option: -d root-directory

This option is used for adding the files from a given directory (the
root-directory) to the filesystem, it is similiar to genext2fs, but
genext2fs doesn't fully support ext4.

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>
9 years agomisc/create_inode.c: set owner/mode/time for the inode
Robert Yang [Thu, 6 Mar 2014 16:00:24 +0000 (11:00 -0500)]
misc/create_inode.c: set owner/mode/time for the inode

Set the uid, gid, mode and time for inode.

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>
9 years agomisc/create_inode.c: create directory
Robert Yang [Thu, 6 Mar 2014 16:00:24 +0000 (11:00 -0500)]
misc/create_inode.c: create directory

The do_mkdir_internal() is used for making dir on the target fs, most of
the code are from debugfs/debugfs.c, the debugfs/debugfs.c will be
modified to use this function.

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>
9 years agomisc/create_inode.c: copy regular file
Robert Yang [Thu, 6 Mar 2014 16:00:24 +0000 (11:00 -0500)]
misc/create_inode.c: copy regular file

The do_write_internal() is used for copying file from native fs to
target, most of the code are from debugfs/debugfs.c, the
debugfs/debugfs.c will be modified to use this function.

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>
9 years agomisc/create_inode.c: create symlink
Robert Yang [Thu, 6 Mar 2014 16:00:24 +0000 (11:00 -0500)]
misc/create_inode.c: create symlink

The do_symlink_internal() is used for creating symlinks, most of the
code are from debugfs/debugfs.c, the debugfs/debugfs.c will be modified
to use this function.

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>
9 years agomisc/create_inode.c: create special file
Robert Yang [Thu, 6 Mar 2014 16:00:24 +0000 (11:00 -0500)]
misc/create_inode.c: create special file

The do_mknod_internal() is used for creating special file which is
block, character and fifo, most of the code are from debugfs/debugfs.c,
the debugfs/debugfs.c will be modified to use this function.

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>
9 years agomisc/create_inode.c: copy files recursively
Robert Yang [Thu, 6 Mar 2014 16:00:24 +0000 (11:00 -0500)]
misc/create_inode.c: copy files recursively

Use opendir() and readdir() to read the native directory, then use
lstat() to identify the file type and call the corresponding function to
add the file to the filesystem, call the populate_fs() recursively if it
is a directory.

NOTE: the libext2fs can't create the socket file.

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>
9 years agomke2fs: add the ability to copy files from a given directory
Robert Yang [Thu, 6 Mar 2014 16:00:23 +0000 (11:00 -0500)]
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>
9 years agopackaging: update 1.42.11 and fix group tag submit/tizen/20140805.025917
Chanho Park [Tue, 5 Aug 2014 02:48:30 +0000 (11:48 +0900)]
packaging: update 1.42.11 and fix group tag

Change-Id: I75e18bb295b61630afcda6cb4514d873387cc81b
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
9 years agopackaging: eliminate removing quata files
Chanho Park [Tue, 8 Jul 2014 14:17:23 +0000 (23:17 +0900)]
packaging: eliminate removing quata files

Change-Id: I368c835deb2d17421d4e558ea50e1a94d4318206
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
9 years agoMoved RELEASE-NOTES and README to doc subpackage
Jacek Bukarewicz [Tue, 10 Sep 2013 13:52:23 +0000 (15:52 +0200)]
Moved RELEASE-NOTES and README to doc subpackage

Change-Id: I25702f4d04b1a642335a3d3c5c905416106a1fb1
Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
9 years agoresetting manifest requested domain to floor
Alexandru Cornea [Fri, 28 Jun 2013 18:40:44 +0000 (21:40 +0300)]
resetting manifest requested domain to floor

9 years agoset %license correctly
Anas Nashif [Sat, 11 May 2013 06:00:01 +0000 (02:00 -0400)]
set %license correctly

9 years agoSet license using %license
Anas Nashif [Sat, 11 May 2013 05:39:47 +0000 (01:39 -0400)]
Set license using %license

9 years agodelete .a files
Anas Nashif [Sat, 22 Dec 2012 04:46:21 +0000 (20:46 -0800)]
delete .a files

9 years agoUpdate to 1.42.6
Anas Nashif [Sat, 22 Dec 2012 04:43:55 +0000 (20:43 -0800)]
Update to 1.42.6

9 years agoadd packaging
Anas Nashif [Fri, 14 Dec 2012 21:27:03 +0000 (13:27 -0800)]
add packaging

9 years agodo not ignore spec
Anas Nashif [Mon, 5 Nov 2012 01:14:56 +0000 (17:14 -0800)]
do not ignore spec

9 years agodo not ignore spec
Anas Nashif [Mon, 5 Nov 2012 01:14:40 +0000 (17:14 -0800)]
do not ignore spec

9 years agocleanup spec
Anas Nashif [Mon, 5 Nov 2012 01:09:52 +0000 (17:09 -0800)]
cleanup spec

9 years agoadd packaging
Anas Nashif [Sun, 4 Nov 2012 20:39:41 +0000 (12:39 -0800)]
add packaging

9 years agoImported Upstream version 1.42.11 upstream/1.42.11
Chanho Park [Tue, 5 Aug 2014 02:52:45 +0000 (11:52 +0900)]
Imported Upstream version 1.42.11

9 years agoImported Upstream version 1.42.10 upstream/1.42.10
Chanho Park [Tue, 8 Jul 2014 10:34:47 +0000 (19:34 +0900)]
Imported Upstream version 1.42.10

11 years agoImported Upstream version 1.42.6 upstream/1.42.6
Anas Nashif [Mon, 5 Nov 2012 01:05:14 +0000 (17:05 -0800)]
Imported Upstream version 1.42.6

11 years agoImported Upstream version 1.42.4 upstream/1.42.4
Anas Nashif [Sun, 4 Nov 2012 20:39:39 +0000 (12:39 -0800)]
Imported Upstream version 1.42.4