Skip to contentSkip to conversation

fs/adfs: miscellaneous updates

PATCH New Russell King - ARM Linux admin 1 participant 1 message Jun 4, 2019 VFS

lore
Share & tools
lore
#0 lore raw

cover fs/adfs: miscellaneous updates

Hi Al,

The following patch series brings some updates to ADFS:

- Ensure that there is no padding in the on-disc record structure and pack it to ensure correct layout.
- Add helper to retrieve the disc record structure from the first sector of the disc map.
- Add helper to get the filesystem size.
- Directly use format_version from the disc record structure rather than storing it in our superblock structure.
- Clean up kernel message printing, use %pV to avoid temporary buffers, printing fragment ids with six hex digits.
- Ensure superblock flags are always set correctly, even on remounts, specifically the noatime and read-only flags.
- Only update superblock flags on remount if we are returning success.
- Fix a potential use-after-free bug while parsing the filesystem block size.
- Limit idlen (length of a fragment identifier in the map) according to the directory type - only big directories support idlen > 16.
- Add and use some helpers to deal with time stamps and file types.

 fs/adfs/adfs.h               |  70 ++++++++++++++++---------
 fs/adfs/dir.c                |  25 ++++-----
 fs/adfs/dir_f.c              |  38 ++++++--------
 fs/adfs/dir_fplus.c          |  21 ++++----
 fs/adfs/inode.c              |  12 ++---
 fs/adfs/map.c                |  15 ++----
 fs/adfs/super.c              | 121 +++++++++++++++++++++++++------------------
 include/uapi/linux/adfs_fs.h |   6 +--
 8 files changed, 164 insertions(+), 144 deletions(-)
Signature · 3 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up