Daniel Rosenberg
4538cb20b9
Retry opening loop device
...
If more than the default number of loop devices is in use, we may need
to wait for the device path to be available.
Bug: 128873591
Bug: 122059364
Test: Set up adopted virtual disk and check that it loads on boot
Change-Id: I201dcc32043664076f50b0d6f40de6e5e1a65342
5 years ago
Jaegeuk Kim
cd1f06f6ec
Merge "idle-maint: don't need to change discard_granularity" am: 444a24558d
am: a970ff8448
...
am: 240ca70d8d
Change-Id: I249d4dd70c4f13d46d539a769e918613eea539b4
5 years ago
Jaegeuk Kim
240ca70d8d
Merge "idle-maint: don't need to change discard_granularity" am: 444a24558d
...
am: a970ff8448
Change-Id: I2be93b1bf2e1cd81b54ec9f197043ae8156003df
5 years ago
Jaegeuk Kim
a970ff8448
Merge "idle-maint: don't need to change discard_granularity"
...
am: 444a24558d
Change-Id: If0679363fb8563dedb43f8bd6266c74e4869d44f
5 years ago
Jaegeuk Kim
444a24558d
Merge "idle-maint: don't need to change discard_granularity"
5 years ago
Nick Kralevich
58e1a816ba
VolumeManager: more O_CLOEXEC changes
...
Test: compiles and boots
Bug: 129350825
Change-Id: Ie6a0e05f1814d744eb16863f749c939ab1e097e0
5 years ago
Nick Kralevich
87fcd8b36a
Merge "vold: add android-* to tidy_checks" am: 1820b9b3b9
am: 874b841223
...
am: 2215bd7a75
Change-Id: I4d1be96b9e7285aada712482c366a22451b6dacc
5 years ago
Nick Kralevich
9bda3fe810
Merge "vold: cleanups for O_CLOEXEC tidy checks." am: a59868d6de
am: 5af0c75525
...
am: 4197c098df
Change-Id: Ibe3636abcfafab7854c7b0434095b6e91fadcacf
5 years ago
Nick Kralevich
2215bd7a75
Merge "vold: add android-* to tidy_checks" am: 1820b9b3b9
...
am: 874b841223
Change-Id: Ica87cf75eadfff9a12c08204240e2d31b10f51a1
5 years ago
Nick Kralevich
4197c098df
Merge "vold: cleanups for O_CLOEXEC tidy checks." am: a59868d6de
...
am: 5af0c75525
Change-Id: I19cae40b342d339bf5752dfba304c37a0abecea8
5 years ago
Nick Kralevich
874b841223
Merge "vold: add android-* to tidy_checks"
...
am: 1820b9b3b9
Change-Id: I5b1c6926f050df8b24ee3d52b93080dab0745571
5 years ago
Nick Kralevich
5af0c75525
Merge "vold: cleanups for O_CLOEXEC tidy checks."
...
am: a59868d6de
Change-Id: Ice4a6009beb2d41d381e461b00be93471b100778
5 years ago
Nick Kralevich
1820b9b3b9
Merge "vold: add android-* to tidy_checks"
5 years ago
Nick Kralevich
a59868d6de
Merge "vold: cleanups for O_CLOEXEC tidy checks."
5 years ago
Paul Lawrence
25fe272764
Merge "Fix checkpoint on Taimen" am: 3889f17ad1
am: e2d9258979
...
am: 471325ad5a
Change-Id: I96523c193353d8d0f3cf775447b07c018ff810a8
5 years ago
Paul Lawrence
471325ad5a
Merge "Fix checkpoint on Taimen" am: 3889f17ad1
...
am: e2d9258979
Change-Id: Id0768b2cb6aa645d528d21738456a72308936ace
5 years ago
Paul Lawrence
e2d9258979
Merge "Fix checkpoint on Taimen"
...
am: 3889f17ad1
Change-Id: I06af82f6534b26e595be3aa1d39588175920d0db
5 years ago
Treehugger Robot
3889f17ad1
Merge "Fix checkpoint on Taimen"
5 years ago
Nick Kralevich
d78fb53378
vold: add android-* to tidy_checks
...
Bug: 129350825
Test: compiles and boots
Change-Id: If5a6267cc56bfc0ba73602bfa520035197b4fb90
5 years ago
Nick Kralevich
e7e89acbc8
vold: cleanups for O_CLOEXEC tidy checks.
...
Bug: 129350825
Test: compiles and boots
Change-Id: I83a484ca15df1b757b670008f15af5504bc94df1
5 years ago
Paul Lawrence
e81f4c1945
Fix checkpoint on Taimen
...
Bug: 129494872
Test: VtsKernelCheckpointTest runs and passes
Change-Id: Ib2de866db7c847d569789d1aa6cdbad7c3ee7ff4
5 years ago
Bernie Innocenti
a83d0fe1b6
Merge "Fix bogus error checking on unique_fd" am: 95587b085e
am: 3e9b69bf77
...
am: eb2be538c0
Change-Id: I7bf25301ca157fc7d508e03d32d037987a29ecf3
5 years ago
Bernie Innocenti
eb2be538c0
Merge "Fix bogus error checking on unique_fd" am: 95587b085e
...
am: 3e9b69bf77
Change-Id: Id54116718b97057f978e1410a96bfb449999f832
5 years ago
Bernie Innocenti
3e9b69bf77
Merge "Fix bogus error checking on unique_fd"
...
am: 95587b085e
Change-Id: Ic11222fdc81a9a2e15546378f1bc5012107c50af
5 years ago
Treehugger Robot
95587b085e
Merge "Fix bogus error checking on unique_fd"
5 years ago
Jaegeuk Kim
dc7162be6f
idle-maint: don't need to change discard_granularity
...
F2FS changes proper configurations along with gc_urgent, so idle-maint doesn't
need to set this redundantly.
Change-Id: I4a71a5d877a3bb9636e2b65132ec806edc56a8fe
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
5 years ago
TreeHugger Robot
9cfc0b4b17
Merge "vold: fsync both file and directory after write keys"
5 years ago
TreeHugger Robot
32212df196
Merge "vold: Introduce android::vold::writeStringToFile"
5 years ago
Tommy Chiu
a98464f688
vold: fsync both file and directory after write keys
...
Use vold version of writeStringToFile which fsync files, and
manually fsync directories after initialize global DE
Bug: 71810347
Test: Build pass and reboot stress test.
Original boot failure symptom is NOT reproducible.
Change-Id: I1ca8f8cf0ccfd01075a9c33f79042e58d99aea26
5 years ago
Bernie Innocenti
ebe293ab54
Fix bogus error checking on unique_fd
...
The expression "!fd" calls the implicit conversion to int, but comparing
the raw fd against 0 does not work, since open() and other POSIX calls
returning a file descriptor use -1 to signal an error.
Test: m vold
Change-Id: I0847c276f39cb9dd09c7ffb96951276113418fc8
5 years ago
Daniel Rosenberg
0873a1c71c
Merge "Switch Checkpoint health sleep time to ms." am: 32a8a47b07
am: e6db7e0a23
...
am: 2cc8752935
Change-Id: I125122b44009e2cb11e7cf6c147c9a808a87b8a2
5 years ago
Daniel Rosenberg
2cc8752935
Merge "Switch Checkpoint health sleep time to ms." am: 32a8a47b07
...
am: e6db7e0a23
Change-Id: If71daebf5bd2d91f5dfbadee4c7707c10b667648
5 years ago
Daniel Rosenberg
e6db7e0a23
Merge "Switch Checkpoint health sleep time to ms."
...
am: 32a8a47b07
Change-Id: If927a879f06faac4fde97dde41f2017010f7001c
5 years ago
Daniel Rosenberg
32a8a47b07
Merge "Switch Checkpoint health sleep time to ms."
5 years ago
Daniel Rosenberg
38f7671916
Merge "Fixed min_free_bytes prop name and usleep time default" am: 7522da3036
am: 23e15b78ad
...
am: 511073b610
Change-Id: Ic796c1d7f636bb5718eee599e25aed83784bd246
5 years ago
Daniel Rosenberg
511073b610
Merge "Fixed min_free_bytes prop name and usleep time default" am: 7522da3036
...
am: 23e15b78ad
Change-Id: I33e4655486ec05fbd9ea66e467aaa1dce440edf9
5 years ago
Daniel Rosenberg
23e15b78ad
Merge "Fixed min_free_bytes prop name and usleep time default"
...
am: 7522da3036
Change-Id: I242863be8d2b0b9ff780670b340f8acbfdaad52e
5 years ago
Suren Baghdasaryan
11a6b56ac8
Merge "Convert ifstream usage into fopen() to prevent fd leaks into child processes" am: 93fb6083d4
am: f1dec58b61
...
am: 1efcfc30b1
Change-Id: Iacc7caa16478c167462ca5645f5eabfa34381896
5 years ago
Daniel Rosenberg
7522da3036
Merge "Fixed min_free_bytes prop name and usleep time default"
5 years ago
Suren Baghdasaryan
1efcfc30b1
Merge "Convert ifstream usage into fopen() to prevent fd leaks into child processes" am: 93fb6083d4
...
am: f1dec58b61
Change-Id: Id7e8626129dbda0fdafcc86b087b67f71b5d3f8a
5 years ago
Suren Baghdasaryan
f1dec58b61
Merge "Convert ifstream usage into fopen() to prevent fd leaks into child processes"
...
am: 93fb6083d4
Change-Id: I28dc4717f22207e310c5701a78c04214ffa4d52a
5 years ago
Suren Baghdasaryan
93fb6083d4
Merge "Convert ifstream usage into fopen() to prevent fd leaks into child processes"
5 years ago
Daniel Rosenberg
b7dddd0a7e
Switch Checkpoint health sleep time to ms.
...
This changes the property from microsecond to milliseconds, as we don't
need that sort of precision here. Also switches from using ulseep, which
has been removed from POSIX, to nanosleep.
Test: Builds, Boots, Times
Change-Id: Iefbaf8489ba05d8d688542fd7d4305efb980e701
5 years ago
Satoshi Futenma
18d10d4c15
Fixed min_free_bytes prop name and usleep time default
...
Test: check build
Bug: 129299864
Change-Id: Iab6a01d15185dd19604cd8d3d7ea4efc2b020e34
5 years ago
Suren Baghdasaryan
28af26ac47
Convert ifstream usage into fopen() to prevent fd leaks into child processes
...
std::ifstream does not use O_CLOEXEC flag when opening files. This leads
to file descriptors being inherited by child processes. In the case of vold
this results in leaking FDs to less privileged children with no permission
for these files which occasionally leads to SELinux denials.
Bug: 129298168
Change-Id: Id2731782a25d65c9a7cbf25dc441f3e7a17609c1
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
5 years ago
Tommy Chiu
0bd2d11692
vold: Introduce android::vold::writeStringToFile
...
Remove static definition of writeStringToFile, and
move it from KeyStorage to Utils
Bug: 71810347
Change-Id: I38bfd27370ac2372e446dc699f518122e73c6877
5 years ago
Rubin Xu
5b4f31125e
Merge "Remove excess logging in secdiscard" am: b640f4e337
am: 2c1e98d69f
...
am: b970f62913
Change-Id: Icce53ecc1e43945cd1298edbf3e70005340432d9
5 years ago
Rubin Xu
b970f62913
Merge "Remove excess logging in secdiscard" am: b640f4e337
...
am: 2c1e98d69f
Change-Id: I767847aa355adf893189e329b67c78a5145245e3
5 years ago
Rubin Xu
2c1e98d69f
Merge "Remove excess logging in secdiscard"
...
am: b640f4e337
Change-Id: Ic4509611efc55b0953ccca02fd7730740982728a
5 years ago
Treehugger Robot
b640f4e337
Merge "Remove excess logging in secdiscard"
5 years ago