[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Test case for fakeroot-hurd failure with a socket
From: |
Samuel Thibault |
Subject: |
Re: Test case for fakeroot-hurd failure with a socket |
Date: |
Wed, 6 May 2015 23:30:29 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Hello,
Svante Signell, le Mon 04 May 2015 14:14:16 +0200, a écrit :
> Attached is the test code where fakeroot-hurd fails.
> fakeroot-hurd ./test_sockets
> bind: Operation not supported
Mmm, I don't think we want to implement it in netfs_attempt_chmod
as you are trying to do. See the code netfs_S_file_set_translator:
netfs_attempt_chmod() is called only because it's the "Short circuited
translators" case, i.e. when the FS can perhaps store the translator
directly in the mode. You only stored the mode in np->nn_stat.st_mode,
without calling some file_* function to actually make the change on the
underlying FS. That's why you end up with:
> 67<--66(pid9244)->file_set_translator (6 6 0 "/hurd/ifsock" (null)) =
> 0x4000002d (Operation not supported)
Since the underlying node is still a normal file. You also can't just
call file_chmod since that won't change the file type.
Thus, do not modify netfs_attempt_chmod, rather implement the
netfs_set_translator stub by just calling file_set_translator on the
underlying node to set the passive translator.
Thanks,
Samuel
- Test case for fakeroot-hurd failure with a socket, Svante Signell, 2015/05/04
- Re: Test case for fakeroot-hurd failure with a socket,
Samuel Thibault <=
- Re: Test case for fakeroot-hurd failure with a socket, Svante Signell, 2015/05/07
- Re: Test case for fakeroot-hurd failure with a socket, Samuel Thibault, 2015/05/07
- RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Svante Signell, 2015/05/12
- Re: RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Samuel Thibault, 2015/05/12
- Re: RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Svante Signell, 2015/05/13
- Re: RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Samuel Thibault, 2015/05/13
- Re: RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Samuel Thibault, 2015/05/13
- Re: RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Svante Signell, 2015/05/13
- Re: RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Samuel Thibault, 2015/05/13
- Re: RFC: [PATCH] Re: Test case for fakeroot-hurd failure with a socket, Samuel Thibault, 2015/05/13