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

Illumos 5134 - if ZFS_DEBUG or debug= is set, libzpool should enable debug prints #2669

Closed
wants to merge 1 commit into from

Conversation

FransUrbo
Copy link
Contributor

Reviewed by: Christopher Siden [email protected]
Reviewed by: Adam Leventhal [email protected]
Original author: Matthew Ahrens

References:
https://www.illumos.org/projects/illumos-gate/issues/5134
illumos/illumos-gate@7fa49ea

Ported by: Turbo Fredriksson [email protected]

FransUrbo added a commit to FransUrbo/zfs that referenced this pull request Sep 5, 2014
…libzpool should enable debug prints

Reviewed by: Christopher Siden [email protected]
Reviewed by: Adam Leventhal [email protected]
Original author: Matthew Ahrens

References:
  https://www.illumos.org/projects/illumos-gate/issues/5134
  https://reviews.csiden.org/r/82/

Ported by: Turbo Fredriksson <[email protected]>
@behlendorf
Copy link
Contributor

Let's hold off on this one until it's pulled in to Illumos.

@FransUrbo
Copy link
Contributor Author

Sure. I don't think it's working anyway. It's possible that ZoL is missing some important code or something but setting the variable and/or using the option doesn't seem to give the desired result - no extra output...

@behlendorf
Copy link
Contributor

Yes, our debug infrastructure is slightly different so this might take a little more investigation.

@FransUrbo
Copy link
Contributor Author

How DO you run ZoL in/with debugging? Just using --with-debug, ZFS_DEBUG=1 doesn't do anything... How do you get the debug/extra information?!

@FransUrbo FransUrbo force-pushed the illumos-5134 branch 2 times, most recently from 75f2988 to e320d8f Compare September 13, 2014 14:28
@FransUrbo
Copy link
Contributor Author

@behlendorf It's now accepted in Illumos-gate...

@FransUrbo FransUrbo force-pushed the illumos-5134 branch 2 times, most recently from d5d22bf to 76053a1 Compare September 14, 2014 14:27
…debug prints

Reviewed by: Christopher Siden [email protected]
Reviewed by: Adam Leventhal [email protected]

References:
  https://www.illumos.org/projects/illumos-gate/issues/5134
  illumos/illumos-gate@7fa49ea

Porting notes:
  Run dprintf_setup() in main.

Ported by: Turbo Fredriksson <[email protected]>
dasjoe pushed a commit to dasjoe/zfs that referenced this pull request May 24, 2015
…debug prints

5134 if ZFS_DEBUG or debug= is set, libzpool should enable debug prints
Reviewed by: Adam Leventhal <[email protected]>
Reviewed by: Christopher Siden <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Saso Kiselkov <[email protected]>
Approved by: Dan McDonald <[email protected]>

References:
  https://www.illumos.org/projects/illumos-gate/issues/5134
  illumos/illumos-gate@7fa49ea

Porting notes:
  Added dprintf_setup() to main in zfs_main.c and zpool_main.c.

Ported by: Turbo Fredriksson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#2669
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants