aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-04-07 17:16:35 -0700
committerTao Bao <tbao@google.com>2015-04-07 22:02:27 -0700
commit682c34bbc32f3a9f007dd949282651ed35d4f6e3 (patch)
treef91733ca7065a14f6a8e0007cb7ea3d3685f3b3e /common.h
parent6896f9d47db1f959a907d2e67e55860af23e65f8 (diff)
downloadbootable_recovery-682c34bbc32f3a9f007dd949282651ed35d4f6e3.zip
bootable_recovery-682c34bbc32f3a9f007dd949282651ed35d4f6e3.tar.gz
bootable_recovery-682c34bbc32f3a9f007dd949282651ed35d4f6e3.tar.bz2
Rotate logs only when there are actual operations
Currently it rotates the log files every time it boots into the recovery mode. We lose useful logs after ten times. This CL changes the rotation condition so that it will rotate only if it performs some actual operations that modify the flash (installs, wipes, sideloads and etc). Bug: 19695622 Change-Id: Ie708ad955ef31aa500b6590c65faa72391705940
Diffstat (limited to 'common.h')
-rw-r--r--common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.h b/common.h
index 4f1c099..b818ceb 100644
--- a/common.h
+++ b/common.h
@@ -40,6 +40,7 @@ extern "C" {
#define STRINGIFY(x) #x
#define EXPAND(x) STRINGIFY(x)
+extern bool modified_flash;
typedef struct fstab_rec Volume;
// fopen a file, mounting volumes and making parent dirs as necessary.