OSDN Git Service

Merge branch 'master' of http://exfat.googlecode.com/svn/trunk/ into cm-10.2
authorSteve Kondik <shade@chemlab.org>
Thu, 22 Aug 2013 11:21:46 +0000 (04:21 -0700)
committerSteve Kondik <shade@chemlab.org>
Thu, 22 Aug 2013 11:21:46 +0000 (04:21 -0700)
Change-Id: Iced8c56f8089a5b6dbfe913c23fb35c4a3c99b48

13 files changed:
1  2 
fsck/main.c
fuse/main.c
libexfat/compiler.h
libexfat/exfat.h
libexfat/io.c
libexfat/log.c
libexfat/platform.h
mkfs/cbm.c
mkfs/fat.c
mkfs/main.c
mkfs/mkexfat.c
mkfs/rootdir.c
mkfs/vbr.c

diff --cc fsck/main.c
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
  
-       You should have received a copy of the GNU General Public License
-       along with this program.  If not, see <http://www.gnu.org/licenses/>.
+       You should have received a copy of the GNU General Public License along
+       with this program; if not, write to the Free Software Foundation, Inc.,
+       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  
 +#include <exfat.h>
  #include <stdio.h>
  #include <string.h>
 -#include <exfat.h>
  #include <exfatfs.h>
  #include <inttypes.h>
  #include <unistd.h>
diff --cc fuse/main.c
Simple merge
Simple merge
Simple merge
diff --cc libexfat/io.c
@@@ -286,28 -286,20 +288,24 @@@ ssize_t exfat_pread(struct exfat_dev* d
                off_t offset)
  {
  #ifdef USE_UBLIO
-       if (ublio_pread(dev->ufh, buffer, size, offset) != size)
+       return ublio_pread(dev->ufh, buffer, size, offset);
 +#elif defined(__ANDROID__)
-     if (pread64(dev->fd, buffer, size, offset) != size)
++    return pread64(dev->fd, buffer, size, offset);
  #else
-       if (pread(dev->fd, buffer, size, offset) != size)
+       return pread(dev->fd, buffer, size, offset);
  #endif
-               exfat_bug("failed to read %zu bytes from file at %"PRIu64, size,
-                               (uint64_t) offset);
  }
  
void exfat_pwrite(struct exfat_dev* dev, const void* buffer, size_t size,
ssize_t exfat_pwrite(struct exfat_dev* dev, const void* buffer, size_t size,
                off_t offset)
  {
  #ifdef USE_UBLIO
-       if (ublio_pwrite(dev->ufh, buffer, size, offset) != size)
+       return ublio_pwrite(dev->ufh, buffer, size, offset);
 +#elif defined(__ANDROID__)
-     if (pwrite64(dev->fd, buffer, size, offset) != size)
++    return pwrite64(dev->fd, buffer, size, offset);
  #else
-       if (pwrite(dev->fd, buffer, size, offset) != size)
+       return pwrite(dev->fd, buffer, size, offset);
  #endif
-               exfat_bug("failed to write %zu bytes to file at %"PRIu64, size,
-                               (uint64_t) offset);
  }
  
  ssize_t exfat_generic_pread(const struct exfat* ef, struct exfat_node* node,
diff --cc libexfat/log.c
Simple merge
Simple merge
diff --cc mkfs/cbm.c
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
  
-       You should have received a copy of the GNU General Public License
-       along with this program.  If not, see <http://www.gnu.org/licenses/>.
+       You should have received a copy of the GNU General Public License along
+       with this program; if not, write to the Free Software Foundation, Inc.,
+       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  
 -#include <limits.h>
  #include "cbm.h"
  #include "fat.h"
  #include "uct.h"
diff --cc mkfs/fat.c
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
  
-       You should have received a copy of the GNU General Public License
-       along with this program.  If not, see <http://www.gnu.org/licenses/>.
+       You should have received a copy of the GNU General Public License along
+       with this program; if not, write to the Free Software Foundation, Inc.,
+       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  
 +#include <exfat.h>
  #include <unistd.h>
  #include "fat.h"
  #include "cbm.h"
diff --cc mkfs/main.c
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
  
-       You should have received a copy of the GNU General Public License
-       along with this program.  If not, see <http://www.gnu.org/licenses/>.
+       You should have received a copy of the GNU General Public License along
+       with this program; if not, write to the Free Software Foundation, Inc.,
+       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  
 +#include <exfat.h>
  #include <sys/types.h>
  #include <sys/time.h>
  #include <unistd.h>
diff --cc mkfs/mkexfat.c
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
  
-       You should have received a copy of the GNU General Public License
-       along with this program.  If not, see <http://www.gnu.org/licenses/>.
+       You should have received a copy of the GNU General Public License along
+       with this program; if not, write to the Free Software Foundation, Inc.,
+       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  
 +#include "mkexfat.h"
  #include <sys/types.h>
  #include <unistd.h>
  #include <inttypes.h>
diff --cc mkfs/rootdir.c
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
  
-       You should have received a copy of the GNU General Public License
-       along with this program.  If not, see <http://www.gnu.org/licenses/>.
+       You should have received a copy of the GNU General Public License along
+       with this program; if not, write to the Free Software Foundation, Inc.,
+       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  
 -#include <string.h>
  #include "rootdir.h"
  #include "uct.h"
  #include "cbm.h"
diff --cc mkfs/vbr.c
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
  
-       You should have received a copy of the GNU General Public License
-       along with this program.  If not, see <http://www.gnu.org/licenses/>.
+       You should have received a copy of the GNU General Public License along
+       with this program; if not, write to the Free Software Foundation, Inc.,
+       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
  
 -#include <string.h>
  #include "vbr.h"
  #include "fat.h"
  #include "cbm.h"