summaryrefslogtreecommitdiffstats
path: root/src/logicalfile
Commit message (Collapse)AuthorAgeFilesLines
* logicalfile: fix configuration installationJan Synacek2014-05-121-1/+1
|
* logicalfile: install configurationJan Synacek2014-05-121-0/+2
|
* logicalfile: test providers' configurationJan Synacek2014-05-122-22/+169
|
* logicalfile: fix unittest importJan Synacek2014-05-071-1/+1
|
* libopenlmi: rename back to openlmicommon and get versioning rightJan Synacek2014-05-061-1/+1
|
* libopenlmi: minor fixes and improvementsJan Synacek2014-05-0612-88/+88
|
* libopenlmi: reorganize and gatherJan Synacek2014-04-3013-225/+106
| | | | | | | Make naming consistent. Gather common functionality into one library and try to use it across all providers. Introduce libtool-style versioning for libraries.
* logicalfile: add sentinel to provider_config_defaultsJan Synacek2014-04-291-0/+1
|
* logicalfile: enhance testsJan Synacek2014-04-281-9/+24
| | | | | After creating a directory or symlink, check if the object created really is the directory or symlink.
* logicalfile: respect configuration when creating/removing directoriesJan Synacek2014-04-281-2/+13
|
* logicalfile: respect configuration when creating symlinksJan Synacek2014-04-281-1/+7
|
* logicalfile: provide default configurationJan Synacek2014-04-282-1/+18
|
* logicalfile: remove unused code and add a few checksJan Synacek2014-04-241-2/+4
|
* logicalfile: add support for symlink creationJan Synacek2014-04-245-3/+51
|
* logicalfile: fix GetInstance() on a socket fileJan Synacek2014-02-101-0/+3
|
* Updated copyright yearsPeter Schiffer2014-01-1616-16/+16
| | | | Updated copyright years to include new year 2014.
* logicalfile: don't automatically fill FSName and FSCreationClassNameJan Synacek2014-01-106-38/+53
| | | | | Set there properties on output, meaning when GetInstance() is invoked, only when they are empty. Otherwise leave them unchanged.
* logicalfile: replace thread-unsafe functionsJan Synacek2014-01-092-83/+100
| | | | | | | Some functions, such as readdir() and dirname(), are not thread-safe. Use equivalent glib functions. trac: #173
* Use re-entrant version of strerror() for thread safetyTomas Bzatek2014-01-091-2/+4
|
* logicalfile: correctly fill FSCreationClassName and FSNameJan Synacek2013-12-177-49/+87
| | | | | | | | | | | 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: simplify get_fsname_from_stat()Jan Synacek2013-12-161-4/+1
|
* logicalfile: LMI_DirectoryContainsFileProvider.c crash if called with a ↵Klaus Kämpf2013-11-191-1/+4
| | | | non-directory
* Format string hardeningRadek Novacek2013-11-191-1/+1
| | | | Fix some potential errors in the string formatting.
* logicalfile: fixed crashing of DirectoryContainsFile association.Jan Safranek2013-11-181-6/+6
| | | | 'path' and 'ccname' variables must be read first from the 'cop' before accessing them.
* logicalfile: don't assume 'Name' property is available before checking the classJan Safranek2013-11-141-7/+16
| | | | | | 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.
* logicalfile: fixed key checking in associations.Jan Safranek2013-11-134-14/+50
| | | | | | | | 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.
* tests: adjusted test suits for changes in lmi.testMichal Minar2013-11-041-3/+3
| | | | | Base test classes have been renamed, this patch makes small provider tests working again.
* logicalfile: implement LMI_RootDirectory.EnumerateInstanceNamesJan Safranek2013-11-011-1/+2
|
* Add lmi_get_computer_system function and fix lmi_get_system_nameRadek Novacek2013-10-3112-79/+61
| | | | | | | | | | | | | | 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.
* tests: use shared base class in provider testsMichal Minar2013-10-242-28/+21
| | | | Done for: Account, Journald and LogicalFile
* Rework documentation.Jan Safranek2013-10-186-617/+0
| | | | | | | | | | - 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.
* Use PG_ComputerSystem by default.Jan Safranek2013-10-094-6/+6
| | | | | | | 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...
* logicalfile: more intrinsic methods for LMI_RootDirectoryJan Synacek2013-10-092-3/+56
| | | | Add EnumerateInstances() and GetInstance().
* logicalfile: fix resource leak and logicJan Synacek2013-10-081-1/+2
|
* logicalfile: set correct version in documentationJan Synacek2013-10-031-2/+2
|
* logicalfile: fill LMI_UnixDeviceFile.DeviceFileTypeJan Synacek2013-10-033-2/+12
|
* logicalfile: correctly ignore creation class nameJan Synacek2013-10-024-42/+36
|
* logicalfile: fix resource leakJan Synacek2013-10-021-8/+8
|
* logicalfile: remove needless codeJan Synacek2013-10-023-95/+0
|
* logicalfile: fix possible null pointer dereferenceJan Synacek2013-10-021-1/+4
|
* Add OpenLMI theme for Sphinx.Jan Safranek2013-10-021-2/+2
| | | | Note that the theme is BSD-licensed.
* Remove 'OpenLMI LogicalFile CIM classes' from overall documentation.Jan Safranek2013-10-022-6/+13
|
* logicalfile: add documentationJan Synacek2013-09-196-0/+610
|
* Call lmi_init function from providersRadek Novacek2013-09-1912-1/+17
|
* logicalfile: code cleanup and rewriteJan Synacek2013-09-1812-161/+310
| | | | | | | | | | 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-167-175/+51
| | | | | | | | | | | | | | 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: warn if udev context creation failsJan Synacek2013-09-121-0/+1
|
* logicalfile: correctly return an objectpathJan Synacek2013-09-091-1/+1
| | | | | CreateInstance() has to return an objectpath to the created instance. Returning only status made the server stall.
* logicalfile: protect libselinux calls with a mutexJan Synacek2013-09-091-0/+9
|
* logicalfile: use lstat(2) instead of stat(2)Jan Synacek2013-09-061-1/+1
|