device: dumpstate: expand f2fs dump script

am: bcc039b439

Change-Id: I0b7577054bb02e5abb9625eebe959135afe2faa5
This commit is contained in:
Leo Liou
2019-10-29 01:21:22 -07:00
committed by android-build-merger

View File

@@ -326,7 +326,10 @@ static void DumpTouch(int fd) {
static void DumpF2FS(int fd) {
DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status");
DumpFileToFd(fd, "F2FS - fragmentation", "/proc/fs/f2fs/dm-3/segment_info");
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"});
}
static void DumpUFS(int fd) {