• Wez's avatar
    [fuchsia] Support soft quota on each web.Context's /data directory. · 475ceeac
    Wez authored
    Implement the |CreateContextParams.data_quota_bytes| option, to allow
    a soft-quota to be applied to persisted browsing data.
    
    If specified the quota is treated as the "total disk space" of the /data
    volume, and used to report total & free disk space amounts in SysInfo.
    
    Since the platform does not provide native quota, nor free-bytes metrics
    from filesystems, this is implemented by calling ComputeDirectorySize()
    to approximate the "used disk space".
    
    Bug: 851734, 1071393, 1148334
    Bug: b/154204041
    Change-Id: Iab982202490080ed9942a7a1b16c62aee5c24cfd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2537698
    Commit-Queue: Wez <wez@chromium.org>
    Reviewed-by: default avatarDavid Dorwin <ddorwin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#827620}
    475ceeac
sys_info_fuchsia.cc 4.01 KB