Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid size #60

Closed
wants to merge 2 commits into from
Closed

Valid size #60

wants to merge 2 commits into from

Commits on Dec 1, 2023

  1. exfat: change to get file size from DataLength

    In stream extension directory entry, the ValidDataLength
    field describes how far into the data stream user data has
    been written, and the DataLength field describes the file
    size.
    
    Signed-off-by: Yuezhang Mo <[email protected]>
    Reviewed-by: Andy Wu <[email protected]>
    Reviewed-by: Aoyama Wataru <[email protected]>
    Signed-off-by: Namjae Jeon <[email protected]>
    YuezhangMo authored and namjaejeon committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    7315f3b View commit details
    Browse the repository at this point in the history
  2. exfat: do not zero the extended part

    Since the read operation beyond the ValidDataLength returns zero,
    if we just extend the size of the file, we don't need to zero the
    extended part, but only change the DataLength without changing
    the ValidDataLength.
    
    Signed-off-by: Yuezhang Mo <[email protected]>
    Reviewed-by: Andy Wu <[email protected]>
    Reviewed-by: Aoyama Wataru <[email protected]>
    Signed-off-by: Namjae Jeon <[email protected]>
    YuezhangMo authored and namjaejeon committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    ea34bf2 View commit details
    Browse the repository at this point in the history