| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Make naming consistent. Gather common functionality into one library and
try to use it across all providers.
Introduce libtool-style versioning for libraries.
|
| |
|
|
|
|
|
| |
After creating a directory or symlink, check if the object created
really is the directory or symlink.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Updated copyright years to include new year 2014.
|
|
|
|
|
| |
Set there properties on output, meaning when GetInstance() is invoked,
only when they are empty. Otherwise leave them unchanged.
|
|
|
|
|
|
|
| |
Some functions, such as readdir() and dirname(), are not
thread-safe. Use equivalent glib functions.
trac: #173
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Files residing on nodevice or remote filesystems now correctly set these
properties. FSCreationClassName is set to "LMI_TransientFileSystem" and
FSName is set to "PATH=<path to file>". This behavior is consistent with
how storage providers set those properties. To check for filesystem, the
provider uses udev and checks for ID_FS_UUID_ENC and DEVNAME fields. If
these are not found, filesystem is then considered nodevice or remote.
Additional test for files on transient filesystems has been added.
|
| |
|
|
|
|
| |
non-directory
|
|
|
|
| |
Fix some potential errors in the string formatting.
|
|
|
|
| |
'path' and 'ccname' variables must be read first from the 'cop' before
accessing them.
|
|
|
|
|
|
| |
The provider must not crash when Associators and/or References is called
with odd object path - it does not need to be LMI_UnixDirectory or
CIM_LogicalFile.
|
|
|
|
|
|
|
|
| |
Don't assume that the Associators() or References() get correct object 'cop'
argument - the object might be totally unrelated to the association.
E.g. SFCB calls Associators() on LMI_DirectoryContainsFile associations
with CIM_ComputerSystem as 'cop' parameter, while the association is between
a directory and a file in it and does not associate ComputerSystem in any way.
|
|
|
|
|
| |
Base test classes have been renamed, this patch makes small provider
tests working again.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PG_ComputerSystem has different method how to get hostname than our
providers. In order to create the associations to this class we need to
enumerate it. The downside is that all providers must supply CMPIContext
to the lmi_init function.
New function lmi_get_computer_system returns CMPIObjectPath to the
configured CIM_ComputerSystem subclass instance. This object should be
used in all references with ComputerSystem.
Function lmi_get_system_name has been altered to return same value as
ComputerSystem "Name" property.
|
|
|
|
| |
Done for: Account, Journald and LogicalFile
|
|
|
|
|
|
|
|
|
|
| |
- Everything is in openlmi-providers/doc/admin directory.
- 'make doc' automatically builds documentation of all
enabled providers.
- Documentation shares one 'conf.py' for sphinx.
- All documentation uses the same directory structure.
There is only one CMakefile.txt to generate all the docs.
|
|
|
|
|
|
|
| |
And get rid of sblim-cmpi-base dependency.
It would be nice if our tests have an option to select Linux_ComputerSystem
or PG_ComputerSystem in the future...
|
|
|
|
| |
Add EnumerateInstances() and GetInstance().
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Note that the theme is BSD-licensed.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
GetInstance() calls were rewritten using cleaner code. Also, the macros
that were used before were either rewritten to functions, or cleaned up
so they wouldn't return or do anything unexpected.
Helper functions now use CMPIStatus more consistently.
Some memory leaks were fixed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CIM_LogicalFile and CIM_UnixFile have some key properties that are not
needed when calling GetInstance(). On Linux systems, all is needed to
get information about a file is its path. Type of the filesystem that
the file resides on and the file type itself are not needed. In fact,
it's not desirable to require those when querying remote systems.
Ignore FSCreationClassName, FSName, LFCreationClassName and
CreationClassName.
This commit reverts most of the functionality of commit
5c3e1a6203e495bec37acd8c3731ca41377beb94.
|
| |
|
|
|
|
|
| |
CreateInstance() has to return an objectpath to the created
instance. Returning only status made the server stall.
|
| |
|
| |
|
| |
|