Commit Graph

52405 Commits

Author SHA1 Message Date
Mark Salyzyn 7f17baa158 Merge "fs_mgr: overlayfs: test: noatime on rw mounts only" 2019-08-29 21:40:46 +00:00
Mark Salyzyn 6f07a8af11 fs_mgr: overlayfs: test: noatime on rw mounts only
Regression from commit 808763e825
("fs_mgr: overlayfs: noatime").  Test fails on some targets
that do not follow our advise to mount noatime for all partitions.
blueline mounts the system partitions relatime.  In the grand
scheme this is not a problem because we never remount these
partitions read-write because of the overlayfs integration.

Filter out read-only mounts from those enumerated for noatime,
those failures do not concern us in the context of this test.

This test expected to fail if CtsOsTestCases EnvironmentTest fails.

Test: adb-remount-test.sh
Bug: 140253722
Bug: 140014856
Change-Id: I778e7f539ac3f3d6495867e264767f2af25e11c7
2019-08-29 14:12:39 -07:00
Vic Yang feb658487a Merge "libutils: Introduce StaticString16"
am: b38616bc70

Change-Id: I3b75808acb9bc69b6f7c9c191154e93f61e55722
2019-08-29 14:10:20 -07:00
Vic Yang b38616bc70 Merge "libutils: Introduce StaticString16" 2019-08-29 20:57:16 +00:00
Tom Cherry 7e810bd65f Merge "fastboot: preserve partition_type if wants_wipe=true"
am: 390b48bad2

Change-Id: I5338320ddac7dde9da45c218620a98827052c333
2019-08-29 13:48:50 -07:00
Tom Cherry 390b48bad2 Merge "fastboot: preserve partition_type if wants_wipe=true" 2019-08-29 20:24:52 +00:00
qiwu chen 148062f276 Merge "fastboot: Initialize UploadInner dsize value to 0"
am: b5440039ac

Change-Id: I4693cb601f6d7888181bca0e1c59d4ae35306dce
2019-08-29 11:44:53 -07:00
Treehugger Robot b5440039ac Merge "fastboot: Initialize UploadInner dsize value to 0" 2019-08-29 18:39:31 +00:00
Wei Wang 8e4f7fb137 Merge "Let blkio cgroup follow sched_policy"
am: 2b73b60c66

Change-Id: Iedaab188d00a0df791ec5ea862608971af4321f7
2019-08-29 11:22:44 -07:00
Steven Moreland de6b1d4d2e Merge "init: -1 log for control message error paths."
am: b4eedd9ccd

Change-Id: Ie6b167162db57ab83b82c27000373ecebda17334
2019-08-29 11:15:00 -07:00
Wei Wang 2b73b60c66 Merge "Let blkio cgroup follow sched_policy" 2019-08-29 18:13:02 +00:00
Treehugger Robot b4eedd9ccd Merge "init: -1 log for control message error paths." 2019-08-29 17:53:47 +00:00
Mark Salyzyn 0838a467ef Merge "fs_mgr: overlayfs: noatime"
am: a133690fc4

Change-Id: If6835d9244e0e606fe706cd995fea837d9d0e577
2019-08-29 10:01:17 -07:00
Treehugger Robot a133690fc4 Merge "fs_mgr: overlayfs: noatime" 2019-08-29 16:49:04 +00:00
Jooyung Han 57b4d65eff Merge "ld.config.txt: remove link from rs to vndk"
am: 059b8dacfd

Change-Id: I647b726e70d2c0710b45b15f1bad08ebe2524b19
2019-08-29 09:40:42 -07:00
Treehugger Robot 059b8dacfd Merge "ld.config.txt: remove link from rs to vndk" 2019-08-29 16:18:27 +00:00
Steven Moreland 9800ad839a init: -1 log for control message error paths.
Fixes: 140136969
Test: check logs
Change-Id: Id80f59927b44d1026c6e3389c80ca96baf0733c4
2019-08-29 16:08:36 +00:00
Tom Cherry 21fd368dc2 Merge "Start serial console at the 'init' trigger"
am: c70fc1cbfd

Change-Id: I18b1fc5fb667d4938e9d2a8fb9098444ef53259b
2019-08-29 09:07:37 -07:00
Tom Cherry c70fc1cbfd Merge "Start serial console at the 'init' trigger" 2019-08-29 15:53:46 +00:00
qiwu chen 325ba6ffa8 fastboot: Initialize UploadInner dsize value to 0
We must initialize UploadInner dsize value to 0, in case
stuck in ReadBuffer when receive DATA packet which dsize
is 0 or non DATA type packet. This will lead to fastboot
hang up unless USB unplugged.

Change-Id: I1e9752585c3d1013b1b1da38ead9ba4c532c2d34
Signed-off-by: qiwu chen <qiwuchen55@gmail.com>
2019-08-29 14:56:19 +08:00
cfig f60613b4e8
fastboot: preserve partition_type if wants_wipe=true
originally if wants_wipe=true, program will erase and format partitions,
but after fb->Erase(), partition type should be raw(all 0xFFs),
then following fb_perform_format() will miss its original partition_type
Now we call fb_perform_format() with original fs type to keep the
partition consistent after wiping.

Change-Id: Ic778850588d5dd6fee23169d20c26bcbaa510627
2019-08-29 13:19:29 +08:00
Wei Wang 73e355409a Let blkio cgroup follow sched_policy
This reverts commit e8678cf883.

With b/131214885 resolved, we should reland the change for bg sched group.
If a thread explicitly calls set_sched_policy to set a thread to background, it should not be latency sensitive.

This would help background I/O impacting foreground I/O e.g. b/65727988

Test: build and boot
Bug: 140209629
Change-Id: I218db084fb733cad57af8a5eae926818a6a2cdb8
2019-08-29 03:51:32 +00:00
Yifan Hong 1094aeb14f Merge "fs_mgr: Allow to set defaults for CreateLogicalPartitionParams"
am: 50ca448402

Change-Id: Id6c8ac38e2811315ce8ab8216127c402027bf2cf
2019-08-28 20:07:21 -07:00
Steve Muckle dd97b74b4b Merge "fastboot: add vendor_boot to list of images"
am: 2d5395fec1

Change-Id: Iea2af255ad7c11cc3085d654c73ce76ca2f38202
2019-08-28 20:06:46 -07:00
Treehugger Robot 50ca448402 Merge "fs_mgr: Allow to set defaults for CreateLogicalPartitionParams" 2019-08-29 02:56:40 +00:00
Treehugger Robot 2d5395fec1 Merge "fastboot: add vendor_boot to list of images" 2019-08-29 02:54:51 +00:00
Yifan Hong cfeb33bca8 Merge "liblp: convert more functions to use string_view"
am: 09963adb21

Change-Id: Iaf3e878281c608e6e40fdd4a106baca625c9d949
2019-08-28 17:20:02 -07:00
Yifan Hong 09963adb21 Merge "liblp: convert more functions to use string_view" 2019-08-28 23:17:32 +00:00
Tom Cherry 71c3ef135d Start serial console at the 'init' trigger
Start the serial console at the 'init' trigger instead of much later
when property triggers happen.  This will help debugging early boot
issues.

Test: serial console starts early for a userdebug build
Test: serial console still doesn't start on a user build
Change-Id: I7112a8e7171c9fa865c8787c9a3d14515bc59478
2019-08-28 14:43:07 -07:00
Yifan Hong 1ada55e42a fs_mgr: Allow to set defaults for CreateLogicalPartitionParams
Test: boots
Change-Id: I6a969a19b9d29e682f50872bd3e9027eaca41512
2019-08-28 13:40:15 -07:00
Paul Crowley 95e7252fd8 Merge "Move layout_version to /data/misc/installd"
am: 24f955155a

Change-Id: Icf3e304aff7e4e1e556c6372be932e3c357d1bbe
2019-08-28 13:35:54 -07:00
David Anderson 6a6f2e9d65 Merge changes I3872dc51,I3b185f68,I37a25ca7
am: 956c204f1e

Change-Id: Ic4b4c289948d7c8e0c6377e9afac30a697532d26
2019-08-28 13:35:27 -07:00
Tom Cherry 3364822d76 Merge "Revert "Reland: "init: run property service in a thread"""
am: 4adbd2905a

Change-Id: Iff4efee2c4ab130c30127e54b58966c2cfe463cf
2019-08-28 13:34:25 -07:00
Ravi Kumar Siddojigari 2a5d0c80ad Merge "init: set SetKptrRestrict before early-init"
am: 88bba95989

Change-Id: I1822bff084659d744190526987abcc220ae58d45
2019-08-28 13:27:14 -07:00
Yifan Hong 2b3a9b2aa8 liblp: convert more functions to use string_view
Test: builds
Change-Id: I464e36b7b909adb3642b82bd98e2c05e11c9287a
2019-08-28 20:17:54 +00:00
Mark Salyzyn 808763e825 fs_mgr: overlayfs: noatime
Should not have used relatime for overlayfs and backing storage
mounts, noatime reduces the wear and tear on the flash device.

This should prevent triggering a falure in the CtsOsTestCases that
tries to spot mounts attached to block storage from updating atime
and resulting in churn.  This statement does not mean we support
performing Cts tests with devices that have deployed
'adb disable-verity' or 'adb remount'.

Post-mortem: relatime was not a 'problem' for overlayfs, copy and
             paste for those flags resulted in the use of relatime
	     for scratch backing storage.

Test: adb-remount-test.sh
Bug: 140014856
Change-Id: Ic97b98ceacaa265094364487ea70cc99b6aee92f
2019-08-28 13:13:13 -07:00
Paul Crowley 24f955155a Merge "Move layout_version to /data/misc/installd" 2019-08-28 19:56:15 +00:00
David Anderson 956c204f1e Merge changes I3872dc51,I3b185f68,I37a25ca7
* changes:
  libsnapshot: Improve how devices are collapsed after merging.
  fastbootd: Cancel snapshots when modifying partitions.
  Clean up update state when snapshots are interrupted or cancelled.
2019-08-28 17:51:20 +00:00
Tom Cherry 4adbd2905a Merge "Revert "Reland: "init: run property service in a thread""" 2019-08-28 17:50:00 +00:00
Tom Cherry 3da2ba6d4a Revert "Reland: "init: run property service in a thread""
This reverts commit 8efca4bbb3.

Reason for revert: Still broken

Change-Id: I3b37b1b00ff4b19f2eec2d8bd72042463d47cee3
2019-08-28 17:47:49 +00:00
Treehugger Robot 88bba95989 Merge "init: set SetKptrRestrict before early-init" 2019-08-28 17:44:55 +00:00
Tom Cherry dab12cfbcc Merge "Reland: "init: run property service in a thread""
am: 34f2537393

Change-Id: I6025edc7f49e8325d82afbc19924f4ef409b9822
2019-08-28 08:23:19 -07:00
Tom Cherry e8ef83a362 Merge "ueventd: parallelize restorecon /sys"
am: 15c8760403

Change-Id: I22316b385bb9ae592614f7cb183b346645178ffb
2019-08-28 08:22:52 -07:00
Tom Cherry 34f2537393 Merge "Reland: "init: run property service in a thread"" 2019-08-28 15:01:34 +00:00
Tom Cherry 15c8760403 Merge "ueventd: parallelize restorecon /sys" 2019-08-28 14:58:12 +00:00
Ravi Kumar Siddojigari 33783fc29c init: set SetKptrRestrict before early-init
As part of debugging long run issue we are enabling
module info as part of debug build under the config key
DEBUG_MODULE_LOAD_INFO , But doing so can lead to info leak
as modules/dlkm are loaded in early-init and setting the
kptr_restriction is done after early-init.

So moving setting of kptr_restrict much before early-init.

Bug: 138641073

Change-Id: Ic3c0ca57a94c8b20136a15331dd646bd8825b625
2019-08-28 14:28:08 +02:00
Haibo Huang ef4d2b075a Merge "Include chrono.h"
am: fc71730834

Change-Id: I83bd41ac34b04352627569c92189886528a1f1c8
2019-08-27 21:13:20 -07:00
Haibo Huang fc71730834 Merge "Include chrono.h" 2019-08-28 03:52:35 +00:00
David Anderson 07012f8ba8 Merge "libsnapshot: Do not map snapshots for partitions that were reflashed."
am: f5960a1ac7

Change-Id: Ibe80264d53d4becfdddc89352747b5faf26f8404
2019-08-27 20:00:43 -07:00
David Anderson f63251c81b Merge "liblp: Add an attribute to indicate that a partition has been updated."
am: 74a6f4cf57

Change-Id: I0f3038c4537e38ce4d09c030bec1079dd941d973
2019-08-27 20:00:37 -07:00