mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-28592 disks plugin (postfix - remove tabs)
This commit is contained in:
@ -106,7 +106,7 @@ static int disks_table_add_row_stat(
|
|||||||
#else
|
#else
|
||||||
if (info.f_flags & MNT_RDONLY)
|
if (info.f_flags & MNT_RDONLY)
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
pTable->field[0]->store(zDisk, strlen(zDisk), system_charset_info);
|
pTable->field[0]->store(zDisk, strlen(zDisk), system_charset_info);
|
||||||
pTable->field[1]->store(zPath, strlen(zPath), system_charset_info);
|
pTable->field[1]->store(zPath, strlen(zPath), system_charset_info);
|
||||||
@ -212,15 +212,15 @@ static int disks_fill_table(THD* pThd, TABLE_LIST* pTables, Item* pCond)
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct stat f;
|
struct stat f;
|
||||||
const char *path, *point;
|
const char *path, *point;
|
||||||
#ifdef HAVE_SETMNTENT
|
#ifdef HAVE_SETMNTENT
|
||||||
path= pEnt->mnt_dir;
|
path= pEnt->mnt_dir;
|
||||||
point= pEnt->mnt_fsname;
|
point= pEnt->mnt_fsname;
|
||||||
#else
|
#else
|
||||||
path= pEnt->mnt_mountp;
|
path= pEnt->mnt_mountp;
|
||||||
point= pEnt->mnt_special;
|
point= pEnt->mnt_special;
|
||||||
#endif
|
#endif
|
||||||
// Try to keep to real storage by excluding
|
// Try to keep to real storage by excluding
|
||||||
// read only mounts, and mount points that aren't directories
|
// read only mounts, and mount points that aren't directories
|
||||||
if (hasmntopt(pEnt, MNTOPT_RO) != NULL)
|
if (hasmntopt(pEnt, MNTOPT_RO) != NULL)
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user