Skip to content

Commit 6de9d0c

Browse files
committed
Disk: add {mountpoint} and {mount-from} in custom output format
Fix #1577
1 parent 8f69533 commit 6de9d0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/disk/disk.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ static void printDisk(FFDiskOptions* options, const FFDisk* disk, uint32_t index
156156
FF_FORMAT_ARG(minutes, "minutes"),
157157
FF_FORMAT_ARG(seconds, "seconds"),
158158
FF_FORMAT_ARG(milliseconds, "milliseconds"),
159+
FF_FORMAT_ARG(disk->mountpoint, "mountpoint"),
160+
FF_FORMAT_ARG(disk->mountFrom, "mount-from"),
159161
}));
160162
}
161163
}
@@ -483,6 +485,8 @@ static FFModuleBaseInfo ffModuleInfo = {
483485
{"Minutes after creation", "minutes"},
484486
{"Seconds after creation", "seconds"},
485487
{"Milliseconds after creation", "milliseconds"},
488+
{"Mount point / drive letter", "mountpoint"},
489+
{"Mount from (device path)", "mount-from"},
486490
}))
487491
};
488492

0 commit comments

Comments
 (0)