我在Android设备上发现了一个奇怪的行为。
根据要求挂载的文件系统的用户(root用户或非root用户),挂载选项会更改:
另一个shell,同一个设备,但是从adb开始,行为恰好是正常的:
shell @ D6503:/ $ mount | grep noatime
rootfs / rootfs rw,seclabel,noatime,nodiratime 0 0 tmpfs / dev tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 755 0 0 devpts / dev / pts devpts rw,seclabel,noatime,nodiratime,mode = 600 0 0 proc / proc proc rw,noatime,nodiratime 0 0 sysfs / sys sysfs rw,seclabel,noatime,nodiratime 0 0 selinuxfs / sys / fs / selinux selinuxfs rw,noatime,nodiratime 0 0 debugfs / sys / kernel / debug debugfs rw,noatime,nodiratime 0 0 none / sys / fs / cgroup tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 750,GID = 1000 0 0 tmpfs / mnt / asec tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 755,GID = 1000 0 0 tmpfs / mnt / obb tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 755,GID = 1000 0 0 /dev/block/platform/msm_sdcc.1/by-name/system / system \ text4 rw,seclabel,noatime,nodiratime,discard,data = ordered 0 0 /dev/block/platform/msm_sdcc.1/by-name/userdata / data ext4 rw,seclabel,noatime,nodiratime,discard,noauto_da_alloc,data = ordered 0 0 /dev/block/platform/msm_sdcc.1/by-name/cache / cache ext4 rw,seclabel,noatime,nodiratime,discard,data = ordered 0 0 /dev/block/platform/msm_sdcc.1/by-name/apps_log / mnt / idd ext4 RW,SECLABEL,为nosuid,nodev,NOEXEC,noatime的,丢弃,nobarrier,数据=有序 0 0 tmpfs / storage / remote tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1024K,nr_inodes = 256,模式= 750,GID = 1028 0 0 /dev/block/platform/msm_sdcc.1/by-name/LTALabel / lta-label ext4 RO,上下文= U:object_r:lta_label:S0,为nosuid,nodev,NOEXEC,noatime的,数据=有序 0 0 securityfs / sys / kernel / security securityfs rw,noatime,nodiratime 0 0 / dev / fuse / mnt / shell /仿真保险丝 rw,noatime,nodiratime,user_id = 1023,group_id = 1023,default_permissions,allow_other,allow_utime_grp 0 0 / dev / block / vold / 179:65 / mnt / media_rw / sdcard1 vfat RW,目录同步,noatime的,nodiratime,UID = 1023,GID = 1023,fmask = 0007,DMASK = 0007,allow_utime = 0020,CODEPAGE = CP437,iocharset = ISO8859-1,短名称=混合,UTF8,误差=重新装入-RO 0 0 / dev / block / vold / 179:65 / mnt / secure / asec vfat RW,目录同步,noatime的,nodiratime,UID = 1023,GID = 1023,fmask = 0007,DMASK = 0007,allow_utime = 0020,CODEPAGE = CP437,iocharset = ISO8859-1,短名称=混合,UTF8,误差=重新装入-RO 0 0 / dev / fuse / storage / sdcard1保险丝 rw,noatime,nodiratime,user_id = 1023,group_id = 1023,default_permissions,allow_other,allow_utime_grp 0 0
shell @ D6503:/ $ su
root @ D6503:/ #mount | grep noatimerootfs / rootfs rw,seclabel,noatime,nodiratime 0 0 tmpfs / dev tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 755 0 0 devpts / dev / pts devpts rw,seclabel,noatime,nodiratime,mode = 600 0 0 proc / proc proc rw,noatime,nodiratime 0 0 sysfs / sys sysfs rw,seclabel,noatime,nodiratime 0 0 selinuxfs / sys / fs / selinux selinuxfs rw,noatime,nodiratime 0 0 debugfs / sys / kernel / debug debugfs rw,noatime,nodiratime 0 0 none / sys / fs / cgroup tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 750,GID = 1000 0 0 tmpfs / mnt / asec tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 755,GID = 1000 0 0 tmpfs / mnt / obb tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1412768k,nr_inodes = 161361,模式= 755,GID = 1000 0 0 /dev/block/platform/msm_sdcc.1/by-name/system / system \ text4 rw,seclabel,noatime,nodiratime,discard,data = ordered 0 0 /dev/block/platform/msm_sdcc.1/by-name/userdata / data ext4 rw,seclabel,noatime,nodiratime,discard,noauto_da_alloc,data = ordered 0 0 /dev/block/platform/msm_sdcc.1/by-name/cache / cache ext4 rw,seclabel,noatime,nodiratime,discard,data = ordered 0 0 /dev/block/platform/msm_sdcc.1/by-name/apps_log / mnt / idd ext4 RW,SECLABEL,为nosuid,nodev,NOEXEC,noatime的,丢弃,nobarrier,数据=有序 0 0 tmpfs / storage / remote tmpfs RW,SECLABEL,noatime的,nodiratime,大小= 1024K,nr_inodes = 256,模式= 750,GID = 1028 0 0 /dev/block/platform/msm_sdcc.1/by-name/LTALabel / lta-label ext4 RO,上下文= U:object_r:lta_label:S0,为nosuid,nodev,NOEXEC,noatime的,数据=有序 0 0 securityfs / sys / kernel / security securityfs rw,noatime,nodiratime 0 0 / dev / fuse / mnt / shell /仿真保险丝 rw,noatime,nodiratime,user_id = 1023,group_id = 1023,default_permissions,allow_other,allow_utime_grp 0 0 / dev / block / vold / 179:65 / mnt / media_rw / sdcard1 vfat RW,目录同步,noatime的,nodiratime,UID = 1023,GID = 1023,fmask = 0007,DMASK = 0007,allow_utime = 0020,CODEPAGE = CP437,iocharset = ISO8859-1,短名称=混合,UTF8,误差=重新装入-RO 0 0 / dev / block / vold / 179:65 / mnt / secure / asec vfat RW,目录同步,noatime的,nodiratime,UID = 1023,GID = 1023,fmask = 0007,DMASK = 0007,allow_utime = 0020,CODEPAGE = CP437,iocharset = ISO8859-1,短名称=混合,UTF8,误差=重新装入-RO 0 0 / dev / fuse / storage / sdcard1保险丝 rw,noatime,nodiratime,user_id = 1023,group_id = 1023,default_permissions,allow_other,allow_utime_grp 0 0