summaryrefslogtreecommitdiff
path: root/src/storage.c
AgeCommit message (Collapse)AuthorFilesLines
2016-06-17[SPIN] Fix the connman bugs.Niraj Kumar Goit1-0/+14
- Fixed NTP service's DNS resolving failure in Hive project. - Do not turn "wlan0" interface down in cleanup_devices(). - Set resource limits "RLIMIT_NOFILE" for a process. - After appending a file, fflush and fsync all modified in-core data of the file. Change-Id: I2767b3302d6204d066fe2075027828ff209d0ee0 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak1-0/+0
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-55/+55
2013-02-19storage: Add function to load provider configuration fileJukka Rissanen1-0/+16
2013-01-04storage: Remove storage migration codePatrik Flykt1-175/+0
2013-01-04core: Remove WiMAX definitions from codePatrik Flykt1-15/+0
2012-11-23storage: Add function to remove provider filesJukka Rissanen1-0/+40
2012-11-05storage: Add void if function does not have any argumentsDaniel Wagner1-4/+4
2012-08-07storage.c: Search for settings file even if d_type is DT_UNKNOWN.Andrei Gherzan1-0/+1
This is useful for filesystems where d_type is always DT_UNKNOWN, for example in reiserfs.
2012-07-18storage: check that the string isn't empty before splittingRoss Burton1-1/+5
If the string was non-NULL but empty (str="\0"), the following \0 assignment would write to str[-1] and thus cause memory corruption. On PPC and MIPS, this was causing crashes in glibc.
2012-06-11storage: Add function to remove a service directoryJukka Rissanen1-0/+63
All known files from service directory are removed and if successfull then the service directory is also removed.
2012-05-28storage: Remove obsolete functions that nobody callsJukka Rissanen1-24/+0
Config load and save functions are not called so they are not needed.
2012-05-24storage: migrate 0.76-era device enabled / powered stateGrant Erickson1-5/+29
This patch ensures that [device_<type>] Powered=<true|false> device enabled / powered state migrates from 0.76-era versions of default.profile.
2012-05-24storage: Remove default.profile when migration has been donePatrik Flykt1-6/+19
Unconditionally remove default.profile without any migration if the currently used global settings save file exists. The current settings formats for global and service settings were introduced in version 0.78.
2012-05-24storage: Migrate services from obsolete default.profilePatrik Flykt1-0/+52
In order to remove the obsolete default.profile, migrate services into the new setup with per-service directories. If the service exists in the new format, it is not migrated.
2012-05-24storage: Remove support for loading services from default.profilePatrik Flykt1-10/+0
2012-05-24storage: Return any errors when saving services and global configPatrik Flykt1-8/+18
2012-04-29core: Update copyright informationMarcel Holtmann1-1/+1
2012-04-27storage: Create settings file only when migratingJukka Rissanen1-27/+7
The settings file is created only when migrating from default.profile. This means that technology default values are used if settings file does not exists.
2012-01-27storage: Function to fetch all saved providersPatrik Flykt1-0/+49
Implement __connman_storage_get_providers() to fetch all stored providers.
2012-01-05storage: Using the right free funcFlavio Ceolin1-1/+1
Fixing a segfault when it fails to store an information, just using g_error_free instead of g_free.
2011-12-22storage: Remove useless commentsDaniel Wagner1-6/+0
No additional information in the comments.
2011-12-22storage: Use technology name Cellular instead 3GDaniel Wagner1-4/+4
2011-11-24storage: Add default values to settings file.Alok Barsode1-25/+58
On a clean start (without default.profile) create the settings file with default values. Here is a list of default values: Offlinemode = off. Wifi = disabled. bluetooth = disabled. ethernet = disabled. 3G = disabled. WiMAX = disabled. The reason for offlinemode to be off here is that any changes to the technology will not be recorded if we start in offlinemode. Fixes BMC#24285
2011-11-07storage: Load and save functions for providersPatrik Flykt1-0/+38
2011-11-07storage: Trivial change to free pathname in common part of the codePatrik Flykt1-5/+2
2011-11-07storage: Don't list provider settings directoriesPatrik Flykt1-1/+2
2011-09-13storage: Export service loading functionJukka Rissanen1-1/+1
2011-09-13storage: Add services getterJukka Rissanen1-0/+54
2011-09-12storage: Switch to <service_id> directoriesAlok Barsode1-0/+81
Service settings would now reside in /var/lib/connman/service_id/settings. we fallback on /var/lib/connman/default.profile for a smooth transition.
2011-09-12storage: Switch to settings fileAlok Barsode1-64/+175
All the global settings would reside in /var/lib/connman/settings. We also migrate global keys from /var/lib/connman/default.profile to /var/lib/connman/settings for a smooth transition.
2011-08-25storage: remove storage module frameworkAlok Barsode1-89/+0
2011-08-25storage: Remove technology state load/save methods from storage moduleAlok Barsode1-36/+0
2011-08-25profile: Remove profile.c and profile.hAlok Barsode1-54/+0
2011-08-25device: Remove device persistent codeAlok Barsode1-36/+0
Connman now stores technology states persistently. Hence there is no reason to store device states persistently.
2011-08-25technology: Save state persistentlyAlok Barsode1-0/+36
Save the technology state persistently. This will help in resuming the technology state after offlinemode or during startup. This patch just saves the states.
2011-06-16element: Remove element.cDaniel Wagner1-0/+1
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-14Add framework for configuration filesMarcel Holtmann1-0/+17
2009-12-14Add generic suffix handling to storage helpersMarcel Holtmann1-9/+28
2009-08-04Add support for creating, modifying and removing profilesMarcel Holtmann1-39/+69
2009-07-22Remove deprecated and unused network storage callbacksMarcel Holtmann1-79/+0
2009-07-22Add common helpers for keyfile storageMarcel Holtmann1-0/+66
2009-07-22Add infrastructure for global settings storageMarcel Holtmann1-0/+36
2009-04-23Add callbacks for service storage functionsMarcel Holtmann1-0/+43
2009-01-07Add support for storage setup callbacksMarcel Holtmann1-0/+36
2009-01-05Remove element specific storage functionsMarcel Holtmann1-165/+0
2009-01-04Remove useless driver debugging detailsMarcel Holtmann1-8/+0
2009-01-04Add functions for loading and saving informationMarcel Holtmann1-0/+80
2009-01-04Add skeleton for storage driversMarcel Holtmann1-0/+41