Whamcloud - gitweb
AOSP: misc: use scandir with alphasort instead of readdir for consistency
authorYoshitaka Seto <yoshitaka.seto@sony.com>
Wed, 16 Jan 2019 08:47:48 +0000 (17:47 +0900)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Mar 2019 18:06:12 +0000 (13:06 -0500)
commitf6f4b4b39f02d95b692ad22003490d1db9734f1c
tree060b7251a5d7a05fd94613309641767748dcb8b0
parent66bae937b968c8277c911c07f7cff26a5eef0523
AOSP: misc: use scandir with alphasort instead of readdir for consistency

During the image generation, When using the e2fsdroid with src_dir,
then dir files are listed with readdir, which will not guarantee
the order across the machines/fielsystems. So instead using the
scandir with alphasort option to list the files in sorted order.

Bug: 122874817

Change-Id: I4b946c737319252b82c74a0e10360843503862a1
From AOSP commit: 4cbe059b48b46d6657e24e4cdef543da7537dba3

Reported-by: Yasuhiro Kubota <yasuhiro.1.kubota@sony.com>
Tested-by: Yasuhiro Kubota <yasuhiro.1.kubota@sony.com>
Signed-off-by: Vikram Dattu Thota <vikram.dattu@sony.com>
Signed-off-by: Takuya Ogawa <takuya.ogawa@sony.com>
Signed-off-by: Yoshitaka Seto <yoshitaka.seto@sony.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c