Dumpstate: f2fs: remove verbose segment_info am: a245dd7d5c

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14143521

Change-Id: Iafa99f8b9a063aae0f467c112ef04c86734f7672
This commit is contained in:
Jaegeuk Kim 2021-04-13 17:12:01 +00:00 committed by Automerger Merge Worker
commit 3b8b7ad442

View file

@ -678,10 +678,6 @@ void DumpstateDevice::dumpMemorySection(int fd) {
static void DumpF2FS(int fd) { static void DumpF2FS(int fd) {
DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status"); DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status");
RunCommandToFd(fd, "F2FS - fragmentation", {"/vendor/bin/sh", "-c",
"for d in $(ls /proc/fs/f2fs/); do "
"echo $d: /dev/block/mapper/`ls -l /dev/block/mapper | grep $d | awk '{print $8,$9,$10}'`; "
"cat /proc/fs/f2fs/$d/segment_info; done"});
RunCommandToFd(fd, "F2FS - fsck time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.fsck.data"}); RunCommandToFd(fd, "F2FS - fsck time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.fsck.data"});
RunCommandToFd(fd, "F2FS - checkpoint=disable time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.mount.data"}); RunCommandToFd(fd, "F2FS - checkpoint=disable time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.mount.data"});
} }