e157b253d4e8708779d8bad2e21929fedbe0168c |
|
26-Jul-2016 |
Jorge Lucangeli Obes <jorgelo@google.com> |
Fix sdcard logging. Use C++ logging for everything. Bug: 30222003 Change-Id: I5c5d85102b01df6965a515b59aa275ac85f50f00
/system/core/sdcard/fuse.h
|
714ec9d1de9a8687be9203dee9c1f9cb13a9d73d |
|
20-Jul-2016 |
Jorge Lucangeli Obes <jorgelo@google.com> |
sdcard: Fix compilation with FUSE_TRACE == 1. "PRI{u,x}64" was not compiling on C++ because of macro expansions. Implement DLOG the same way DCHECK is implemented in <android-base/logging.h>, and mechanically replace the problematic lines with C++ logging. Remaining TRACE() lines will be replaced in a follow-up CL. Bug: 30222003 Change-Id: I377a91722eb4c035093fc96b79438c4f638b9a45
/system/core/sdcard/fuse.h
|
d6d8faa69068d92e0e4021fced181b448d4e8cbd |
|
19-Jul-2016 |
Jorge Lucangeli Obes <jorgelo@google.com> |
sdcard: Use std::map. Having CaseInsensitiveCompare use strcasecomp is not ideal, but other solutions are not prettier. Also, add a TODO to fix FUSE_TRACE, broken by the switch to C++. Bug: 27147273 Change-Id: I0017c3a7d0254eb81abd128b97cd06c5ad0d1dff
/system/core/sdcard/fuse.h
|
f08ba055819cbdb24e55dba5de1ed502fc4bdd4e |
|
13-Jul-2016 |
Jorge Lucangeli Obes <jorgelo@google.com> |
Convert fuse.c to C++. Fix string literals and cast void* appropriately. Alternatively, we could switch some of the allocations to new/delete, but we would need to make sure that none of those end up passed to other code that will call free(3) on them. Bug: 30110940 Change-Id: I6f39df65cd960930530e5a1f8420a28d50adc25d
/system/core/sdcard/fuse.h
|
c255f25ccb700880483c73d9ff823bf9540dd616 |
|
12-Jul-2016 |
Jorge Lucangeli Obes <jorgelo@google.com> |
Extract the FUSE implementation from the main sdcard.c file. sdcard.c is a *really* big file. This makes it hard to do things like improving priv dropping or adding more sandboxing. Extract all FUSE-related code to a separate unit, fuse.{h|c}, which exports only two functions. Convert the rest of sdcard.c to C++ as sdcard.cpp. fuse.c is kept as C (at least for now) since interacting with the FUSE API is realistically easier from C. Bug: 30110940 Change-Id: I188bfdc21c184742117e07539adb09090d4d747c
/system/core/sdcard/fuse.h
|
60281d556ded9fed3df770befb58990f7ae2e04f |
|
07-May-2014 |
Elliott Hughes <enh@google.com> |
Use bionic's <linux/fuse.h>. No need for an out-of-date copy of a uapi header. Change-Id: Iec68c6ceb2bceca1ceef0c57e0b45a89a139e292
/system/core/sdcard/fuse.h
|
03ee9479a4ed67689b9bbccda20c60800a38b178 |
|
13-Aug-2010 |
Brian Swetland <swetland@google.com> |
sdcard: a program to create a "virtual" /sdcard pointed at a path sdcard is a program that uses FUSE to emulate FAT-on-sdcard style directory permissions (all files are given fixed owner, group, and permissions at creation, owner, group, and permissions are not changeable, symlinks and hardlinks are not createable, etc. usage: sdcard <path> <uid> <gid> It must be run as root, but will change to uid/gid as soon as it mounts a filesystem on /sdcard. It will refuse to run if uid or gid are zero. Change-Id: I9a5d2e5daaebeee632f8470172cbb77b7fa689f8 Signed-off-by: Brian Swetland <swetland@google.com>
/system/core/sdcard/fuse.h
|