History log of /system/core/libcutils/fs.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0ee7d8c68b57c02d02f707d6f71c731234d56eec 21-Sep-2013 Jeff Sharkey <jsharkey@android.com> Fix Mac builds, for realz.

Change-Id: I63e21b90e5b8a8f016dd04ceca4354793faa5e37
/system/core/libcutils/fs.c
44d6342caa0db1f613809e9ba1ea8d9af0183b74 12-Sep-2013 Jeff Sharkey <jsharkey@android.com> Remove mkdir() side effect, add .nomedia, utils.

Before this change, FUSE lookup() would have the side effect of
creating the directory on behalf of apps. This resulted in most
directories being created just by Settings trying to measure disk
space. Instead, we're switching to have vold do directory creation
when an app doesn't have enough permissions.

Create fs_mkdirs() utility to create all parent directories in a
path as needed. Allow traversal (+x) into /storage directories.

Fix FUSE derived permissions to be case insensitive. Mark well-known
directories as .nomedia when created.

Bug: 10577808, 10330221
Change-Id: I53114f2e63ffbe6de4ba6a72d94a232523231cad
/system/core/libcutils/fs.c
69ce489fc3946b7b89ca837a01d3828f1af2e0a0 16-Oct-2012 Nick Kralevich <nnk@google.com> fs.c: Fix implicit declaration of function 'mkstemp'

system/core/libcutils/fs.c: In function 'fs_write_atomic_int':
system/core/libcutils/fs.c:109:5: warning: implicit declaration of function 'mkstemp' [-Wimplicit-function-declaration]

Change-Id: I337ecb818f85e20b058f782df45987acf2e9d6c1
/system/core/libcutils/fs.c
489609bb44fe8834c76c772f2cff8f03dbb84e08 25-Sep-2012 Jeff Sharkey <jsharkey@android.com> Allow mkdir() race to succeed.

When two zygotes are starting, they both may try creating a mount
point after checking lstat(). The second mkdir() will result in
EEXIST, which is okay to ignore.

Bug: 7165469
Change-Id: If4411e2621f773c74cd05247899982fa5ebdd020
/system/core/libcutils/fs.c
6de702679089fab13ec2d4d435054f68688df545 14-Sep-2012 Jeff Sharkey <jsharkey@android.com> Wrap more system calls in TEMP_FAILURE_RETRY.

Bug: 7151474
Change-Id: I9fe19746104cf392f88ea5cf8061e2e21e334671
/system/core/libcutils/fs.c
ddb173394430a7b55b0c24896a843556f5f8de7a 13-Sep-2012 Jeff Sharkey <jsharkey@android.com> Wrap system calls in TEMP_FAILURE_RETRY.

fs_prepare_dir() is used heavily during Zygote init, and can easily
run into EINTR.

Bug: 7151474
Change-Id: I7aac43a43483d55db47ca20456fff68ce51bbc46
/system/core/libcutils/fs.c
9685194fc94510a33201aee9b80c23f206ccfe67 28-Aug-2012 Jeff Sharkey <jsharkey@android.com> File-system utilities for installd and zygote.

Bug: 7008879
Change-Id: Ia54b8d4ad434e8973f235e2a4728651814bef8a9
/system/core/libcutils/fs.c