[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-filesystem-cvs
Subject: [Filesystem-cvs] local/full smplfsys.cpp,1.65.38.2,1.65.38.3
From: twang () helixcommunity ! org
Date: 2013-08-16 1:54:24
[Download RAW message or body]
Update of /cvsroot/filesystem/local/full
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv10951
Modified Files:
Tag: Cobra_MVP
smplfsys.cpp
Log Message:
add bcm mips android support
Index: smplfsys.cpp
===================================================================
RCS file: /cvsroot/filesystem/local/full/smplfsys.cpp,v
retrieving revision 1.65.38.2
retrieving revision 1.65.38.3
diff -u -d -r1.65.38.2 -r1.65.38.3
--- smplfsys.cpp 26 Jun 2013 05:47:38 -0000 1.65.38.2
+++ smplfsys.cpp 16 Aug 2013 01:54:16 -0000 1.65.38.3
@@ -509,46 +509,70 @@
#ifdef ANDROID
if(NULL != strstr(m_base_path, "upload"))
{
- char pProcPartitions[512];
- memset(pProcPartitions, 0, 512);
+ char pProcPartitions[2048];
+ memset(pProcPartitions, 0, 2048);
FILE* fp = ::fopen("/proc/partitions", "rb");
if(fp)
{
int size = ::fread (pProcPartitions, 1, sizeof(pProcPartitions), fp);
if(NULL != strstr(pProcPartitions, "sda1"))
{
+#ifdef MIPS
+ m_base_path = "/mnt/removable/sda1/upload";
+#else
m_base_path = "/mnt/usb/sda1/upload";
+#endif
}
else if(NULL != strstr(pProcPartitions, "sdb1"))
{
+#ifdef MIPS
+ m_base_path = "/mnt/removable/sdb1/upload";
+#else
m_base_path = "/mnt/usb/sdb1/upload";
+#endif
}
else if(NULL != strstr(pProcPartitions, "sdc1"))
{
+#ifdef MIPS
+ m_base_path = "/mnt/removable/sdc1/upload";
+#else
m_base_path = "/mnt/usb/sdc1/upload";
+#endif
}
::fclose(fp);
}
}
else if(NULL != strstr(m_base_path, "personal_media"))
{
- char pProcPartitions[512];
- memset(pProcPartitions, 0, 512);
+ char pProcPartitions[2048];
+ memset(pProcPartitions, 0, 2048);
FILE* fp = ::fopen("/proc/partitions", "rb");
if(fp)
{
int size = ::fread (pProcPartitions, 1, sizeof(pProcPartitions), fp);
if(NULL != strstr(pProcPartitions, "sda1"))
{
+#ifdef MIPS
+ m_base_path = "/mnt/removable/sda1/local";
+#else
m_base_path = "/mnt/usb/sda1/local";
+#endif
}
else if(NULL != strstr(pProcPartitions, "sdb1"))
{
+#ifdef MIPS
+ m_base_path = "/mnt/removable/sdb1/local";
+#else
m_base_path = "/mnt/usb/sdb1/local";
+#endif
}
else if(NULL != strstr(pProcPartitions, "sdc1"))
{
+#ifdef MIPS
+ m_base_path = "/mnt/removable/sdc1/local";
+#else
m_base_path = "/mnt/usb/sdc1/local";
+#endif
}
::fclose(fp);
}
_______________________________________________
Filesystem-cvs mailing list
Filesystem-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/filesystem-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic