From 85b2ef443d0ac9584fa7506cccca0eb62228c27c Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 26 Nov 2025 15:18:18 +0000 Subject: misc/far2l: revamp disk and memory display in the information panel - Replace Volume Serial Number obtained from `statvfs.f_fsid' field which is not meaningful on FreeBSD with GEOM::ident string - For RAM and swap numbers, employ sysinfo(3) library that provides GNU interface for gathering system information --- misc/far2l/files/patch-far2l_src_farwinapi.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 misc/far2l/files/patch-far2l_src_farwinapi.hpp (limited to 'misc/far2l/files/patch-far2l_src_farwinapi.hpp') diff --git a/misc/far2l/files/patch-far2l_src_farwinapi.hpp b/misc/far2l/files/patch-far2l_src_farwinapi.hpp new file mode 100644 index 000000000000..4f7eb9510547 --- /dev/null +++ b/misc/far2l/files/patch-far2l_src_farwinapi.hpp @@ -0,0 +1,13 @@ +--- far2l/src/farwinapi.hpp.orig 2025-10-26 08:39:52 UTC ++++ far2l/src/farwinapi.hpp +@@ -180,8 +180,8 @@ void apiGetTempPath(FARString &strBuffer); + bool apiExpandEnvironmentStrings(const wchar_t *src, FARString &strDest); + + BOOL apiGetVolumeInformation(const wchar_t *lpwszRootPathName, FARString *pVolumeName, +- DWORD64 *lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, +- FARString *pFileSystemName, FARString *pFileSystemMountPoint = nullptr); ++ FARString *pDiskIdent, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, ++ FARString *pFileSystemName, FARString *pDeviceName, FARString *pFileSystemMountPoint); + + void apiFindDataToDataEx(const FAR_FIND_DATA *pSrc, FAR_FIND_DATA_EX *pDest); + -- cgit v1.2.3