-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zfs get all -- Segmentation fault #329
Comments
|
I've only briefly looked at this issue but I suspect it's related to the size of your /etc/mtab file. There's some old crufty code in this area which might cause trouble if the /etc/mtab exceeds about 1024 bytes. I'll dig in to it further tomorrow, in the meanwhile if you get a chance simply umount some of your filesystem (to reduce this file size) to less than 1024 bytes and see if you still have the problems. |
Thanks for looking at this! Yup, it is currently 1729 bytes. $ wc -c /etc/mtab Unmounting doesn't work though :-( This is not a critical issue for me, and I can find ways to work around
On Thu, Jul 21, 2011 at 5:50 AM, behlendorf <
Kate Ward kate.ward@forestent.com |
If your comfortable building from the github source please try commit ca670be4232019560694809d6f5a4bde79a08c97 . It should resolve your issue by effectively disabling and this redundant code which is only used on Solaris. |
I have rebuilt from source with your patch, and can confirm that the problem is fixed. Tks! |
(Sorry, didn't mean to close. Will let you do that.) |
Completely disable the zfs binary from attempting to directly update /etc/mtab. The Linux port relies entirely on the mount.zfs helper to safely update /etc/mtab. If we left the /etc/mtab updates to the zfs binary then they could race with concurrent non-zfs mounts. Routing everything through the system mount command ensures the /etc/mtab updates are locked properly. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #329
When attempting a
zfs get all
, it starts, and then seg faults. Let me know what else I can provide to help with this. I did not experience this problem with 0.6rc4.OS: Ubuntu 10.04
PPA: 0.6.0.25.rc5-0ubuntu4~lucid1
pool version: 28
The text was updated successfully, but these errors were encountered: