NewLife/Stardust

增加分布式文件存储架构
智能大石头 authored at 2025-12-11 17:54:26
10256bf
Tree
1 Parent(s) 7b38412
Summary: 4 changed files with 20 additions and 0 deletions.
Added +0 -0
Added +0 -0
Added +0 -0
Modified +20 -0
Added +0 -0
diff --git "a/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.eddx" "b/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.eddx"
new file mode 100644
index 0000000..86629fe
Binary files /dev/null and "b/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.eddx" differ
Added +0 -0
diff --git "a/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.emmx" "b/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.emmx"
new file mode 100644
index 0000000..4509fba
Binary files /dev/null and "b/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.emmx" differ
Added +0 -0
diff --git "a/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.jpg" "b/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.jpg"
new file mode 100644
index 0000000..3a5b032
Binary files /dev/null and "b/Doc/\345\210\206\345\270\203\345\274\217\346\226\207\344\273\266\345\255\230\345\202\250.jpg" differ
Modified +20 -0
diff --git a/StarAgent/CommandHandler/ShowMachineInfo.cs b/StarAgent/CommandHandler/ShowMachineInfo.cs
index 5bf1e7e..70f9ed1 100644
--- a/StarAgent/CommandHandler/ShowMachineInfo.cs
+++ b/StarAgent/CommandHandler/ShowMachineInfo.cs
@@ -105,5 +105,25 @@ public class ShowMachineInfo : BaseCommandHandler
                     XTrace.WriteLine("\tDns:\t{0}", ipp.DnsAddresses.Where(e => e.IsIPv4()).Join());
             }
         }
+
+        // 磁盘信息
+        foreach (var info in DriveInfo.GetDrives())
+        {
+            var format = "";
+            var label = info.IsReady ? "" : "[NotReady]";
+            var size = 0L;
+            try
+            {
+                format = info.DriveFormat;
+                label = info.VolumeLabel;
+                size = info.TotalSize;
+            }
+            catch { }
+
+            XTrace.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}", info.DriveType, format, info.Name, label, size.ToGMK());
+        }
+
+        // 等一会,等控制台输出日志
+        Thread.Sleep(100);
     }
 }