-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
-
None
-
Windows
-
Sprint 65 (Jun 2020), Sprint 66 (Jul 2020), Sprint 67 (Aug 2020), Sprint 68 (Sep 2020), Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021)
- Create new directory my_dir;
- Enter my_dir and create directory test1 and inside of that create another directory test2 and a file file.txt;
- Then create the following symbolic links:
C:\my_dir>mklink SLTfile test1\file.txt symbolic link created for SLTfile <<===>> test1\file.txt C:\my_dir>mklink /D SLTdir test1\test2 symbolic link created for SLTdir <<===>> test1\test2 C:\my_dir>mklink /H HLTfile test1\file.txt Hardlink created for HLTfile <<===>> test1\file.txt C:\my_dir>mklink /J HLTdir test1\test2 Junction created for HLTdir <<===>> test1\test2
This is what should be in my_dir:
C:\MY_DIR | HLTfile | SLTfile | +---HLTdir +---SLTdir \---test1 | file.txt | \---test2
Result:
zabbix_get.exe -s localhost -k vfs.dir.count[C:\viktors\test\my_dir,,,all,,0] 3 zabbix_get.exe -s localhost -k vfs.dir.count[C:\viktors\test\my_dir,,,sym,,0] 0 zabbix_get.exe -s localhost -k vfs.dir.count[C:\viktors\test\my_dir,,,file,,0] 2
Expected:
zabbix_get.exe -s localhost -k vfs.dir.count[C:\viktors\test\my_dir,,,all,,0] 4 zabbix_get.exe -s localhost -k vfs.dir.count[C:\viktors\test\my_dir,,,sym,,0] 1 zabbix_get.exe -s localhost -k vfs.dir.count[C:\viktors\test\my_dir,,,file,,0] 2
SLTfile is of type .symlink but it is counted as type file. HLTfile is file and is counted as of type file but SLTdir and HLTdir both are skipped.
In the documentation it is stated that "On Windows directory symlinks are skipped and hard links are counted only once." so it seems that HLTdir should be counted. And should hard links to files be counted not as type file but as type sym since it is a hard link?
Maybe here is just a need to change the documentation: "On Windows directory symlinks and hard links are skipped."
- part of
-
ZBXNEXT-6875 Migrate Agent2 metrics to native GoLang
- Closed
- mentioned in
-
Page Loading...