Repository navigation
fs-inventory 0.6.0
Re-export Parquet scans as CSV or JSON Lines with convert, record symlink targets, and look up user and group names.
Added
fs-inventory convertre-exports a Parquet scan as CSV or JSON Lines, into a new scan directory or to stdout, with optional zstd or gzip compression. The output equals what the scan would have written in that format, using the scan's own column, encoding, and time settings. Older (schema version 2) scans convert too.--resolve-idswritesusersandgroupstables with the name of every user and group ID in a scan (null for IDs with no account, such as deleted users). Crawl threads collect the IDs as they go, and each is looked up once when the scan finishes: withgetenton Linux, which reaches LDAP, sssd, and NIS even from the static binary, anddscacheutilon macOS. Checkpoints keep the IDs, so resumed scans get complete tables. New DuckDB macros:fs_users,fs_groups, andfs_entries_named, which addsuser_nameandgroup_nameto every entry.--symlink-targetsrecords where each symlink points, in a newsymlink_targetcolumn, with the exact bytes insymlink_target_raw(symlink_target_b64in text) when the target isn't plain UTF-8. It costs one more call per symlink, and a failed read is recorded in the errors table asreadlink.
Changed
- Schema version 3: the entries table gains
symlink_targetandsymlink_target_raw, at the end, so the CSV and JSON Lines macros read version 2 scans too.verify,rollup, andconvertaccept version 2 scans;resumecontinues only scans of the current version.
Full changelog: v0.5.0...v0.6.0