From 3ee12ffa8fd1ee77bde297858b1e0a5424931a4c Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Sat, 30 Sep 2023 06:15:50 +0100 Subject: [PATCH] stat: Show the device ID for the given file --- Userland/Utilities/stat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Utilities/stat.cpp b/Userland/Utilities/stat.cpp index 62aeee52f94..1d7c3c5c42d 100644 --- a/Userland/Utilities/stat.cpp +++ b/Userland/Utilities/stat.cpp @@ -18,6 +18,7 @@ static ErrorOr stat(StringView file, bool should_follow_links) { auto st = TRY(should_follow_links ? Core::System::stat(file) : Core::System::lstat(file)); outln(" File: {}", file); + outln(" Device: {}", st.st_dev); outln(" Inode: {}", st.st_ino); if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) outln(" Device: {},{}", major(st.st_rdev), minor(st.st_rdev));