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

libzfs: Define the de facto standard errbuf size #13539

Closed
wants to merge 2 commits into from

Commits on Jun 8, 2022

  1. libzfs: Define the defecto standard errbuf size

    Every errbuf array in libzfs is 1024 chars.
    
    Define ERRBUFLEN in a shared header, and use it.
    
    Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
    Ryan Moeller authored and Ryan Moeller committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    b5cc534 View commit details
    Browse the repository at this point in the history
  2. libzfs: Rename msg bufs to errbuf for consistency

    `libzfs_pool.c` uses the name `msg` where everywhere else in libzfs uses
    `errbuf` for the error message buffer.
    
    Use the name consistent with the rest of libzfs and use ERRBUFLEN
    instead of 1024.
    
    Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
    Ryan Moeller authored and Ryan Moeller committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    d6e9d24 View commit details
    Browse the repository at this point in the history