platform/core/system/libstorage.git
4 months agostorage: Remove profile version from header files 45/302745/1 accepted/tizen_unified accepted/tizen_unified_riscv tizen accepted/tizen/unified/20231214.164914 accepted/tizen/unified/riscv/20231215.050213
Unsung Lee [Wed, 13 Dec 2023 04:48:15 +0000 (13:48 +0900)]
storage: Remove profile version from header files

Change-Id: I47daeeb5bf422ce3d3e41f49c0a8e6a532b0ba95
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
7 months agoIncrease line coverage using LCOV_EXCL 23/298123/2 accepted/tizen_8.0_unified accepted/tizen/8.0/unified/20231005.093809 accepted/tizen/unified/20230904.165028 tizen_8.0_m2_release
Unsung Lee [Thu, 31 Aug 2023 01:11:46 +0000 (10:11 +0900)]
Increase line coverage using LCOV_EXCL

Increase line coverage using LCOV_EXCL in only internal API called function
and additional error handling code except invalid parameter.

Change-Id: I7089703a9185ecc2c91dd3b60b27b763154351e7
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
7 months agoIncrease line coverage using LCOV_EXCL 00/298000/6 accepted/tizen/unified/20230831.081041
Unsung Lee [Wed, 30 Aug 2023 01:27:56 +0000 (10:27 +0900)]
Increase line coverage using LCOV_EXCL

Increase line coverage using LCOV_EXCL_LINE
and a pair of LCOV_EXCL_START and LCOV_EXCL_STOP in error handling code and
internal API function.

Policy to user LCOV_EXCL
1. Exclude error handling code from line coverage except invalid parameter.
2. Exclude entire internal API function using LCOV_EXCL_START and LCOV_EXCL_STOP.

Change-Id: I5fad3b2ccc311d8abf211e245cf0dae834f0515c
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
9 months agoReplace prefix 'libsys' with 'syscommon' 09/296309/1 accepted/tizen/unified/20230726.163534 accepted/tizen/unified/riscv/20230809.013252
Youngjae Cho [Tue, 25 Jul 2023 08:38:12 +0000 (17:38 +0900)]
Replace prefix 'libsys' with 'syscommon'

Change-Id: If007513adc6d33e02796eb91f73ecf5d41c5d069
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
9 months agoUse private dbus connection for synchronous calls. 12/295612/2 accepted/tizen/unified/20230718.162129
Mateusz Moscicki [Mon, 10 Jul 2023 15:35:15 +0000 (17:35 +0200)]
Use private dbus connection for synchronous calls.

This change is related to dotnet-launcher which in the process
preparation, caused the connection to be established, which had a
privileged label and was later used by an unprivileged application

From now the connection is established before the dbus method is called
and closed immediately after that.

Change-Id: If346b1c519e83eb08863845e2b9c240dc31c5727

9 months agoFixed the build error using gcc 13 36/295036/1 accepted/tizen_unified_dev accepted/tizen/unified/dev/20230726.115608
wchang kim [Fri, 30 Jun 2023 06:47:36 +0000 (15:47 +0900)]
Fixed the build error using gcc 13

Change-Id: Ica1f9d0f59a91617b9e607ded7ad045161a1f52f

22 months agoApply requirement for gcov automation 24/276124/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061719 accepted/tizen/7.0/unified/hotfix/20221116.105734 accepted/tizen/unified/20220613.161613 submit/tizen/20220610.020359 tizen_7.0_m2_release
Youngjae Cho [Fri, 10 Jun 2022 01:09:26 +0000 (10:09 +0900)]
Apply requirement for gcov automation

Change-Id: I92c4e7d386defcdee2467a6153faf51735f692d5
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoUse libsys_is_container() 30/273730/1 accepted/tizen/unified/20220526.144340 accepted/tizen/unified/20220530.140627 submit/tizen/20220525.001052 submit/tizen/20220528.014654
Hyotaek Shim [Wed, 13 Apr 2022 05:50:11 +0000 (14:50 +0900)]
Use libsys_is_container()

Change-Id: I1ec302f6ecf34f760103ad178987fed107602527
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agoChange gcov object install path 45/270145/1 accepted/tizen/unified/20220128.144421 submit/tizen/20220127.011830
Youngjae Cho [Wed, 26 Jan 2022 05:50:17 +0000 (21:50 -0800)]
Change gcov object install path

Change-Id: I9cf872fe5b9badcc042a0c850e194a3c7467e21b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoSupport container path when checking "opt/user" is mounted. 41/260841/2 accepted/tizen/6.5/unified/20211028.114951 accepted/tizen/unified/20210707.070859 submit/tizen/20210706.074949 submit/tizen_6.5/20211028.162501 tizen_6.5.m2_release
Yunmi Ha [Mon, 5 Jul 2021 11:42:02 +0000 (20:42 +0900)]
Support container path when checking "opt/user" is mounted.

Change-Id: Ie0c1474258eafcd93634784fed58da74703544ca
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoChange dbus function name 70/255570/1 accepted/tizen/unified/20210321.225722 submit/tizen/20210319.090004
taemin.yeom [Fri, 19 Mar 2021 08:01:30 +0000 (17:01 +0900)]
Change dbus function name

Change-Id: I6f6aabf82a4f9e63b1ac678579cafaed5299767b
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoImprove variable naming style 22/255122/4 accepted/tizen/unified/20210317.115939 submit/tizen/20210315.085912
taemin.yeom [Fri, 12 Mar 2021 07:56:25 +0000 (16:56 +0900)]
Improve variable naming style

Change-Id: Ic97f7e14016d60405fb55dffaf0d62ab411ec849
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoApply libsyscommon gdbus api improvement on error handling 44/254744/1 accepted/tizen/unified/20210310.144937 submit/tizen/20210309.090957
taemin.yeom [Tue, 9 Mar 2021 06:26:55 +0000 (15:26 +0900)]
Apply libsyscommon gdbus api improvement on error handling

Change-Id: I50e592ff81431ff8580c9c153d865e3f0144c616
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoUse libsyscommon 01/251001/1 accepted/tizen/unified/20210111.125458 submit/tizen/20210108.041937
Yunmi Ha [Wed, 6 Jan 2021 11:32:41 +0000 (20:32 +0900)]
Use libsyscommon

- list, ini-parser, dbus

Change-Id: Iaf8b4dfa551118461aae25d1d654e7ec136567ec
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoRemoving unnecessary HTML link for privilege 65/249765/1 accepted/tizen/unified/20201218.124454 submit/tizen/20201217.020052
Yunmi Ha [Wed, 16 Dec 2020 11:18:27 +0000 (20:18 +0900)]
Removing unnecessary HTML link for privilege

Change-Id: I3ee33cb216716d8dc8efa7b93af5cdf6d378d08d
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoFix memory leak 88/244688/4 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.115617 accepted/tizen/6.0/unified/hotfix/20201103.004326 accepted/tizen/unified/20201005.005817 submit/tizen/20200924.064724 submit/tizen/20200925.070823 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
Yunmi Ha [Wed, 23 Sep 2020 08:07:00 +0000 (17:07 +0900)]
Fix memory leak

-After call g_variant_get function with string format,
should call free.

Change-Id: I6d2f74e4aaf920030ae3b691ea6705fb6f8623cf
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoSupport gcov build option 00/233900/1 accepted/tizen/unified/20200820.133536 submit/tizen/20200819.040524
Yunmi Ha [Wed, 20 May 2020 07:37:30 +0000 (16:37 +0900)]
Support gcov build option

Change-Id: I8160fd8004ea29200d968a7ddfadd396ae303a6f
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoFix stringop-truncation error 56/232756/1
Slava Barinov [Thu, 7 May 2020 10:13:52 +0000 (13:13 +0300)]
Fix stringop-truncation error

src/statvfs.c:121:4: error: 'strncpy' specified bound 64 equals destination size [-Werror=stringop-truncation]

Change-Id: I328d339e73aeaff2c34db5531b0a3a30ece8f0ed
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
4 years agoRemove 'format-truncation' warning for GCC-9 26/221126/1 accepted/tizen/unified/20200106.141605 submit/tizen/20200103.083647
Yunmi Ha [Fri, 27 Dec 2019 08:32:31 +0000 (17:32 +0900)]
Remove 'format-truncation' warning for GCC-9

Change-Id: I561072c619f169309d66dde7a1946664b8d55935
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoChange "developer.tizen.org" link to "docs.tizen.org" 00/220000/1
Yunmi Ha [Thu, 12 Dec 2019 08:37:19 +0000 (17:37 +0900)]
Change "developer.tizen.org" link to "docs.tizen.org"

Change-Id: I9349eac4b09a42df7360a0bcff2bbc5363eaa1aa
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoChange reference page url 22/210722/1 accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.023535 accepted/tizen/5.5/unified/mobile/hotfix/20201027.091003 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113603 accepted/tizen/unified/20190725.042845 submit/tizen/20190724.074129 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
Yunmi Ha [Wed, 24 Jul 2019 05:35:55 +0000 (14:35 +0900)]
Change reference page url

Change-Id: I3a4217159e4ce9f5981980dd2cc99c71a45c4f01
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoAdd comment for privacy-related privilege 35/210635/4
Yunmi Ha [Tue, 23 Jul 2019 07:51:41 +0000 (16:51 +0900)]
Add comment for privacy-related privilege

Change-Id: I2187c3930838364ff3afe8364a0ee99a2e4431d7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
5 years agoModify the path of external-storage and extended-internal-sd directories 02/199902/1 accepted/tizen/unified/20190311.220601 submit/tizen/20190311.020751
pr.jung [Fri, 15 Feb 2019 08:55:53 +0000 (17:55 +0900)]
Modify the path of external-storage and extended-internal-sd directories

Change-Id: I4dfb0d9f9a93f44c0d0adfca59efee4864482073
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoRemove resource leak 08/199608/1 accepted/tizen/unified/20190214.060737 submit/tizen/20190214.011711
pr.jung [Wed, 13 Feb 2019 07:43:57 +0000 (16:43 +0900)]
Remove resource leak

Change-Id: If9959d9b79061f9c0042a57174a95bdff2898c37
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoCheck parameter and return error 01/199601/1
pr.jung [Wed, 13 Feb 2019 07:29:48 +0000 (16:29 +0900)]
Check parameter and return error

Change-Id: Id539067762144bfdbf34b1b419d2126f5f8ac76e
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoReturn NOT_SUPPORTED error when block module is disabled 97/199497/1 submit/tizen/20190213.065644
pr.jung [Tue, 12 Feb 2019 07:15:10 +0000 (16:15 +0900)]
Return NOT_SUPPORTED error when block module is disabled

Change-Id: I5bae529b243b85da8916de94eb6df1186d0a40a9
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoReturn NOT_SUPPORTED error when block module is disabled 82/199382/1 submit/tizen/20190211.075306
pr.jung [Mon, 11 Feb 2019 05:24:09 +0000 (14:24 +0900)]
Return NOT_SUPPORTED error when block module is disabled

Change-Id: I33c0aeb2520c0414cd61e37a73a18bc687823b1a
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoAdd description for http://tizen.org/feature/storage.external 91/198491/1 submit/tizen/20190208.014031
pr.jung [Fri, 25 Jan 2019 02:27:41 +0000 (11:27 +0900)]
Add description for tizen.org/feature/storage.external

Change-Id: I534b9d1f0fad8469350680563f778b65255cda3d
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoAdd http://tizen.org/feature/storage.external feature for external storage 89/193389/9
pr.jung [Tue, 20 Nov 2018 05:48:47 +0000 (14:48 +0900)]
Add tizen.org/feature/storage.external feature for external storage

- Add http://tizen.org/feature/storage.external feature for block module
- Return STORAGE_ERROR_NOT_SUPPORTED for not supported error

Change-Id: I76a9e85b3ae60165cedb9a3ceae53a11ed6d0d95
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoMinor fix on license 69/188869/1 accepted/tizen/5.0/unified/20181102.022029 accepted/tizen/unified/20180928.080600 submit/tizen/20180927.030248 submit/tizen_5.0/20181101.000004
Hyotaek Shim [Tue, 11 Sep 2018 07:25:44 +0000 (16:25 +0900)]
Minor fix on license

Change-Id: Id19d794bd15b6c0b3406ec27c8916a756cb82cf8
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd license file on all rpm packages 47/188847/1 accepted/tizen/unified/20180912.061601 submit/tizen/20180911.060541
pr.jung [Tue, 11 Sep 2018 05:45:06 +0000 (14:45 +0900)]
Add license file on all rpm packages

Change-Id: I17687df79b90eb6820e1e8a867fc7fdc7be4276c
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoFix documentation for storage_get_internal_memory_size and storage_get_external_memor... 33/186533/1 accepted/tizen/unified/20180813.061434 submit/tizen/20180810.063429
pr.jung [Fri, 10 Aug 2018 06:23:02 +0000 (15:23 +0900)]
Fix documentation for storage_get_internal_memory_size and storage_get_external_memory_size

Change-Id: Ic71b471508ce6598a181775468aaf597e1e1668f
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoFix some #define and add comments regarding _FILE_OFFSET_BITS=32/64 86/186486/3
Hyotaek Shim [Fri, 10 Aug 2018 02:12:15 +0000 (11:12 +0900)]
Fix some #define and add comments regarding _FILE_OFFSET_BITS=32/64

Change-Id: I7849e96b6a1e006685e2c6be953b0092dc953f86
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd an internal api: storage_is_mounted_opt_usr 87/185987/4 accepted/tizen/unified/20180810.132529 submit/tizen/20180810.001302
pr.jung [Mon, 6 Aug 2018 06:32:13 +0000 (15:32 +0900)]
Add an internal api: storage_is_mounted_opt_usr

Change-Id: I341f6ac3b481b827ccb381b883dddd559f040c5b
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoAdd storage_is_mounted api 85/185485/1
pr.jung [Tue, 31 Jul 2018 05:32:45 +0000 (14:32 +0900)]
Add storage_is_mounted api

- Check input param path is mounted

Change-Id: Ief2f3d1703273d93dcd873c17defda7b6bd6c80e
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoAdd comments for line coverage 55/185155/1
pr.jung [Thu, 26 Jul 2018 09:09:28 +0000 (18:09 +0900)]
Add comments for line coverage

Change-Id: I3d1b8a61d718608eec06736191961ea8fa4a8a04
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoChange tzplatform_getenv to tzplatform_uid_getenv 93/184793/2 accepted/tizen/unified/20180724.073327 submit/tizen/20180723.094911
pr.jung [Mon, 23 Jul 2018 06:52:22 +0000 (15:52 +0900)]
Change tzplatform_getenv to tzplatform_uid_getenv

- Cover multi-user case

Change-Id: I82cb6a0621ca1e87ae4009d7797cdd963ebf57a6
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoMinor fixes: comments, license .. 57/184657/1
Hyotaek Shim [Fri, 20 Jul 2018 01:57:16 +0000 (10:57 +0900)]
Minor fixes: comments, license ..

Change-Id: I09d102eae0b5990057c0492f52d5155243deff24
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoChange internal storage media path returned from storage_get_directory() 70/184570/4 accepted/tizen/unified/20180719.152633 submit/tizen/20180719.052039
Hyotaek Shim [Thu, 19 Jul 2018 02:16:24 +0000 (11:16 +0900)]
Change internal storage media path returned from storage_get_directory()

(Before) /opt/usr/media/XXX
(After)  /opt/usr/home/USER/media/XXX

/opt/usr/media bind-mounted by /opt/usr/home/USER/media
is workaround for supporting legacy Tizen applications based on /opt/usr/media hard coding.
Strictly, public apis do not need to use legacy path (/opt/usr/media).

Change-Id: Ida39777ac40587719beb8d28b8f04172c98900e5
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoCheck block module enabled before sending GetMmcPrimary dbus method 72/183872/1 accepted/tizen/unified/20180712.142302 submit/tizen/20180712.053331
pr.jung [Thu, 12 Jul 2018 04:29:48 +0000 (13:29 +0900)]
Check block module enabled before sending GetMmcPrimary dbus method

Change-Id: I2634ba2130c35f7c3ccca9e8164ac9c73a9d47a3
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoAdd internal apis to mount/unmount/format primary sdcard 80/183180/1 accepted/tizen/unified/20180705.172757 submit/tizen/20180705.064054
pr.jung [Tue, 3 Jul 2018 02:44:20 +0000 (11:44 +0900)]
Add internal apis to mount/unmount/format primary sdcard

- storage_request_mount_mmc
- storage_request_unmount_mmc
- storage_request_format_mmc
- storage_format_mmc

Change-Id: I48bef7b586da884d314bbc64a5938e363c7ca00f
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoModify storage_get_storage_level 19/182819/4 accepted/tizen/unified/20180629.061546 submit/tizen/20180628.074606
pr.jung [Thu, 28 Jun 2018 07:27:54 +0000 (16:27 +0900)]
Modify storage_get_storage_level

- Change fist parameter of storage_get_storage_level
enum tzplatform_variable -> char *
- Remove tzplatform_config.h in storage-internal.h

Change-Id: I3f5ac4d6ff47aad5cccce101c7775cb1ce3e0379
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoAdd .gitignore 02/182802/1
Hyotaek Shim [Thu, 28 Jun 2018 06:00:31 +0000 (15:00 +0900)]
Add .gitignore

Change-Id: I71ff3c054b7ac9f8c006841ef683e79decee0796
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoChange TZ_SYS_HOME to TZ_SYS_USER 84/182684/1 submit/tizen/20180627.063926
pr.jung [Wed, 27 Jun 2018 05:49:14 +0000 (14:49 +0900)]
Change TZ_SYS_HOME to TZ_SYS_USER

- TZ_SYS_HOME : "/opt/usr/home"
- TZ_SYS_USER: "/opt/usr"

Change-Id: I67e1c179d31559d79dc2ff0edf4f8db0f6c82580
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoRemove unused code 57/182457/1
pr.jung [Mon, 25 Jun 2018 08:57:12 +0000 (17:57 +0900)]
Remove unused code

Change-Id: I64ac16874dcbfda72f88ad9ed001e67b064083b3
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoAdd new internal api 62/182062/2
pr.jung [Wed, 20 Jun 2018 05:56:52 +0000 (14:56 +0900)]
Add new internal api

- storage_get_storage_level
- Get the current storage level

Change-Id: I9be56c1c98a38cc210582aee1072b0b9d340badd
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoMake a new public api: storage_get_type_dev 99/181299/6 accepted/tizen/unified/20180625.141508 submit/tizen/20180622.021901
pr.jung [Tue, 12 Jun 2018 02:30:07 +0000 (11:30 +0900)]
Make a new public api: storage_get_type_dev

Change-Id: I318bd964d15b61bc0627b536e4a101ba27b4528a
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoWhen storage id is invalid GetDeviceInfo return with id which is less than 0 22/178122/1 accepted/tizen/unified/20180509.072933 submit/tizen/20180508.075947
pr.jung [Tue, 8 May 2018 07:30:50 +0000 (16:30 +0900)]
When storage id is invalid GetDeviceInfo return with id which is less than 0

Change-Id: I851d7d457c2e341a753adb4dfc951a150c4fee1e
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoOnly user session api calls can get internal storage root path 29/177229/2 accepted/tizen/unified/20180426.145908 submit/tizen/20180426.094326
pr.jung [Thu, 26 Apr 2018 08:20:01 +0000 (17:20 +0900)]
Only user session api calls can get internal storage root path

Change-Id: Ifc044e9151a3b855c8a2ad1bddc82e55bd2e699b
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoAdd defense code for wrong use cases 81/175881/2 accepted/tizen/unified/20180413.151930 submit/tizen/20180413.055627
Hyotaek Shim [Fri, 13 Apr 2018 05:52:29 +0000 (14:52 +0900)]
Add defense code for wrong use cases
Only Tizen applications and user session daemons can use
storage_get_root_directory(STORAGE_TYPE_INTERNAL, ...).

Change-Id: I107b027a06843bbd88f7a1008f8051b6c5430b79
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoCall GetStatvfs dbus method for external storage size 91/171191/5 accepted/tizen/unified/20180307.071338 submit/tizen/20180306.082630
pr.jung [Tue, 27 Feb 2018 08:31:51 +0000 (17:31 +0900)]
Call GetStatvfs dbus method for external storage size

Change-Id: I43f8f7ec1b8f4214c6d03d64f5667449e3b94d55
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoCheck type for registered callback 65/164065/1 accepted/tizen/unified/20171218.143835 submit/tizen/20171218.023220
pr.jung [Thu, 14 Dec 2017 08:13:31 +0000 (17:13 +0900)]
Check type for registered callback

- Storage type and registered callback type should be the same

Change-Id: If9bc286b93595f5f92889b435bdeddfbfb7abc19
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoDD_LIST_FOREACH_SAFE should be used when there is node remove operation from list. 23/151123/1 accepted/tizen/unified/20171019.060836 submit/tizen/20171018.074948
pr.jung [Wed, 20 Sep 2017 02:49:40 +0000 (11:49 +0900)]
DD_LIST_FOREACH_SAFE should be used when there is node remove operation from list.

Change-Id: I807635a8959bdc66a26f7b6544e01c56a0bcbdd5
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agostoraged has block.conf from tizen 4.0 62/148262/1 accepted/tizen/unified/20170914.154239 submit/tizen/20170913.074900
pr.jung [Thu, 7 Sep 2017 08:04:43 +0000 (17:04 +0900)]
storaged has block.conf from tizen 4.0

Change-Id: I1cf7579be57b837e6b372c6a2412a42503ca0410
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoblock: remove external-storage call if block module is not supported 95/146695/2
pr.jung [Wed, 30 Aug 2017 05:37:45 +0000 (14:37 +0900)]
block: remove external-storage call if block module is not supported

Change-Id: Ia9bbe4f66609ff566fffe3b7c4aa0e4a2698cffe
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoAdd EXTENDED_INTERNAL type for extended internal storage 64/124964/11 accepted/tizen/4.0/unified/20170816.012035 accepted/tizen/4.0/unified/20170829.020542 accepted/tizen/unified/20170608.072310 submit/tizen/20170607.084951 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
pr.jung [Thu, 13 Apr 2017 07:18:10 +0000 (16:18 +0900)]
Add EXTENDED_INTERNAL type for extended internal storage

Change-Id: I68d069cc718f3b735622fe20ee902b7c505f540e
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoUse tzplatform-config for storage_get_directory 16/128816/1 accepted/tizen/unified/20170511.173603 submit/tizen/20170511.114720 tizen_4.0.m1_release
pr.jung [Thu, 11 May 2017 11:43:06 +0000 (20:43 +0900)]
Use tzplatform-config for storage_get_directory

Change-Id: Ic079a84945fa0c6f55367c9d4c90321b7b2133cc
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoFix document 75/127075/1 accepted/tizen/unified/20170427.163956 submit/tizen/20170426.062449
pr.jung [Wed, 26 Apr 2017 06:20:01 +0000 (15:20 +0900)]
Fix document

Change-Id: I093c1063017a867d8d44b041204602d0d68487aa
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 00/118800/3 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170314.173139 accepted/tizen/ivi/20170314.224129 accepted/tizen/mobile/20170314.224111 accepted/tizen/tv/20170314.224118 accepted/tizen/unified/20170315.014633 accepted/tizen/wearable/20170314.224125 submit/tizen/20170314.090456
Sunmin Lee [Tue, 14 Mar 2017 07:13:31 +0000 (16:13 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I08bc159ce0d3b8d7427d6a9d57d4b0b5cc877347

7 years agoAdd comment for untested codes 98/118798/2 accepted/tizen/3.0/common/20170315.122731 accepted/tizen/3.0/ivi/20170315.075507 accepted/tizen/3.0/mobile/20170315.075331 accepted/tizen/3.0/tv/20170315.075405 accepted/tizen/3.0/wearable/20170315.075436 submit/tizen_3.0/20170314.090428
Sunmin Lee [Tue, 14 Mar 2017 05:58:26 +0000 (14:58 +0900)]
Add comment for untested codes

It will be covered when test infra is ready.

Change-Id: I8ce5ae89d2a8f12ef8b45702181ce12cffff392f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoProofread header file 67/115067/1 accepted/tizen/3.0/common/20170217.121955 accepted/tizen/3.0/ivi/20170217.022343 accepted/tizen/3.0/mobile/20170217.021859 accepted/tizen/3.0/tv/20170217.022032 accepted/tizen/3.0/wearable/20170217.022204 submit/tizen_3.0/20170216.093633
Kichan Kwon [Thu, 16 Feb 2017 07:43:55 +0000 (16:43 +0900)]
Proofread header file

Change-Id: I4422a9601b3c45d5d23670198bc22d073c605154
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 52/114752/2 accepted/tizen/common/20170216.093725 accepted/tizen/ivi/20170216.094840 accepted/tizen/mobile/20170216.094755 accepted/tizen/tv/20170216.094810 accepted/tizen/unified/20170309.033938 accepted/tizen/wearable/20170216.094825 submit/tizen/20170216.010955 submit/tizen_unified/20170308.100409
Sunmin Lee [Wed, 15 Feb 2017 02:48:31 +0000 (11:48 +0900)]
Merge branch 'tizen_3.0' into tizen

- Apply line coverage comments
- Change the name of Camera directory

Change-Id: I82421e224682b8294a39f9ed87b62704d83e3e2b

7 years agoChange the name of Camera directory 17/113917/1 accepted/tizen/3.0/common/20170214.180257 accepted/tizen/3.0/ivi/20170214.042240 accepted/tizen/3.0/mobile/20170214.041833 accepted/tizen/3.0/tv/20170214.042002 accepted/tizen/3.0/wearable/20170214.042127 submit/tizen_3.0/20170213.010121
Sunmin Lee [Thu, 9 Feb 2017 08:51:56 +0000 (17:51 +0900)]
Change the name of Camera directory

According to UX guide, the name of Camera directory
needs to be changed to DCIM.

Change-Id: I794f4a990b62bd17049384ac3f4f2f95cb6af576
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoApply line coverage comments 36/109936/1 tizen_3.0_tv accepted/tizen/3.0/common/20170126.092421 accepted/tizen/3.0/ivi/20170126.060426 accepted/tizen/3.0/mobile/20170126.060342 accepted/tizen/3.0/tv/20170126.060358 accepted/tizen/3.0/wearable/20170126.060409 submit/tizen_3.0/20170125.062656
pr.jung [Thu, 12 Jan 2017 08:25:16 +0000 (17:25 +0900)]
Apply line coverage comments

Change-Id: Iaf69e7622e24e0663aa74415a97fc0a574f71fc9
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 07/107607/1 accepted/tizen/common/20161229.140119 accepted/tizen/ivi/20161229.233155 accepted/tizen/mobile/20161229.233048 accepted/tizen/tv/20161229.233117 accepted/tizen/wearable/20161229.233136 submit/tizen/20161229.040631
taeyoung [Thu, 29 Dec 2016 01:37:59 +0000 (10:37 +0900)]
Merge branch 'tizen_3.0' into tizen

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: Ife2facb5e34e5d7684935a59a13562c4bee61d7c

7 years agoRemove system-settings dependency 64/105164/1 accepted/tizen/common/20161216.124331 accepted/tizen/ivi/20161216.082702 accepted/tizen/mobile/20161216.082606 accepted/tizen/tv/20161216.082627 accepted/tizen/wearable/20161216.082644 submit/tizen/20161216.011345
pr.jung [Tue, 29 Nov 2016 05:17:43 +0000 (14:17 +0900)]
Remove system-settings dependency

- Get Ringtone path using vconfkey

Change-Id: Iea9d680f85f8c6fc3c8ed8d42b1bd47aa99ce148
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoModify return value for invalid storage id 50/102550/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141744 accepted/tizen/3.0.m2/tv/20170104.142128 accepted/tizen/3.0.m2/wearable/20170104.142422 accepted/tizen/3.0/common/20161209.094921 accepted/tizen/3.0/ivi/20161209.002546 accepted/tizen/3.0/mobile/20161209.002510 accepted/tizen/3.0/tv/20161209.002527 accepted/tizen/3.0/wearable/20161209.002536 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161208.091728
pr.jung [Tue, 6 Dec 2016 05:44:49 +0000 (14:44 +0900)]
Modify return value for invalid storage id

Change-Id: I84256fb1ad79fbe2b915e10fc52d5a35ccade445
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoAdd storage-experimental.h on CMakeLists.txt 40/101740/1 accepted/tizen/3.0/common/20161205.091725 accepted/tizen/3.0/ivi/20161204.234153 accepted/tizen/3.0/mobile/20161204.234101 accepted/tizen/3.0/tv/20161204.234119 accepted/tizen/3.0/wearable/20161204.234134 submit/tizen_3.0/20161202.055958
pr.jung [Fri, 2 Dec 2016 05:39:32 +0000 (14:39 +0900)]
Add storage-experimental.h on CMakeLists.txt

Change-Id: I8ded171bdfd1fd22d57edf7dd35afc2e26e9aa62
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMove storage_get_type_dev to storage-experimental.h 10/101710/3 accepted/tizen/3.0/common/20161205.091631 accepted/tizen/3.0/ivi/20161204.233806 accepted/tizen/3.0/mobile/20161204.233755 accepted/tizen/3.0/tv/20161204.233801 accepted/tizen/3.0/wearable/20161204.233804
pr.jung [Fri, 2 Dec 2016 04:58:12 +0000 (13:58 +0900)]
Move storage_get_type_dev to storage-experimental.h

Change-Id: I74de7cc20ab4098a5f89f4cf1cd7b85ac5e9de01
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agocommon: change fscanf to fgets 05/101005/1 accepted/tizen/3.0/common/20161201.135116 accepted/tizen/3.0/ivi/20161201.031518 accepted/tizen/3.0/mobile/20161201.031338 accepted/tizen/3.0/tv/20161201.031431 accepted/tizen/3.0/wearable/20161201.031455 submit/tizen_3.0/20161130.101437
taeyoung [Wed, 30 Nov 2016 05:29:22 +0000 (14:29 +0900)]
common: change fscanf to fgets

fscanf can occur buffer overflow issue.
Thus the function is changed to fgets.

Change-Id: Icd8713effc71245bf2ee61ce5e2129c285b0a2c3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoRemove system-settings dependency 27/100727/1 accepted/tizen/3.0/common/20161130.065010 accepted/tizen/3.0/ivi/20161130.011903 accepted/tizen/3.0/mobile/20161130.011836 accepted/tizen/3.0/tv/20161130.011847 accepted/tizen/3.0/wearable/20161130.011855 submit/tizen_3.0/20161129.053222
pr.jung [Tue, 29 Nov 2016 05:17:43 +0000 (14:17 +0900)]
Remove system-settings dependency

- Get Ringtone path using vconfkey

Change-Id: Iea9d680f85f8c6fc3c8ed8d42b1bd47aa99ce148
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoReturn for internal storage type in storage_get_type_dev 84/98884/2 accepted/tizen/3.0/common/20161123.140525 accepted/tizen/3.0/ivi/20161123.082814 accepted/tizen/3.0/mobile/20161123.082719 accepted/tizen/3.0/tv/20161123.082739 accepted/tizen/3.0/wearable/20161123.082752 submit/tizen_3.0/20161121.105249
pr.jung [Mon, 21 Nov 2016 04:57:57 +0000 (13:57 +0900)]
Return for internal storage type in storage_get_type_dev

Change-Id: I54f562eac2f1639f2e377994af1f4a9c8a26b47e
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoChange the way to get root directory for external storage 83/97883/4
pr.jung [Tue, 15 Nov 2016 07:52:12 +0000 (16:52 +0900)]
Change the way to get root directory for external storage

- When block device is mounted, deviced create a file as /run/external-storage/storage_id
- The file has mount point
- libstorage read file to get root directory for external storage instead to use dbus method call

Change-Id: I685b9c6c8c469814be809b1bd4a8dd39204bf768
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge remote-tracking branch 'origin/tizen_3.0' into tizen 34/97434/1 accepted/tizen/common/20161114.171615 accepted/tizen/ivi/20161115.000403 accepted/tizen/mobile/20161115.000314 accepted/tizen/tv/20161115.000332 accepted/tizen/wearable/20161115.000347 submit/tizen/20161114.073851
pr.jung [Mon, 14 Nov 2016 07:24:58 +0000 (16:24 +0900)]
Merge remote-tracking branch 'origin/tizen_3.0' into tizen

Change-Id: Ia03c5ea0b732a2f27b29b6ff3994bdfe48749451
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoFix enum for sdcard and usb on storage_get_type_dev 23/97423/1 accepted/tizen/3.0/common/20161121.140942 accepted/tizen/3.0/ivi/20161121.073707 accepted/tizen/3.0/mobile/20161121.073614 accepted/tizen/3.0/tv/20161121.073632 accepted/tizen/3.0/wearable/20161121.073652 submit/tizen_3.0/20161118.040200
pr.jung [Mon, 14 Nov 2016 06:59:48 +0000 (15:59 +0900)]
Fix enum for sdcard and usb on storage_get_type_dev

Change-Id: Ie53cf3079cc3decc5aff560a380b81ce671f6870
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoAdd inhouse api to get storage type and the kind of external device 96/96196/1 accepted/tizen/3.0/common/20161114.143351 accepted/tizen/3.0/ivi/20161111.002811 accepted/tizen/3.0/mobile/20161111.002721 accepted/tizen/3.0/tv/20161111.002737 accepted/tizen/3.0/wearable/20161111.002753 submit/tizen_3.0/20161109.062156 submit/tizen_3.0_common/20161114.081136
pr.jung [Tue, 8 Nov 2016 06:08:26 +0000 (15:08 +0900)]
Add inhouse api to get storage type and the kind of external device

Change-Id: Iac21489f726cda37c148522d34163e97f04066a3
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoApply Tizen coding rule 21/96021/1
pr.jung [Mon, 7 Nov 2016 10:32:44 +0000 (19:32 +0900)]
Apply Tizen coding rule

Change-Id: I4d96e35aa3728d8274219fdd6beab0b38f91571b
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge branch 'tizen' into tizen_3.0 37/94937/1 accepted/tizen/3.0/common/20161114.082847 accepted/tizen/3.0/ivi/20161103.001950 accepted/tizen/3.0/mobile/20161103.001905 accepted/tizen/3.0/tv/20161103.001917 accepted/tizen/3.0/wearable/20161103.001931 submit/tizen_3.0/20161102.073456 submit/tizen_3.0_common/20161110.084657
pr.jung [Wed, 2 Nov 2016 04:39:03 +0000 (13:39 +0900)]
Merge branch 'tizen' into tizen_3.0

Change-Id: I1c86ad26cd427df70fdb73e74f6742661cfa39e0
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "Change signal subscribe bus name" into tizen accepted/tizen/common/20161026.134549 accepted/tizen/ivi/20161028.151448 accepted/tizen/mobile/20161028.151208 accepted/tizen/tv/20161028.151442 accepted/tizen/wearable/20161028.151446 submit/tizen/20161026.062159 submit/tizen_3.0_common/20161104.104000
pr.jung [Wed, 26 Oct 2016 04:56:44 +0000 (21:56 -0700)]
Merge "Change signal subscribe bus name" into tizen

7 years agoChange signal subscribe bus name 03/93803/2
pr.jung [Wed, 26 Oct 2016 04:51:29 +0000 (13:51 +0900)]
Change signal subscribe bus name

Change-Id: I9f90cde86786c11a828cec09a5107c6694b93d12
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoremove unnecessary '/' from the path 50/90250/1 accepted/tizen/3.0/ivi/20161011.050600 accepted/tizen/3.0/mobile/20161015.033727 accepted/tizen/3.0/tv/20161016.004926 accepted/tizen/3.0/wearable/20161015.083248 accepted/tizen/common/20160929.163455 accepted/tizen/ivi/20160929.233826 accepted/tizen/mobile/20160929.233822 accepted/tizen/tv/20160929.233813 accepted/tizen/wearable/20160929.233818 submit/tizen/20160929.072529 submit/tizen_3.0_ivi/20161010.000004 submit/tizen_3.0_mobile/20161015.000004 submit/tizen_3.0_tv/20161015.000003 submit/tizen_3.0_wearable/20161015.000003
taeyoung [Thu, 29 Sep 2016 07:19:25 +0000 (16:19 +0900)]
remove unnecessary '/' from the path

Change-Id: I79d42621397c468238f7c4955725fba82a897b3f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoApply Tizen coding rule 98/90198/2 submit/tizen/20160929.030608
pr.jung [Thu, 29 Sep 2016 02:52:25 +0000 (11:52 +0900)]
Apply Tizen coding rule

Change-Id: Ib8a1a4d008989f12eeff5956a9afda767cfa364a
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoProvide internal APIs for converting compat path 87/90187/4
Kunhoon Baik [Thu, 29 Sep 2016 00:38:48 +0000 (09:38 +0900)]
Provide internal APIs for converting compat path

Change-Id: I81aad2364f5c99a4ea252374cce4d6497093f08d

7 years agoRevert "Revert "Supporting Internal Media Path Compatibility"" 08/88608/2 accepted/tizen/common/20160920.132142 accepted/tizen/ivi/20160921.081012 accepted/tizen/mobile/20160921.080950 accepted/tizen/tv/20160921.081006 accepted/tizen/wearable/20160921.080959 submit/tizen/20160920.065041
Jung [Tue, 20 Sep 2016 03:55:46 +0000 (20:55 -0700)]
Revert "Revert "Supporting Internal Media Path Compatibility""

This reverts commit ea3ccd13aa047b695a4a5a56d9f9c43c31e75042.

Change-Id: I63a2a0152be707b36deba35ffc94b1c32f97538f

7 years agoRevert "Supporting Internal Media Path Compatibility" 02/87202/2 accepted/tizen/common/20160907.154419 accepted/tizen/ivi/20160908.122756 accepted/tizen/mobile/20160908.122708 accepted/tizen/tv/20160908.122722 accepted/tizen/wearable/20160908.122737 submit/tizen/20160907.043316
Kunhoon Baik [Wed, 7 Sep 2016 04:09:48 +0000 (21:09 -0700)]
Revert "Supporting Internal Media Path Compatibility"

This reverts commit 23de75841e9bb1a712b06352b71d9107302c06e9.

Change-Id: Id20c18851b7dfd2aa3f4d8dd14b446f7e7f7cc30

7 years agoAdd DeviceBlocked signal for storage callback 27/80827/5 accepted/tizen/common/20160905.171511 accepted/tizen/ivi/20160906.000048 accepted/tizen/mobile/20160905.235957 accepted/tizen/tv/20160906.000013 accepted/tizen/wearable/20160906.000030 submit/tizen/20160905.043624
pr.jung [Wed, 20 Jul 2016 09:40:23 +0000 (18:40 +0900)]
Add DeviceBlocked signal for storage callback

Change-Id: I629060f98ce5ca907f0b8e3ce869b5657ecf3a10
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoSupporting Internal Media Path Compatibility 61/84961/1 accepted/tizen/ivi/20160905.065616 accepted/tizen/mobile/20160905.065522 accepted/tizen/tv/20160905.065540 accepted/tizen/wearable/20160905.065559 submit/tizen/20160902.065241 submit/tizen/20160904.234158
Kunhoon Baik [Tue, 23 Aug 2016 04:38:54 +0000 (13:38 +0900)]
Supporting Internal Media Path Compatibility

Internal compatibility media path is available, libstorage returns the path.
Related to : https://review.tizen.org/gerrit/#/c/84834/

Change-Id: Id5e0eaa1d6f7913ef6a7106448bcefaf527cf6c5

7 years agoModify block signal interface and object path 18/82818/1 accepted/tizen/common/20160811.145528 accepted/tizen/ivi/20160811.002538 accepted/tizen/mobile/20160811.002452 accepted/tizen/tv/20160811.002526 accepted/tizen/wearable/20160811.002935 submit/tizen/20160810.070210
pr.jung [Mon, 8 Aug 2016 01:46:57 +0000 (10:46 +0900)]
Modify block signal interface and object path

Change-Id: I636e63e2494f0675d4d4a6ecab067fb3766602e5
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agommc: add the internal api to return primary mmc information 88/80088/2 accepted/tizen/common/20160715.175725 accepted/tizen/ivi/20160717.035138 accepted/tizen/mobile/20160717.035123 accepted/tizen/tv/20160717.035000 accepted/tizen/wearable/20160717.035006 submit/tizen/20160715.121938
taeyoung [Thu, 14 Jul 2016 11:59:55 +0000 (20:59 +0900)]
mmc: add the internal api to return primary mmc information

- Primary mmc information is used to install apps on the mmc.
  Thus primary mmc information api is necessary to avoid
  iterations with previous apis

Change-Id: Id27f575d0442225d0cb909220716e5d527ad506d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocommon: Apply Tizen coding rule 85/79885/2 accepted/tizen/common/20160713.145128 accepted/tizen/ivi/20160713.125558 accepted/tizen/mobile/20160713.125506 accepted/tizen/tv/20160713.125524 accepted/tizen/wearable/20160713.125542 submit/tizen/20160713.101116
pr.jung [Wed, 13 Jul 2016 09:35:13 +0000 (18:35 +0900)]
common: Apply Tizen coding rule

Change-Id: I1e3eca3ace0f3ae5d686df42dd434c7800eaa759
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agocommon: apply Tizen coding rule 38/77138/1 accepted/tizen/common/20160629.222836 accepted/tizen/ivi/20160629.070510 accepted/tizen/mobile/20160629.070505 accepted/tizen/tv/20160629.070459 accepted/tizen/wearable/20160629.070451 submit/tizen/20160629.012232
taeyoung [Tue, 28 Jun 2016 23:33:09 +0000 (08:33 +0900)]
common: apply Tizen coding rule

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I7b6a4e580dc1e2e615cd3c39ec4762150156b09e

7 years agoProviding backward compatibility for APPs in the store which use libstorage APIs... 01/75201/1 accepted/tizen/common/20160620.163442 accepted/tizen/ivi/20160618.032603 accepted/tizen/mobile/20160618.032512 accepted/tizen/tv/20160618.032525 accepted/tizen/wearable/20160618.032547 submit/tizen/20160617.131013
Kunhoon Baik [Fri, 17 Jun 2016 05:08:50 +0000 (14:08 +0900)]
Providing backward compatibility for APPs in the store which use libstorage APIs incorrectly.

Change-Id: I31e265900f9087123fe1e6a0d31d3c67c7d8cd6b

7 years agoapi: add new api to register insert/remove callback 88/74188/6 accepted/tizen/common/20160615.193630 accepted/tizen/ivi/20160616.002455 accepted/tizen/mobile/20160616.002410 accepted/tizen/tv/20160616.002402 accepted/tizen/wearable/20160616.002351 submit/tizen/20160615.062014
Taeyoung Kim [Mon, 13 Jun 2016 05:58:08 +0000 (14:58 +0900)]
api: add new api to register insert/remove callback

- Previously, storage event register apis get the storage ID
  by the input parameter. Storage IDs are created when
  storages are connected, and storage IDs are changed
  even if same storage is re-connected. Thus Previous apis
  cannot support "insert" event.

- Now, new apis are added. They get storage type to register
  events. Thus they can support "insert" event too.

   = int storage_set_changed_cb(storage_type_e type, storage_changed_cb callback, void *user_data);
   = int storage_unset_changed_cb(storage_type_e type, storage_changed_cb callback);

Change-Id: Icbc6513f2777f8df760365c5c65512714b295590
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agostorage.c: Apply Tizen coding rule 33/71333/1 accepted/tizen/common/20160526.150023 accepted/tizen/ivi/20160525.235532 accepted/tizen/mobile/20160525.235608 accepted/tizen/tv/20160525.235504 accepted/tizen/wearable/20160525.235523 submit/tizen/20160525.083856
sunm.lee [Wed, 25 May 2016 05:37:36 +0000 (14:37 +0900)]
storage.c: Apply Tizen coding rule

Apply Tizen coding rule.

Change-Id: I1fe0ed420d8ee936451a87fc189437ed6666008f
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
7 years agoAdd comments for line/function coverage analysis 28/71128/1
pr.jung [Tue, 24 May 2016 07:34:34 +0000 (16:34 +0900)]
Add comments for line/function coverage analysis

- Remove system error, not called callback and logs.
- Drops the exclusion reason for Logs

Change-Id: Iaf43a37cfd62be23bd9799feac7c64fc6161edbe
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoDevide dbus connection of block from other deviced modules 29/70729/1 accepted/tizen/common/20160525.155726 submit/tizen/20160524.061815
pr.jung [Fri, 20 May 2016 08:21:46 +0000 (17:21 +0900)]
Devide dbus connection of block from other deviced modules

Change-Id: Ibcb3c2c1a1899ce74663a6633be50c67870c5906
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agostorage: fix allocation mismatch 32/69232/1 accepted/tizen/common/20160520.171304 accepted/tizen/ivi/20160520.081642 accepted/tizen/mobile/20160520.081656 accepted/tizen/tv/20160520.081625 accepted/tizen/wearable/20160520.081623 submit/tizen/20160520.041507
sunm.lee [Thu, 12 May 2016 08:11:44 +0000 (17:11 +0900)]
storage: fix allocation mismatch

The pointer variable 'dev' should be assinged to pointer of
storage_ext_device, not pointer of (storage_ext_device *).

Change-Id: Ic9a82c0849b411bca44b95db564f0fd731ea6eba
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
7 years agoexternal: return storage size 0 if external storage does not exist 33/68933/1 accepted/tizen/common/20160511.142008 accepted/tizen/ivi/20160511.080634 accepted/tizen/mobile/20160511.080534 accepted/tizen/tv/20160511.080552 accepted/tizen/wearable/20160511.080621 submit/tizen/20160510.124102
Taeyoung Kim [Tue, 10 May 2016 11:46:15 +0000 (20:46 +0900)]
external: return storage size 0 if external storage does not exist

- Previously, error was returned if external storage does not
  exist when getting storage size. But it is fixed to return
  size 0 for the backward compatibility.

Change-Id: I84eca101a740729cc038f7e02b6db97536913ca9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
7 years agostorage id: return NOT_SUPPORTED if storage id is invalid 19/68919/1
Taeyoung Kim [Tue, 10 May 2016 10:36:12 +0000 (19:36 +0900)]
storage id: return NOT_SUPPORTED if storage id is invalid

- When storage id is invalid, the apis should return
  NOT_SUPPORTED. This is for backward compatibility.

Change-Id: I5c54f0675072979dfc42242e5ce9b8efc438190d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: add functions to get storage size 00/67800/4 accepted/tizen/ivi/20160511.080403 accepted/tizen/mobile/20160511.080306 accepted/tizen/tv/20160511.080322 accepted/tizen/wearable/20160511.080346 submit/tizen/20160510.075001
Taeyoung Kim [Thu, 28 Apr 2016 08:54:52 +0000 (17:54 +0900)]
external: add functions to get storage size

- The functions to get storage size of given path are added.
- For the following apis, default path is set to primary sdcard.
    int storage_get_external_memory_size(struct statvfs *buf)
    int storage_get_external_memory_size64(struct statvfs *buf)

Change-Id: I0cfdcf2496849520cf0ef00a3ee2c3a70ec3c06c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>