Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-vold: Liste der Commits

system/vold


RSS
Rev. Zeit Autor
00e25a3 lollipop-x86 2015-09-11 02:02:23 Chih-Wei Huang

Merge branch 'cm-12.1' into lollipop-x86

d7f3348 2015-09-11 02:02:09 Chih-Wei Huang

AutoVolume: ignore unusable disks

The disks like mmcblk0boot0 or mmcblk0rpmb should be ignored.

2a6db64 2015-08-23 00:02:45 Björn Landström

Change lseek to lseek64

Using lseek on 64-bit offset parameter caused failure
to write persistent data in crypto footer.

Changed calls to use lseek64 instead.

Change-Id: I4e4c397a6d36201b8b08be3017e17c9fac3b34e4

bdca385 2015-08-23 00:02:45 Henrik Baard

Fix memory leak in upgrade_crypt_ftr

The structure crypt_persist_data was allocated,
but never freed.

Added free of allocated memory in normal and
error case.

Change-Id: I9aaa067e6f6501e8ce007f8659004b5dbcf2b246

a770b22 2015-08-23 00:02:45 Ethan Chen

vold: Fix compilation

* AID_MEDIA_RW needs to be defined

Change-Id: I528cdf603f605430c9c8b83111c66f8bf7350ffe

97d92e5 2015-08-23 00:02:45 Michael Stucki

Fix Ext4 sdcard permissions on mount

Fix ownership of sdcards the same way as for F2FS.

Change-Id: Ia34ad91444951e62f6d17374f480dcbdfa34cca3

426cba7 2015-08-23 00:02:45 Pawit Pornkitprasan

vold: fix asec on ExFAT

The ExFAT fuse driver doesn't implement dent->d_type, so we
need to find the file type using lstat

Change-Id: Ie4070bf77c61231ecb7cd62e39bd5ce8805b3896

118d699 2015-08-22 23:44:35 Jiangyi

Vold: Correct part_num ignore logic

Only ignore the partition if part_num is greater than MAX_PARTITIONS, since it could be
equal to MAX_PARTITIONS, which would make it still within the array bounds. Also correct the
log message associated with it.

Change-Id: Ib4acbfb20dd88a2cfb22d249aef6fca5fae9ace4

e0d9d6a 2015-08-22 23:44:35 Tom Marshall

vold: Mount ext4/f2fs sdcards with sdcard_posix context

Change-Id: I05d9b57cc28ffd1f8deb8148d81c7f6fad0aa8db

ff88c74 2015-08-22 23:44:35 arter97

f2fs: disable fsck check

fsck.f2fs does not fix any inconsistencies "yet".

Disable fsck routine as this is just wasting time consumed to mount f2fs volumes.

The kernel can determine if a f2fs volume is too damaged that it shouldn't get mounted.

We should wait for f2fs-tools version higher than v1.3.0.
(fsck.f2fs for fixing inconsistencies is a work-in-progress)

References:
https://github.com/torvalds/linux/blob/master/Documentation/filesystems/f2fs.txt#L261
https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git

Change-Id: I7e0a4662ac70860fe139bb9331b7aee1ad76220f
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>

970ac6f 2015-08-22 23:44:35 Evan McClain

Add Flash-Friendly File System (f2fs) support.

Change-Id: If46bf7329a7453122a4379f9bc41cf9553426e74

bb6e9ef 2015-08-22 23:44:35 Ricardo Cerqueira

Volume: Don't crap out when dealing with unformatted cards

Change-Id: I2ab58328d07a343a5ec9e1c4b58f8258f0c9133c

b087b8a 2015-08-22 23:44:35 timduru

Fix Ext4 not being mounted

Change-Id: I8b01482d5b4e6627dbd082cd2806f44554278f92

11ceedf 2015-08-21 20:53:11 Chih-Wei Huang

vold: support AutoVolume in fstab

If the device name is auto, use AutoVolume to handle it.

9e79efb 2015-08-21 20:48:12 Chih-Wei Huang

vold: add class AutoVolume to support auto-mount and fake sdcard

We support up to 4 USB/MMC/SD to be auto mounted.
Besides, always allow auto mount even SDCARD is not empty.

bb22660 2015-08-21 20:29:13 Steve Kondik

vold: Use mke2fs to format ext4 when not creating containers.

Change-Id: I2bc0f92d59adb9604b35a1f70febccfba68715d3

8b31254 2015-08-21 19:11:57 Tom Marshall

vold: Honor mount options for ext4 mounts

Change-Id: Ie77e0d402c2c16d544251f7fdaeaad34d030d121

d2bea94 2015-08-21 19:11:55 Pawit Pornkitprasan

vold: allow non-vfat devices to be used as ASEC

CM supports alternative file systems (which some devices specify
in the fstab as 'auto').

Change-Id: I7e78fe87a7efc49d6749d5892107085d55156cce

608fec4 2015-08-21 19:11:52 Pawit Pornkitprasan

vold: Add selinux support to ext4

Squashed commit of the following:

Author: Pawit Pornkitprasan <p.pawit@gmail.com>
vold: mount ext4 with forced SELinux context

Always mount voldmanaged ext4 partitions with the SELinux sdcard_external
context. For other file systems, this is done via the genfs_context,
but since ext4 supports SELinux natively, it must be set here.
Change-Id: I1364f37018b25d79b1826c85849def64e868d72f

Author: Pawit Pornkitprasan <p.pawit@gmail.com>
vold: force SELinux context only for sdcard

Google uses this code to mount ASEC as well and we shouldn't force
their SELinux contexts
Change-Id: I873af4dc2309d3d0942ce466b8acf8158abb85ae

Author: Jorge Ruesga <jorge@ruesga.com>
vold: pass selinux context to ext4 mount (remount ro)
Change-Id: Ic0bb314b30e42489c45caec29d35d6896c9849eb
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Change-Id: I1364f37018b25d79b1826c85849def64e868d72f

e07ccb7 2015-08-21 19:11:50 codeworkx

vold: add support for ext4 media

Squashed commit of the following:

Author: codeworkx <codeworkx@cyanogenmod.org>
vold: add support for ext4 media

Depends on:
http://review.cyanogenmod.org/31202
http://review.cyanogenmod.org/31211

Result:
http://pastebin.com/nzUbvW7K
Change-Id: I5bd227e637f2a1ed4d13a2eb81390c56c953f482

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
vold: Replace usage of discontinued logwrap()
Change-Id: Ia76bf8998064beee5e0ea4451c4dd8418c2193c4

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Apply the mounts to the SDCARD /storage path instead of /mnt/media_rw
Change-Id: I6c8d73a00c6ffa64875f3c4c718d8a416d08d5c1

Author: Pawit Pornkitprasan <p.pawit@gmail.com>
vold: restore 4.4 sdcard logic

Mount points in 4.4 are always fuse-wrapped to provide granular
permission. Unix file systems no longer need to be manually
fuse-wrapped by us.
Change-Id: I6885b0baeaae7c380ec32d410a70a4f53801157b

Change-Id: I5bd227e637f2a1ed4d13a2eb81390c56c953f482

9cae87c 2015-08-21 19:11:48 Steve Kondik

vold: exFAT support

* Add support for exFAT using FUSE implementation.
Change-Id: I590c7b1bc8fbcb8c0b2c669f4073ac022857e4da

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
vold: Replace usage of discontinued logwrap()
Change-Id: Ia76bf8998064beee5e0ea4451c4dd8418c2193c4

Change-Id: I590c7b1bc8fbcb8c0b2c669f4073ac022857e4da

498c136 2015-08-21 19:11:44 kallt_kaffe

vold: Add NTFS support

Squashed commit of the following:

Author: kallt_kaffe <kallt_kaffe@apedroid.com>
vold: Add ntfs (read-only) support.

See http://review.cyanogenmod.com/#change,7457 for more info.
Change-Id: Ic841e73be6435e8bbbb22984cc749e27c46826e8

Author: Steve Kondik <shade@chemlab.org>
vold: Add NTFS read+write support via ntfs-3g

* Use ntfs-3g for full NTFS support.
* Original code from Freescale.
Change-Id: I01191c3c339421904dc9415eb00143f7f8365152

Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
vold: Replace usage of discontinued logwrap()
Change-Id: Ia76bf8998064beee5e0ea4451c4dd8418c2193c4

Author: Steve Kondik <shade@chemlab.org>
Add support for formatting NTFS.

Change-Id: Ic841e73be6435e8bbbb22984cc749e27c46826e8

3edf494 2015-08-21 19:09:52 codeworkx

vold: use blkid to detect filesystem type

In preparation for handling ext4 partitions via vold and fuse.

Change-Id: Ibaccded63a7a293ad53f16afb80448ddd493554c

a447e4f 2015-08-21 17:32:12 Shashank Mittal

vold: Fix encryption issue due to stack corruption.

Ioctl BLKGETSIZE expects pointer to unsigned long as argument.

On 64bit target using pointer to unsigned int can cause stack
corruption due to type mismatch.

Change-Id: I422068ba5006c0b685f1504e1e6aa30152ee8433

3c2245a 2015-03-12 13:25:43 Chih-Wei Huang

vold: do not consider a fatal error on initializeMbr failed

Instead, format the entire device and try to mount it.
In this way we are able to support more generic block devices
like loopback device or ramdisk. It's not possible to initialize
mbr on such devices. But they can still be formatted and
mounted correctly.

Change-Id: I14b3cd1b2986c84efba1f9ce5dba99634b6b462f

102745a 2015-03-12 13:25:43 Chih-Wei Huang

vold: avoid mismatch wrong device with same prefix

Suppose we have two devices whose devpath are

/devices/...../mmcblk1
/devices/...../mmcblk11

and the first is the target device. The current implementation will
mismatch the later device.

Since we hope to match the target device and its partitions
whose devpath are

/devices/...../mmcblk1/...

so the correct devpath should have the expected prefix,
followed by '\0' or '/'.

Change-Id: I398b55712b884a8499f73a52bc863b4d8294ee5e

b2362c0 2015-02-09 23:10:57 The Android Automerger

merge in lmp-mr1-release history after reset to lmp-mr1-dev

223fd1c 2015-02-07 02:32:56 Paul Lawrence

Revert "Make encryption configurable"

This reverts commit 6a69cfc411c086f15d59b7dc105763af16620414.

The original fix seems to have led to boot failures in QA. Rather than
risk shipping, revert the change. Bug 18764230 reopened.

Requires change
https://googleplex-android-review.git.corp.google.com/#/c/629950/

Bug: 19278390
Bug: 19199624

Change-Id: Ia858c4db0abb917f9364ec8048f59ca4fb48e233

62312ec 2015-01-27 23:10:50 The Android Automerger

merge in lmp-mr1-release history after reset to lmp-mr1-dev

6a69cfc 2015-01-22 03:00:17 Paul Lawrence

Make encryption configurable

Add maybeenabledefaultencryption function, that encrypts based
on the encryption flag and appropriate environment variable

Bug: 18764230
Change-Id: Id9a1967d09a7ae63a51240c0a5f3c41505af0e9a

Show on old repository browser