libvirt/src/node_device
Jean-Baptiste Rouault 966a1bfe22 Create file in virFileWriteStr() if it doesn't exist
This patch adds a mode_t parameter to virFileWriteStr().
If mode is different from 0, virFileWriteStr() will try
to create the file if it doesn't exist.

* src/util/util.h (virFileWriteStr): Alter signature.
* src/util/util.c (virFileWriteStr): Allow file creation.
* src/network/bridge_driver.c (networkEnableIpForwarding)
(networkDisableIPV6): Adjust clients.
* src/node_device/node_device_driver.c
(nodeDeviceVportCreateDelete): Likewise.
* src/util/cgroup.c (virCgroupSetValueStr): Likewise.
* src/util/pci.c (pciBindDeviceToStub, pciUnBindDeviceFromStub):
Likewise.
2010-12-03 08:08:22 -07:00
..
node_device_driver.c Create file in virFileWriteStr() if it doesn't exist 2010-12-03 08:08:22 -07:00
node_device_driver.h nodedev: Fix sysfs paths for vport operations 2010-08-18 17:32:31 +02:00
node_device_hal.c Don't fail on missing D-Bus 2010-10-13 14:47:19 +02:00
node_device_hal.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
node_device_linux_sysfs.c bye to close(), welcome to VIR_(FORCE_)CLOSE() 2010-11-09 15:48:48 -05:00
node_device_udev.c udev: Parse PCI devices even if libpciaccess fails 2010-07-02 10:30:29 -04:00
node_device_udev.h maint: make Red Hat copyright notices consistent 2010-03-18 16:48:05 +01:00