Или ишак сдохнет, или султан помрёт
Вам надо просто про файловые системы почитать.
Диски в ZFS лучше добавлять по ID, чтобы таких вопросов не возникало.
Потому что df делали когда не было ZFS
uzer@lili:~$ sudo zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
z_pool_m 80M 120K 79,9M - 1% 0% 1.00x ONLINE -
uzer@lili:~$ df -h | grep z_pool_m
z_pool_m 40M 0 40M 0% /z_pool_m
z_pool_m/data 40M 0 40M 0% /z_pool_m/data
uzer@lili:~$ sudo zfs list
NAME USED AVAIL REFER MOUNTPOINT
z_pool_m 111K 39,9M 24K /z_pool_m
z_pool_m/data 24K 39,9M 24K /z_pool_m/data
Команда zpool status показывает, что к чему. В первом примере у вас явно указано mirror, во втором у вас ничего не написано, то есть stripe.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
def get_val(data, field):
eval_string = list()
some_list,field,key = field.split(".")
if field == "*":
for i in data.get(some_list):
eval_string.append(i[key])
else:
eval_string = data.get(some_list)[int(field)][key]
return(eval_string)
def main():
data = {
"some_list": [
{"key1": "some_value1", "key2": "some_value2"},
{"key1": "some_value1", "key2": "some_value2"},
{"key1": "some_value1", "key2": "some_value2"},
{"key1": "some_value1", "key2": "some_value2"}
]
}
s1 = "some_list.0.key1"
result = get_val(data, s1)
print(result)
s2 = "some_list.*.key1"
result = get_val(data, s2)
print(result)
if __name__ == "__main__":
sys.exit(main())
$filterXml = @'
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">
*[
System[(EventID = 4624)]
and
System[(TimeCreated[timediff(@SystemTime) <= 86400000])]
and
EventData[Data[@Name="LogonType"] and (Data=3)]
]
</Select>
</Query>
</QueryList>
'@
Get-WinEvent -FilterXML $filterXml | %{
[xml]$xml = $_.ToXml()
(new-object -Type PSObject -Property @{
Time = $_.TimeCreated
NamePC = $xml.getElementsByTagName("Data") | where{$_.name -eq "WorkstationName"} | Select-Object -ExpandProperty "#text"
ClientIP = $xml.getElementsByTagName("Data") | where{$_.name -eq "IpAddress"} | Select-Object -ExpandProperty "#text"
UserName = $xml.getElementsByTagName("Data") | where{$_.name -eq "TargetUserName"} | Select-Object -ExpandProperty "#text"
UserDomain = $xml.getElementsByTagName("Data") | where{$_.name -eq "TargetDomainName"} | Select-Object -ExpandProperty "#text"
})
} | select Time, NamePC, ClientIP, @{N='Username';E={'{0}\{1}' -f $_.UserDomain,$_.UserName}}
Get-EventLog -LogName Security -after (Get-date -hour 0 -minute 0 -second 0)| ?{(4624) -contains $_.EventID -and $_.Message -match 'Logon type:\s+(3)\s'}
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"IgnoreRemoteKeyboardLayout"=dword:00000001