summaryrefslogtreecommitdiffstats
path: root/daemon/augeas.c
Commit message (Collapse)AuthorAgeFilesLines
* New API: Add aug-clear call for clearing an Augeas node.Richard Jones2010-04-131-0/+20
|
* Allow aug-ls to take Augeas variable as argument (RHBZ#580016).Richard Jones2010-04-091-4/+5
|
* daemon: Fix return value from aug_defnode.Richard Jones2009-11-241-1/+1
| | | | | Bug fix - the return value from this function was wrong in the no-Augeas case.
* availability: Add optional groups and implement guestfs_available call.Richard Jones2009-11-201-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current groups are defined very conservatively using the following criteria: (a) Would be impossible to implement on Windows because of sheer architectural differences (eg: mknod). (b) Already optional (augeas, inotify). (c) Not currently optional but not implemented on older RHEL and Debian releases (ntfs-3g.probe, scrub, zerofree). The optional groups I've defined according to these criteria are: . augeas . inotify . linuxfsuuid . linuxmodules . linuxxattrs . lvm2 . mknod . ntfs3g . scrub . selinux . zerofree (Note that these choices don't prevent us from adding more optional groups in future. On the other hand to avoid breaking ABIs we would not wish to change the above groups). The rest of this large commit is really just implementation: Each optional function is classified using Optional "group" flag in the generator. The daemon has to implement a function int optgroup_<name>_available (void); for each optional group. Some of these functions are fixed at compile time, and some do simple run-time tests. The do_available implementation in the daemon looks up the correct function in a table and runs it. We document the optional groups in the guestfs(3) man page. Also: I added a NOT_AVAILABLE macro in order to unify all the existing places where we had a message equivalent to "function __func__ is not available".
* Fix compilation when Augeas is not present.Richard Jones2009-11-101-1/+1
| | | | It would complain that NEED_AUG macro was defined but not used.
* adjust const "**" pointers to avoid warningsJim Meyering2009-08-171-1/+1
| | | | | | Also, ... * src/generator.ml: Add DeviceList type, and propagate that change out to all calling/interface code.
* generator.ml: use new "Pathname" designationJim Meyering2009-08-131-13/+10
| | | | | | | | | | Nearly every file-related function in daemons/*.c is affected: Remove this pair of statements from each affected do_* function: - NEED_ROOT (return -1); - ABS_PATH (dir, return -1); and change the type of the corresponding parameter to "const char *". * src/generator.ml: Emit NEED_ROOT just once, even when there are two or more Pathname args.
* update all NEED_ROOT usesJim Meyering2009-08-131-1/+1
| | | | | | run this command: git grep -l -w NEED_ROOT|xargs perl -pi -e \ 's/(NEED_ROOT) \((.*?)\)/$1 (return $2)/'
* update all uses of ABS_PATHJim Meyering2009-08-131-2/+2
| | | | | | run this command: git grep -l -w ABS_PATH|xargs perl -pi -e \ 's/(?:ABS_PATH)( \(.*?,) (.*?)\)/ABS_PATH$1 return $2)/'
* Make /sysroot path configurable.Richard Jones2009-07-181-4/+1
| | | | | | | | | Currently /sysroot is hard-coded throughout the daemon code. This patch turns the path into a variable so that we can change it in future, for example to allow standalone mode to be implemented. This patch was tested by running all the C API tests successfully.
* Generate structs and struct lists generically.Richard Jones2009-07-071-5/+5
| | | | | | | | | | | This modifies the way that struct and struct lists are generated (for return values) so that there is no need to add an explicit new type when adding a new structure. All tests pass, and the C API should be compatible. I have also inspected the changes that are made to the generated code by hand.
* remove trailing blanksJim Meyering2009-07-031-1/+1
|
* In the daemon, change all const char * parameters to char *.Richard Jones2009-06-101-10/+10
|
* Augeas is now completely optional.Richard Jones2009-05-071-3/+58
|
* Old versions of augeas lack aug_load, aug_defvar, aug_node. Check for those ↵Richard Jones2009-04-131-0/+15
| | | | calls.
* Fix off-by-one error in Augeas wrapper code.Richard Jones2009-04-101-1/+1
|
* Add aug-ls command (non-generated code).Richard Jones2009-04-091-0/+43
|
* Added Augeas support.Richard Jones2009-04-091-0/+278