summaryrefslogtreecommitdiffstats
path: root/src/logicalfile/LMI_FileIdentityProvider.c
Commit message (Collapse)AuthorAgeFilesLines
* libopenlmi: minor fixes and improvementsJan Synacek2014-05-061-22/+22
|
* libopenlmi: reorganize and gatherJan Synacek2014-04-301-24/+24
| | | | | | | Make naming consistent. Gather common functionality into one library and try to use it across all providers. Introduce libtool-style versioning for libraries.
* Updated copyright yearsPeter Schiffer2014-01-161-1/+1
| | | | Updated copyright years to include new year 2014.
* logicalfile: don't automatically fill FSName and FSCreationClassNameJan Synacek2014-01-101-6/+5
| | | | | Set there properties on output, meaning when GetInstance() is invoked, only when they are empty. Otherwise leave them unchanged.
* logicalfile: correctly fill FSCreationClassName and FSNameJan Synacek2013-12-171-8/+10
| | | | | | | | | | | 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.
* logicalfile: fixed key checking in associations.Jan Safranek2013-11-131-2/+8
| | | | | | | | 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.
* Add lmi_get_computer_system function and fix lmi_get_system_nameRadek Novacek2013-10-311-8/+8
| | | | | | | | | | | | | | 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.
* logicalfile: correctly ignore creation class nameJan Synacek2013-10-021-31/+19
|
* logicalfile: remove needless codeJan Synacek2013-10-021-35/+0
|
* Call lmi_init function from providersRadek Novacek2013-09-191-0/+1
|
* logicalfile: code cleanup and rewriteJan Synacek2013-09-181-16/+16
| | | | | | | | | | 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.
* logicalfile: ignore some key propertiesJan Synacek2013-09-161-10/+4
| | | | | | | | | | | | | | 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.
* logicalfile: make uses of strcmp() more readableJan Synacek2013-08-271-8/+8
|
* logicalfile: correctly apply filters in LMI_FileIdentityJan Synacek2013-08-261-6/+36
|
* LogicalFile: use get_string_property_from_op() where appropriateJan Synacek2013-07-171-19/+7
|
* LogicalFile: fix typoJan Synacek2013-07-121-1/+1
|
* LogicalFile: use udev to fill info about the filesystemJan Synacek2013-07-021-7/+22
|
* Happy New Year! (better later than never)Jan Synacek2013-03-131-1/+1
|
* LogicalFile: fix FileIdentityJan Synacek2013-02-141-36/+94
| | | | | | LMI_FileIdentity.Associators() was not behaving correctly -- it was returning the object itself instead of the other one. Also, LMI_FileIdentity.References() has been updated.
* LogicalFile: check for valid classes in association methodsJan Synacek2013-02-141-0/+32
|
* New provider: LogicalFileJan Synacek2013-02-111-0/+302