Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: Id0cf3317302cce12a6956703ddbf8dabed6a17e1
#define MTP_UNKNOWN_METADATAW L"Unknown"
/* strlen(/opt/usr/share/crash/) + MTP path len limit */
-#define MTP_MAX_PATHNAME_SIZE (21 + 255) /* except \0 */
-#define MTP_MAX_FILENAME_SIZE (254) /* except \0 */
+#define MTP_MAX_PATHNAME_SIZE (21 + 1024) /* except \0 */
+#define MTP_MAX_FILENAME_SIZE (1024) /* except \0 */
#define MTP_MAX_CMD_BLOCK_SIZE 36 /* Bytes */
Name: mtp-responder
Summary: Media Transfer Protocol daemon (responder)
Version: 0.0.27
-Release: 1
+Release: 2
Group: Network & Connectivity/Other
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
return MTP_ERROR_STORE_FULL;
}
+ if (store->store_info.free_space <= obj_sz) {
+ ERR("free space is not enough [%ld bytes]\n",
+ store->store_info.free_space);
+ return MTP_ERROR_STORE_FULL;
+ }
+
obj_info = _entity_alloc_object_info();
if (obj_info == NULL) {
ERR("_entity_alloc_object_info Fail");