Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show_gids: improvements for large scale
On some hosts, script could run for many minutes. Reason : On host with many NICs, each interface is scanned unordered with all the GIDs. Add: 1. Flag --slim - order the GID table, count number of empty GIDs, break from loop once number of empty GIDs is larger than predefined MAX (2). Explanation: GIDs are assigned in order, if GID is empty, it means all the following GIDs will be empty as well. Exception: if some GID index was freed and new GID was assigned, there might be holes. 2. Flag --dev - show_gids used to get device as an optional only argument. As there is additional argument now, need dedicated option to allow several arguments. 3. Add help Result: By default - script will run as before - will scan all GIDs --slim should be used for large scale to allow reasonable timed run.
- Loading branch information