Lines 395-401
AC_DEFUN([LINUX_REGISTER_SYSCTL_TABLE_NOFLAG], [
Link Here
|
395 |
AC_CHECK_LINUX_BUILD([whether register_sysctl_table has an insert_at_head argument], |
395 |
AC_CHECK_LINUX_BUILD([whether register_sysctl_table has an insert_at_head argument], |
396 |
[ac_cv_linux_register_sysctl_table_noflag], |
396 |
[ac_cv_linux_register_sysctl_table_noflag], |
397 |
[#include <linux/sysctl.h>], |
397 |
[#include <linux/sysctl.h>], |
398 |
[ctl_table *t; register_sysctl_table (t);], |
398 |
[struct ctl_table *t; register_sysctl_table (t);], |
399 |
[REGISTER_SYSCTL_TABLE_NOFLAG], |
399 |
[REGISTER_SYSCTL_TABLE_NOFLAG], |
400 |
[define if register_sysctl_table has no insert_at head flag], |
400 |
[define if register_sysctl_table has no insert_at head flag], |
401 |
[]) |
401 |
[]) |
402 |
Linux 3.17: Deal with d_splice_alias errors |
402 |
Linux 3.17: Deal with d_splice_alias errors |
403 |
|
403 |
|
404 |
In 3.17 the logic in d_splice_alias has changed. Of interest to |
404 |
In 3.17 the logic in d_splice_alias has changed. Of interest to |
405 |
us is the fact that it will now return an EIO error if it finds |
405 |
us is the fact that it will now return an EIO error if it finds |
406 |
an existing connected directory for the dentry, where it would |
406 |
an existing connected directory for the dentry, where it would |
407 |
previously have added a new alias for it. As a result the end |
407 |
previously have added a new alias for it. As a result the end |
408 |
user can get EIO errors when accessing any file in a volume |
408 |
user can get EIO errors when accessing any file in a volume |
409 |
if the volume was first accessed through a different path (ex: |
409 |
if the volume was first accessed through a different path (ex: |
410 |
RO path vs RW path). |
410 |
RO path vs RW path). |
411 |
|
411 |
|
412 |
This commit just restores the old behaviour, adding the directory |
412 |
This commit just restores the old behaviour, adding the directory |
413 |
alias manually in the error case, which is what older versions |
413 |
alias manually in the error case, which is what older versions |
414 |
of d_splice_alias used to do. |
414 |
of d_splice_alias used to do. |
415 |
|
415 |
|
416 |
Reviewed-on: http://gerrit.openafs.org/11492 |
416 |
Reviewed-on: http://gerrit.openafs.org/11492 |
417 |
Tested-by: BuildBot <buildbot@rampaginggeek.com> |
417 |
Tested-by: BuildBot <buildbot@rampaginggeek.com> |
418 |
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net> |
418 |
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net> |
419 |
Reviewed-by: Andrew Deason <adeason@sinenomine.net> |
419 |
Reviewed-by: Andrew Deason <adeason@sinenomine.net> |
420 |
Reviewed-by: D Brashear <shadow@your-file-system.com> |
420 |
Reviewed-by: D Brashear <shadow@your-file-system.com> |
421 |
(cherry picked from commit 5815ee92a41cdcf105741d834042a5617dc4c219) |
421 |
(cherry picked from commit 5815ee92a41cdcf105741d834042a5617dc4c219) |
422 |
|
422 |
|
423 |
Change-Id: Ie86009ede93255c85fcf640af14c598fe1e42ca9 |
423 |
Change-Id: Ie86009ede93255c85fcf640af14c598fe1e42ca9 |