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

a few snapshot problems #127

Open
Curley-Joe opened this issue May 10, 2011 · 1 comment
Open

a few snapshot problems #127

Curley-Joe opened this issue May 10, 2011 · 1 comment

Comments

@Curley-Joe
Copy link

I'm having a few problems accessing the snapshots I've created using the .zfs/snapshots directory.

The first issue is minor. "ls -l" always returns an "Invalid argument" error, but otherwise works fine. Using ltrace and strace, it seems that "ls" is calling lgetfilecon(), which is calling lgetxattr(path, "security.selinux", ...) and failing.

The more serious problem is that many of the directories cannot be opened. E.g. from strace:

open("MS_raw", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 EINVAL (Invalid argument)

Also, the .zfs directory is not accessible at all through NFS:

stat(".zfs", 0x121e1568)                = -1 EIO (Input/output error)

But the good news is that cloning a snapshot seems to work.

@prasad-joshi
Copy link
Member

Thanks a lot for your inputs.

On Tue, May 10, 2011 at 5:18 AM, Curley-Joe
reply@reply.github.com
wrote:

I'm having a few problems accessing the snapshots I've created using the .zfs/snapshots directory.

The first issue is minor.  "ls -l" always returns an "Invalid argument" error, but otherwise works fine.  Using ltrace and strace, it seems that "ls" is calling lgetfilecon(), which is calling lgetxattr(path, "security.selinux", ...) and failing.

Thanks a lot. This can be fixed easily.

@rohan can you please fix this problem.

The more serious problem is that many of the directories cannot be opened.  E.g. from strace:

   open("MS_raw", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 EINVAL (Invalid argument)

I will test this.

Also, the .zfs directory is not accessible at all through NFS:

   stat(".zfs", 0x121e1568)                = -1 EIO (Input/output error)

Yes this feature has been left intentionally and should be fixed now.

But the good news is that cloning a snapshot seems to work.

Reply to this email directly or view it on GitHub:
#127

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

No branches or pull requests

2 participants