mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-14533 Provide information_schema tables using which hardware
information can be obtained. DISKS plugin implementation added to the tree.
This commit is contained in:
14
mysql-test/suite/plugins/r/disks.result
Normal file
14
mysql-test/suite/plugins/r/disks.result
Normal file
@ -0,0 +1,14 @@
|
||||
install plugin DISKS soname 'disks';
|
||||
show create table information_schema.disks;
|
||||
Table Create Table
|
||||
DISKS CREATE TEMPORARY TABLE `DISKS` (
|
||||
`Disk` varchar(4096) NOT NULL DEFAULT '',
|
||||
`Path` varchar(4096) NOT NULL DEFAULT '',
|
||||
`Total` int(32) NOT NULL DEFAULT '0',
|
||||
`Used` int(32) NOT NULL DEFAULT '0',
|
||||
`Available` int(32) NOT NULL DEFAULT '0'
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=utf8
|
||||
select sum(Total) > sum(Available), sum(Total)>sum(Used) from information_schema.disks;
|
||||
sum(Total) > sum(Available) sum(Total)>sum(Used)
|
||||
1 1
|
||||
uninstall plugin DISKS;
|
Reference in New Issue
Block a user