OSDN Git Service

android-x86/system-extras.git
10 years agoam 2dd33a8f: Merge "f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)"
JP Abgrall [Wed, 25 Jun 2014 15:05:37 +0000 (15:05 +0000)]
am 2dd33a8f: Merge "f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)"

* commit '2dd33a8f11b320fc5decd5de57730ab4a1d3aaa4':
  f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)

10 years agoam a5dc6a8e: Merge "f2fs utils: set correct dependency on dynamic libf2fs"
JP Abgrall [Wed, 25 Jun 2014 15:02:13 +0000 (15:02 +0000)]
am a5dc6a8e: Merge "f2fs utils: set correct dependency on dynamic libf2fs"

* commit 'a5dc6a8e3ca30e815d59cab72e7b0abf9a147e30':
  f2fs utils: set correct dependency on dynamic libf2fs

10 years agoam d2f07839: Merge topic \'f2fs\'
JP Abgrall [Wed, 25 Jun 2014 15:02:12 +0000 (15:02 +0000)]
am d2f07839: Merge topic \'f2fs\'

* commit 'd2f07839cb85ad5b78665892deb12d2d353daab0':
  f2fs utils: Add mkf2fsuserimg.sh and make_f2fs
  f2fs_utils: support new f2fs-tools f2fs_finalize_device API.
  f2fs_utils: provide sparse io and dynamic load.

10 years agoMerge "f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)"
JP Abgrall [Wed, 25 Jun 2014 14:57:30 +0000 (14:57 +0000)]
Merge "f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)"

10 years agof2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)
JP Abgrall [Wed, 25 Jun 2014 14:56:32 +0000 (07:56 -0700)]
f2fs_utils: make Mac builds happy (copy out mkf2fsuserimg.sh)

Change-Id: I8f911f2d084aee08f3f53da984d5c3d2a252cb05
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoMerge topic 'f2fs'
JP Abgrall [Wed, 25 Jun 2014 14:52:38 +0000 (14:52 +0000)]
Merge topic 'f2fs'

* changes:
  f2fs utils: Add mkf2fsuserimg.sh and make_f2fs
  f2fs_utils: support new f2fs-tools f2fs_finalize_device API.
  f2fs_utils: provide sparse io and dynamic load.

10 years agof2fs utils: Add mkf2fsuserimg.sh and make_f2fs
JP Abgrall [Mon, 16 Jun 2014 18:08:45 +0000 (11:08 -0700)]
f2fs utils: Add mkf2fsuserimg.sh and make_f2fs

This is used to generate empty userdata.img files.
Normally, "fastboot format userdata" should be used.

Caveats:
 - It only builds an empty sparse image.
 - windows/mac unsupported

Change-Id: I5fbd9724fdd3f4513e7c91f123fc5fffcb475012
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agof2fs_utils: support new f2fs-tools f2fs_finalize_device API.
JP Abgrall [Fri, 13 Jun 2014 23:10:51 +0000 (16:10 -0700)]
f2fs_utils: support new f2fs-tools f2fs_finalize_device API.

Change-Id: Id5a6a7edc7871a6c0eb452ad7136732b9a730e6a
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agof2fs_utils: provide sparse io and dynamic load.
JP Abgrall [Thu, 12 Jun 2014 06:46:42 +0000 (23:46 -0700)]
f2fs_utils: provide sparse io and dynamic load.

This uses
  external/f2fs-tools LGPL v2.1

It provides low-level IO functions that f2fs-tools/mkfs expects
for writing to the media. In this case we use the sparse lib.

Change-Id: I8d141a0d4d14df9fe84d3b131484e9696fcd8870
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoMerge "f2fs utils: set correct dependency on dynamic libf2fs"
JP Abgrall [Wed, 25 Jun 2014 14:52:40 +0000 (14:52 +0000)]
Merge "f2fs utils: set correct dependency on dynamic libf2fs"

10 years agof2fs utils: set correct dependency on dynamic libf2fs
JP Abgrall [Wed, 18 Jun 2014 18:55:28 +0000 (11:55 -0700)]
f2fs utils: set correct dependency on dynamic libf2fs

Don't link against it anymore.
Just let dlopen() deal with it correctly.
The "config" struct will come from the f2fs_ioutils
and libf2fs_fmt_host expects to have it global, so let
link with -rdynamic and let dlopen() resolve it.

Be more aggressive with linux-only builds.

Bug: 15717498
Change-Id: I03ebebed1fc652170b44f809df42c1f8595216eb
Signed-off-by: JP Abgrall <jpa@google.com>
10 years agoam 6aa75175: Merge "Create 32 bit and 64 bit versions of exes."
Christopher Ferris [Tue, 24 Jun 2014 21:39:17 +0000 (21:39 +0000)]
am 6aa75175: Merge "Create 32 bit and 64 bit versions of exes."

* commit '6aa751752e36c570415919990d1ca35d564f09b9':
  Create 32 bit and 64 bit versions of exes.

10 years agoMerge "Create 32 bit and 64 bit versions of exes."
Christopher Ferris [Tue, 24 Jun 2014 21:29:20 +0000 (21:29 +0000)]
Merge "Create 32 bit and 64 bit versions of exes."

10 years agoCreate 32 bit and 64 bit versions of exes.
Christopher Ferris [Tue, 24 Jun 2014 21:27:16 +0000 (14:27 -0700)]
Create 32 bit and 64 bit versions of exes.

Change-Id: Ifc639b7ed97c75faf0ce52475e7c3ec0dc2dd9b9

10 years agoam 0795553f: Merge "Remove a useless so-called test for arc4random."
Elliott Hughes [Sat, 21 Jun 2014 09:47:22 +0000 (09:47 +0000)]
am 0795553f: Merge "Remove a useless so-called test for arc4random."

* commit '0795553f0c913f3a9086aff42b9ee483c09cf18e':
  Remove a useless so-called test for arc4random.

10 years agoMerge "Remove a useless so-called test for arc4random."
Elliott Hughes [Sat, 21 Jun 2014 07:24:56 +0000 (07:24 +0000)]
Merge "Remove a useless so-called test for arc4random."

10 years agoRemove a useless so-called test for arc4random.
Elliott Hughes [Sat, 21 Jun 2014 05:34:23 +0000 (22:34 -0700)]
Remove a useless so-called test for arc4random.

Bug: 14499627
Change-Id: I01308d022da007f814f3fd8927341dfb3bf7e4cd

10 years agoam 53ea786b: Merge changes Ic686b4cb,Ie4b6c7ef
Colin Cross [Tue, 17 Jun 2014 23:07:29 +0000 (23:07 +0000)]
am 53ea786b: Merge changes Ic686b4cb,Ie4b6c7ef

* commit '53ea786b38f0e394b0b57e5deb0f8f262cea7819':
  procrank: support >4GB of memory from 32-bit procrank
  libpagemap: support 64-bit kernel from 32-bit libpagemap

10 years agoMerge changes Ic686b4cb,Ie4b6c7ef
Colin Cross [Tue, 17 Jun 2014 22:58:58 +0000 (22:58 +0000)]
Merge changes Ic686b4cb,Ie4b6c7ef

* changes:
  procrank: support >4GB of memory from 32-bit procrank
  libpagemap: support 64-bit kernel from 32-bit libpagemap

10 years agoprocrank: support >4GB of memory from 32-bit procrank
Colin Cross [Tue, 17 Jun 2014 21:38:34 +0000 (14:38 -0700)]
procrank: support >4GB of memory from 32-bit procrank

Use uint64_t for sizes.

Change-Id: Ic686b4cbf4406aec1e9b01810924488bff63722e

10 years agolibpagemap: support 64-bit kernel from 32-bit libpagemap
Colin Cross [Tue, 17 Jun 2014 21:37:06 +0000 (14:37 -0700)]
libpagemap: support 64-bit kernel from 32-bit libpagemap

Use uint64_t and lseek64 to handle 64-bit virtual addresses
when libpagemap is compiled as a 32-bit library.

Change-Id: Ie4b6c7ef05aac604011f3ee28b059d9dfcd63edb

10 years agoam 1adb147c: Merge "fix libpagemap for x86_64"
Colin Cross [Tue, 17 Jun 2014 19:46:27 +0000 (19:46 +0000)]
am 1adb147c: Merge "fix libpagemap for x86_64"

* commit '1adb147ca6795eb67c298f60b2e8d7732bc10d6d':
  fix libpagemap for x86_64

10 years agoMerge "fix libpagemap for x86_64"
Colin Cross [Tue, 17 Jun 2014 19:37:16 +0000 (19:37 +0000)]
Merge "fix libpagemap for x86_64"

10 years agofix libpagemap for x86_64
Colin Cross [Tue, 17 Jun 2014 01:52:47 +0000 (18:52 -0700)]
fix libpagemap for x86_64

libpagemap was storing a virtual pfn in an int, which works on arm64
with 39 bits of virtual address space but fails on x86_64.  Use an
unsigned long instead.

Fixes errors when running procrank on x86_64:
warning: could not read usage for 1

Change-Id: I171c8ee49faa51accf3c1bb69059d549aee04979

10 years agoam 9c82554e: Merge "Ignore wipe operation on non-block devices."
David 'Digit' Turner [Mon, 16 Jun 2014 18:02:59 +0000 (18:02 +0000)]
am 9c82554e: Merge "Ignore wipe operation on non-block devices."

* commit '9c82554ee3284b57df9d8dfdf11467066ab0877a':
  Ignore wipe operation on non-block devices.

10 years agoMerge "Ignore wipe operation on non-block devices."
David 'Digit' Turner [Mon, 16 Jun 2014 17:49:36 +0000 (17:49 +0000)]
Merge "Ignore wipe operation on non-block devices."

10 years agoIgnore wipe operation on non-block devices.
David 'Digit' Turner [Thu, 12 Jun 2014 18:54:50 +0000 (20:54 +0200)]
Ignore wipe operation on non-block devices.

The implementation of make_ext4fs() calls make_ext4fs_internal() by
forcing the |wipe| parameter to true, which is problematic when the
library is used within the emulator (the wipe operation will always
fail on non-Linux platforms).

This patch does the following:

- Add a 'is_block_device_fd()' function to check that a file descriptor
  points to a real block device.

- Modify the implementation of wipe_block_device() uses it to return
  silently when trying to wipe a non-block-device file.

- Add a WIPE_IS_SUPPORTED flag in wipe.h that indicates whether
  block device wiping is supported on the current platform
  (for now, this is only the case on Linux).

BUG=NONE

Change-Id: I62b62b7c3e99b465c3b876154231e7c2fe541b23

10 years agoam 13e929c1: Merge "Don\'t set LOCAL_MODULE_PATH for native test."
Ying Wang [Mon, 9 Jun 2014 22:56:35 +0000 (22:56 +0000)]
am 13e929c1: Merge "Don\'t set LOCAL_MODULE_PATH for native test."

* commit '13e929c11c07e5cbae5db0d5887845ec6c6d08a4':
  Don't set LOCAL_MODULE_PATH for native test.

10 years agoMerge "Don't set LOCAL_MODULE_PATH for native test."
Ying Wang [Mon, 9 Jun 2014 22:52:33 +0000 (22:52 +0000)]
Merge "Don't set LOCAL_MODULE_PATH for native test."

10 years agoDon't set LOCAL_MODULE_PATH for native test.
Ying Wang [Mon, 9 Jun 2014 22:22:47 +0000 (15:22 -0700)]
Don't set LOCAL_MODULE_PATH for native test.

The build system will set it up automatically.

Change-Id: I528aa6c296f2ca8ffe8c74beca2cd49117b229e3

10 years agoam b733b3c7: Merge "The situation len = 0 and absolute = false need to be handled"
Colin Cross [Fri, 16 May 2014 00:13:38 +0000 (00:13 +0000)]
am b733b3c7: Merge "The situation len = 0 and absolute = false need to be handled"

* commit 'b733b3c7b0601326801d43f548aa139ca0be721e':
  The situation len = 0 and absolute = false need to be handled

10 years agoMerge "The situation len = 0 and absolute = false need to be handled"
Colin Cross [Fri, 16 May 2014 00:07:06 +0000 (00:07 +0000)]
Merge "The situation len = 0 and absolute = false need to be handled"

10 years agoam cb8ac609: Merge "libpagemap: handle zero length memory regions"
Colin Cross [Thu, 15 May 2014 01:35:06 +0000 (01:35 +0000)]
am cb8ac609: Merge "libpagemap: handle zero length memory regions"

* commit 'cb8ac609ee27a9e5e6e13bc30447ed3a13964ccd':
  libpagemap: handle zero length memory regions

10 years agoMerge "libpagemap: handle zero length memory regions"
Colin Cross [Thu, 15 May 2014 01:29:02 +0000 (01:29 +0000)]
Merge "libpagemap: handle zero length memory regions"

10 years agolibpagemap: handle zero length memory regions
Colin Cross [Thu, 15 May 2014 01:20:38 +0000 (18:20 -0700)]
libpagemap: handle zero length memory regions

/proc/pid/maps may report a zero-length memory region for a 4kB
PROT_GROWSDOWN region because it subtracts 4kB for the guard page.
Return 0 instead of -1 when this occurs, and set range_out to NULL
and len to 0.  All existing callers of pm_process_pagemap_range
will not dereference range_out if len is 0.

Bug: 14683277
Change-Id: If405651ad034dda780b93fab2dc616e177a0b917

10 years agoam 676e964d: Merge "Remove a test for dead code."
Elliott Hughes [Wed, 14 May 2014 01:29:24 +0000 (01:29 +0000)]
am 676e964d: Merge "Remove a test for dead code."

* commit '676e964d0be749b9899511f5f7212c3765c8f38a':
  Remove a test for dead code.

10 years agoMerge "Remove a test for dead code."
Elliott Hughes [Wed, 14 May 2014 01:19:18 +0000 (01:19 +0000)]
Merge "Remove a test for dead code."

10 years agoRemove a test for dead code.
Elliott Hughes [Wed, 14 May 2014 01:17:25 +0000 (18:17 -0700)]
Remove a test for dead code.

Bug: 14903517
Change-Id: I139ae922c6c9468606d3145f0c74361ed789d949

10 years agoam 63a3cc14: Merge "Add {BEGIN,END}_DECLS to header file."
Torne (Richard Coles) [Tue, 6 May 2014 10:40:43 +0000 (10:40 +0000)]
am 63a3cc14: Merge "Add {BEGIN,END}_DECLS to header file."

* commit '63a3cc1473fbf0c012f1d2fc0396f11d932084d7':
  Add {BEGIN,END}_DECLS to header file.

10 years agoMerge "Add {BEGIN,END}_DECLS to header file."
Torne (Richard Coles) [Tue, 6 May 2014 10:35:59 +0000 (10:35 +0000)]
Merge "Add {BEGIN,END}_DECLS to header file."

10 years agoAdd {BEGIN,END}_DECLS to header file.
Torne (Richard Coles) [Tue, 6 May 2014 10:31:42 +0000 (11:31 +0100)]
Add {BEGIN,END}_DECLS to header file.

Enable this header to be cleanly included in C++ code.

Change-Id: Ie4ae60629661237ce07b49b17802f01bf95552d8

10 years agoThe situation len = 0 and absolute = false need to be handled
Benoit Fradin [Wed, 28 Aug 2013 12:44:32 +0000 (14:44 +0200)]
The situation len = 0 and absolute = false need to be handled

Add a return case for len == 0 and absolute == false

Change-Id: Ia36bd67ced6abbe7234eb7e485c1a2d8bd928ffe
Signed-off-by: Benoit Fradin <benoit.fradin@intel.com>
10 years agoam 79950456: Merge "Label lost+found directories with SELinux security contexts."
Nick Kralevich [Sun, 27 Apr 2014 03:22:04 +0000 (03:22 +0000)]
am 79950456: Merge "Label lost+found directories with SELinux security contexts."

* commit '79950456925b801273cd93d03145aba8477a9eb4':
  Label lost+found directories with SELinux security contexts.

10 years agoMerge "Label lost+found directories with SELinux security contexts."
Nick Kralevich [Sun, 27 Apr 2014 01:05:28 +0000 (01:05 +0000)]
Merge "Label lost+found directories with SELinux security contexts."

10 years agoLabel lost+found directories with SELinux security contexts.
Stephen Smalley [Fri, 25 Apr 2014 18:57:55 +0000 (14:57 -0400)]
Label lost+found directories with SELinux security contexts.

When an asec image is generated, the lost+found directory has no
security.selinux attribute set and thus shows up as unlabeled.
We already handle this correctly when building images from existing
directories with files, so we just need to do it here as well when
generating an otherwise empty initial image.

Change-Id: I6d449dcc67a5cbc2101718e34ea0e184936d7f0e
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
10 years agoam 9a213e07: Ignore VmFlags: and other unrecognized fields.
Jeff Brown [Sat, 19 Apr 2014 00:02:10 +0000 (00:02 +0000)]
am 9a213e07: Ignore VmFlags: and other unrecognized fields.

* commit '9a213e07f1e1f083bc56dbe707e0ec2af3990b43':
  Ignore VmFlags: and other unrecognized fields.

10 years agoIgnore VmFlags: and other unrecognized fields.
Jeff Brown [Fri, 18 Apr 2014 23:47:20 +0000 (16:47 -0700)]
Ignore VmFlags: and other unrecognized fields.

Fixed a bug that causes showmap to skip items when /proc/pid/smap
included any unrecognized fields.

Change-Id: Ic648d4272d0269ff226047cf2d3271e9e63bb302

10 years agoMerge "directiotest: 64 bit compile issue"
Mark Salyzyn [Thu, 17 Apr 2014 14:12:48 +0000 (14:12 +0000)]
Merge "directiotest: 64 bit compile issue"

10 years agodirectiotest: 64 bit compile issue
Mark Salyzyn [Wed, 16 Apr 2014 23:13:53 +0000 (16:13 -0700)]
directiotest: 64 bit compile issue

Change-Id: Iaef4f2aebfc1258594fca64615cd52758ac23a75

10 years agoMerge "qtaguid test: 64-bit compile issues"
Mark Salyzyn [Thu, 20 Mar 2014 23:22:29 +0000 (23:22 +0000)]
Merge "qtaguid test: 64-bit compile issues"

10 years agoqtaguid test: 64-bit compile issues
Mark Salyzyn [Thu, 20 Mar 2014 20:24:32 +0000 (13:24 -0700)]
qtaguid test: 64-bit compile issues

Change-Id: If3d83ccc4a50eae503f15a9de948b8c21641d8de

10 years agoMerge "micro_bench: 64 bit compile issues"
Mark Salyzyn [Thu, 20 Mar 2014 22:27:58 +0000 (22:27 +0000)]
Merge "micro_bench: 64 bit compile issues"

10 years agomicro_bench: 64 bit compile issues
Mark Salyzyn [Thu, 20 Mar 2014 19:46:42 +0000 (12:46 -0700)]
micro_bench: 64 bit compile issues

- use %zu for size_t operands
- suppress unused argument warning messages

Change-Id: Ib39b8763414320d9e3a29408bc1b396ddb376293

10 years agoMerge "librank: 64-bit compile issues"
Mark Salyzyn [Mon, 17 Mar 2014 22:44:24 +0000 (22:44 +0000)]
Merge "librank: 64-bit compile issues"

10 years agolibrank: 64-bit compile issues
Mark Salyzyn [Mon, 17 Mar 2014 15:58:40 +0000 (08:58 -0700)]
librank: 64-bit compile issues

- size_t format and comparisons

Change-Id: I00ad92ecf2566c7aa02b145e1b8679164b2c9f8a

10 years agoMerge "ksmutils: 64 bit compile issues"
Mark Salyzyn [Fri, 14 Mar 2014 20:53:21 +0000 (20:53 +0000)]
Merge "ksmutils: 64 bit compile issues"

10 years agoksmutils: 64 bit compile issues
Mark Salyzyn [Fri, 14 Mar 2014 18:15:07 +0000 (11:15 -0700)]
ksmutils: 64 bit compile issues

Change-Id: I9c4f141b6c436611a3a85e692b4fb47104d4f783

10 years agoMerge "Remove test_thread_max."
Elliott Hughes [Tue, 11 Mar 2014 20:05:34 +0000 (20:05 +0000)]
Merge "Remove test_thread_max."

10 years agoRemove test_thread_max.
Elliott Hughes [Tue, 11 Mar 2014 20:04:27 +0000 (13:04 -0700)]
Remove test_thread_max.

Not actually a useful test, and we already test creating threads, including
error conditions in bionic as part of CTS.

Change-Id: If478b1e389c5cf65a9827da7f57efd696afc6523

10 years agoMerge "Remove test_pthread_getcpuclockid."
Elliott Hughes [Tue, 11 Mar 2014 20:00:54 +0000 (20:00 +0000)]
Merge "Remove test_pthread_getcpuclockid."

10 years agoRemove test_pthread_getcpuclockid.
Elliott Hughes [Tue, 11 Mar 2014 20:00:18 +0000 (13:00 -0700)]
Remove test_pthread_getcpuclockid.

Bionic already has a better test that's part of CTS.

Change-Id: I2e6bfb795d5fe1393432673a082338d85c083444

10 years agoMerge "Remove obsolete system(3) test."
Elliott Hughes [Tue, 11 Mar 2014 19:58:32 +0000 (19:58 +0000)]
Merge "Remove obsolete system(3) test."

10 years agoRemove obsolete system(3) test.
Elliott Hughes [Tue, 11 Mar 2014 19:55:31 +0000 (12:55 -0700)]
Remove obsolete system(3) test.

Change-Id: Ife11d1d526b92062090da231853f65329c0c8962

10 years agoMerge "Remove obsolete benchmarks."
Elliott Hughes [Tue, 11 Mar 2014 19:48:30 +0000 (19:48 +0000)]
Merge "Remove obsolete benchmarks."

10 years agoRemove obsolete benchmarks.
Elliott Hughes [Tue, 11 Mar 2014 18:17:30 +0000 (11:17 -0700)]
Remove obsolete benchmarks.

bionic now has all of these.

Change-Id: I0b65f019b88bc9ac7d33bd424361497320c66b7b

10 years agoMerge "Remove <time.h> tests."
Elliott Hughes [Tue, 11 Mar 2014 01:41:15 +0000 (01:41 +0000)]
Merge "Remove <time.h> tests."

10 years agoRemove <time.h> tests.
Elliott Hughes [Tue, 11 Mar 2014 01:20:02 +0000 (18:20 -0700)]
Remove <time.h> tests.

I've turned the strftime and strptime tests into CTS tests, and it's
not obvious what the other test was usefully testing.

Change-Id: I9d0ba08c6f2e2170e902e4a2aa379dd7289bdf6c

10 years agoMerge "Remove bench_locks, which is a subset of bench_pthread."
Elliott Hughes [Tue, 11 Mar 2014 01:26:12 +0000 (01:26 +0000)]
Merge "Remove bench_locks, which is a subset of bench_pthread."

10 years agoRemove bench_locks, which is a subset of bench_pthread.
Elliott Hughes [Tue, 11 Mar 2014 01:25:06 +0000 (18:25 -0700)]
Remove bench_locks, which is a subset of bench_pthread.

Change-Id: Id8d952d2ca634f86aaaf01e05c98524d9110b054

10 years agoMerge "Remove tests that are already better tested as part of CTS."
Elliott Hughes [Tue, 11 Mar 2014 01:00:25 +0000 (01:00 +0000)]
Merge "Remove tests that are already better tested as part of CTS."

10 years agoRemove tests that are already better tested as part of CTS.
Elliott Hughes [Tue, 11 Mar 2014 00:51:21 +0000 (17:51 -0700)]
Remove tests that are already better tested as part of CTS.

Change-Id: I06592a245c2229ca455156bab40eb1a815eef75b

10 years agoMerge "Remove timer tests."
Elliott Hughes [Mon, 10 Mar 2014 22:55:52 +0000 (22:55 +0000)]
Merge "Remove timer tests."

10 years agoRemove timer tests.
Elliott Hughes [Tue, 4 Mar 2014 22:21:34 +0000 (14:21 -0800)]
Remove timer tests.

bionic contains a superset of these tests, and the binoic tests are
part of CTS.

Change-Id: I9e05d44749c6d6c94271a150fd8b71a297d6ebca

10 years agoMerge "perm_checker: Add permission for /dev/socket/logd*"
Mark Salyzyn [Thu, 27 Feb 2014 20:29:57 +0000 (20:29 +0000)]
Merge "perm_checker: Add permission for /dev/socket/logd*"

10 years agoperm_checker: Add permission for /dev/socket/logd*
Mark Salyzyn [Fri, 8 Nov 2013 23:40:02 +0000 (15:40 -0800)]
perm_checker: Add permission for /dev/socket/logd*

Change-Id: I9140384e3cd557c1e346ed386800921632af9c28

10 years agoMerge "Don't abuse KERNEL_HEADERS."
Elliott Hughes [Thu, 27 Feb 2014 17:50:45 +0000 (17:50 +0000)]
Merge "Don't abuse KERNEL_HEADERS."

10 years agoDon't abuse KERNEL_HEADERS.
Elliott Hughes [Thu, 27 Feb 2014 17:42:34 +0000 (09:42 -0800)]
Don't abuse KERNEL_HEADERS.

You get the right ones for free, and this would be wrong on multi-arch.

Change-Id: I832ae5343bfa24a9c45a305afa62a0cf4ac75615

10 years agoMerge "ext4_utils: don't leave bad image file in case of error"
JP Abgrall [Sat, 15 Feb 2014 01:59:51 +0000 (01:59 +0000)]
Merge "ext4_utils: don't leave bad image file in case of error"

10 years agoext4_utils: don't leave bad image file in case of error
JP Abgrall [Sat, 15 Feb 2014 01:31:40 +0000 (17:31 -0800)]
ext4_utils: don't leave bad image file in case of error

Bug: 13029951
Change-Id: Ibe50a503c2d3988813b362790b7fba83383fb51e

10 years agoMerge "Set s_flags to 2 to prevent a write on first mount."
Geremy Condra [Thu, 13 Feb 2014 21:54:09 +0000 (21:54 +0000)]
Merge "Set s_flags to 2 to prevent a write on first mount."

10 years agoSet s_flags to 2 to prevent a write on first mount.
Geremy Condra [Wed, 12 Feb 2014 23:34:20 +0000 (15:34 -0800)]
Set s_flags to 2 to prevent a write on first mount.

The s_flags field is used to indicate whether characters are signed
or unsigned, which differs between ARM and x86 targets. Setting
this value to 0 causes the correct value for the target to be
written back to the superblock on first mount, even if the fs is
marked read only.

Since this value is only used to ensure interoperability with 2.4
series kernels (which we don't need) in dirhash (which we don't
use), we'll just set it to 2 to prevent the write.

Change-Id: I92698235909791fb5f423cfd61ff5299307a8f97

10 years agoMerge "kexecload: fix LP64 warnings"
Colin Cross [Thu, 6 Feb 2014 07:33:44 +0000 (07:33 +0000)]
Merge "kexecload: fix LP64 warnings"

10 years agokexecload: fix LP64 warnings
Colin Cross [Thu, 6 Feb 2014 02:57:04 +0000 (18:57 -0800)]
kexecload: fix LP64 warnings

Use uintptr_t for pointer arithmetic.

Change-Id: I69385fe67ce823f3b13d8dc73acf0a0ff5bb1e83

10 years agoMerge "make_ext4fs: fix block allocation to be best-fit"
Colin Cross [Wed, 5 Feb 2014 22:59:44 +0000 (22:59 +0000)]
Merge "make_ext4fs: fix block allocation to be best-fit"

10 years agomake_ext4fs: fix block allocation to be best-fit
Colin Cross [Tue, 21 Jan 2014 08:04:04 +0000 (00:04 -0800)]
make_ext4fs: fix block allocation to be best-fit

The block allocation algorithm was failing to allocate parts of large
files out of partially filled block groups.  Update the allocation
algorithm to be a simpler best fit loop - if the remaining length to
allocate is larger than any single contiguous region, allocate the
largest single contiguous region and continue allocating, otherwise
allocate the smallest contiguous that can hold the length.

Change-Id: Idcc60df91ed0a266d3128ea46e86408a581d3f40

10 years agoMerge "Remove bogus semicolons"
Ian Rogers [Fri, 31 Jan 2014 16:38:37 +0000 (16:38 +0000)]
Merge "Remove bogus semicolons"

10 years agoMerge changes Icaf79989,I185352ec,I5a72147f,Ied3dc6a0
Colin Cross [Thu, 30 Jan 2014 04:00:05 +0000 (04:00 +0000)]
Merge changes Icaf79989,I185352ec,I5a72147f,Ied3dc6a0

* changes:
  ext4_utils: fix build for 64 bit
  ext4_utils: move superblock parsing to its own compilation unit
  ext4_utils: move sparse file pointer out of fs_info
  ext4_utils: refactor kernel headers

10 years agoext4_utils: fix build for 64 bit
Colin Cross [Thu, 23 Jan 2014 21:19:27 +0000 (13:19 -0800)]
ext4_utils: fix build for 64 bit

Correct u64/s64 definitions
Use PRIu64 to print u64

Change-Id: Icaf7998946b0a2faa03495b404af8b94e4e3d047

10 years agoRemove bogus semicolons
Bernhard Rosenkränzer [Fri, 24 Jan 2014 21:55:43 +0000 (22:55 +0100)]
Remove bogus semicolons

Remove semicolons after function declarations.
They don't (currently) hurt, but they're invalid and might
break future compilers.

Change-Id: I82a2b414f2e465d40948c4a4f8f103023a7830de
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
10 years agoext4_utils: move superblock parsing to its own compilation unit
Colin Cross [Thu, 23 Jan 2014 21:13:02 +0000 (13:13 -0800)]
ext4_utils: move superblock parsing to its own compilation unit

Move ext4_parse_sb to its own compilation unit so it can be used
from fs_mgr without pulling in all of libext4_utils' dependencies
when compiling with ld.bfd.

Change-Id: I185352ecea0e0d577b8cdddfd519f2826d631277

10 years agoext4_utils: move sparse file pointer out of fs_info
Colin Cross [Thu, 23 Jan 2014 21:08:16 +0000 (13:08 -0800)]
ext4_utils: move sparse file pointer out of fs_info

Move the sparse file pointer out of the fs_info struct in
preparation for exporting fs_info without sparse file support.

Change-Id: I5a72147fe4fb24296e615cb82dbba91c6dc6f7f0

10 years agoext4_utils: refactor kernel headers
Colin Cross [Thu, 23 Jan 2014 20:53:30 +0000 (12:53 -0800)]
ext4_utils: refactor kernel headers

Move the kernel header includes into a single include file that
can deal with getting the kernel int types correct on all
platforms.

Change-Id: Ied3dc6a0f5cbb3ceb686aa3de72f16e10a36462a

10 years agoMerge "procmem: Use size_t instead of int to remove a potential bug."
Elliott Hughes [Thu, 12 Dec 2013 20:58:20 +0000 (20:58 +0000)]
Merge "procmem: Use size_t instead of int to remove a potential bug."

10 years agoMerge "procrank: Use %zu for size_t and %d for pid_t"
Elliott Hughes [Thu, 12 Dec 2013 20:53:50 +0000 (20:53 +0000)]
Merge "procrank: Use %zu for size_t and %d for pid_t"

10 years agoprocmem: Use size_t instead of int to remove a potential bug.
Ashok Bhat [Thu, 10 Jan 2013 16:24:59 +0000 (16:24 +0000)]
procmem: Use size_t instead of int to remove a potential bug.

In procmem.c, num_maps and num_pages are declared as
int. Pointers (int*) to these variables are being
passed to functions pm_process_maps and pm_map_pagemap
respectively, both of which expect size_t * argument.

This will lead to problems in 64-bit systems where
size_t and int_t have different size.

To avoid the issue, num_maps and num_pages are declared
as size_t. In addition, loop counters i and j are now
declared as size_t to avoid comparison of signed int with
unsigned int.

Change-Id: I3fc51f9386c9b2d289d34808e19e3811ca4a3dae
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoprocrank: Use %zu for size_t and %d for pid_t
Ashok Bhat [Thu, 10 Jan 2013 15:52:55 +0000 (15:52 +0000)]
procrank: Use %zu for size_t and %d for pid_t

Change-Id: Ic339a05a3091ec6b33b68bc5e76082de3513e9c7
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
10 years agoMerge "Remove dead test."
Christopher Ferris [Wed, 4 Dec 2013 20:26:29 +0000 (20:26 +0000)]
Merge "Remove dead test."

10 years agoRemove dead test.
Christopher Ferris [Wed, 4 Dec 2013 20:00:51 +0000 (12:00 -0800)]
Remove dead test.

All of the functionality of these tests has moved in to bionic/tests.

Bug: 9797008
Change-Id: I45f395cafb8dc83fbfc8179b004da920e4a34c87

10 years agoMerge "kexec.h is a uapi header."
Elliott Hughes [Mon, 25 Nov 2013 21:45:07 +0000 (21:45 +0000)]
Merge "kexec.h is a uapi header."

10 years agokexec.h is a uapi header.
Elliott Hughes [Mon, 25 Nov 2013 19:44:19 +0000 (11:44 -0800)]
kexec.h is a uapi header.

Uapi is not a subdirectory of the old headers; it's the new alternative.
Look for it in the right place. (Required by a recent external/kernel-headers
fix.)

Change-Id: I3ae468d3eb79b355dc1bf4127536c6e0f397555a