Bug#1035908: Bullseye regression: NFS4 referals appear not to work

2023-11-22 Thread Salvatore Bonaccorso
Hi Sam,

On Wed, May 10, 2023 at 04:46:02PM -0600, Sam Hartman wrote:
> 
> package: nfs-utils
> severity: important
> justification: regression from bullseye with silent failure
> version: 1:2.6.2-4
> 
> Hi.
> I've noticed that since upgrading to  bookworm the refer option in
> /etc/exports appears to be entirely ignored.
> 
> Looking through the sources to exportd and support/export/cache.c, it
> looks like perhaps referals support in exports is keyed on
> --enable-junctions.  I'm not entirely sure of that, but
> it looks like write_fsloc is only called in dump_to_cache  if
> HAVE_JUNCTION_SUPPORT is enabled.
> 
> I *think* write_fsloc is what writes out the referal location as well as
> any junction location.
> So, I *think* that as part of adding the junction support upstream has
> broken referals unless you enable junction support.
> 
> That's kind of unfortunate for us because junction support comes with
> dependencies like libxml2 which are kind of a lot to swallow in
> nfs-utils.
> 
> I'd appreciate help confirming my conclusions.
> 
> * Are referals actually broken
> 
> * Is there an easy way to get them back without junction support
> 
> * how willing to turn on junction support are we in bookworm?  In a
>   bookworm backport?

I was asked by upstream for reasons why Debian has not so far enabled
junction support, which I'm going to do so in 
https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/28

Related, Chuck mentioned that there are so far not known breakages to
"refer=" due to the introduction of junction support. "refer=" is
supposed to work with both --enable-junction=yes and
--enable-junction=no.

If you are able to pinpoint the issue that would be great to be
reported upstream, can you do that?

Regards,
Salvatore



Bug#1035908: Bullseye regression: NFS4 referals appear not to work

2023-05-10 Thread Sam Hartman

package: nfs-utils
severity: important
justification: regression from bullseye with silent failure
version: 1:2.6.2-4

Hi.
I've noticed that since upgrading to  bookworm the refer option in
/etc/exports appears to be entirely ignored.

Looking through the sources to exportd and support/export/cache.c, it
looks like perhaps referals support in exports is keyed on
--enable-junctions.  I'm not entirely sure of that, but
it looks like write_fsloc is only called in dump_to_cache  if
HAVE_JUNCTION_SUPPORT is enabled.

I *think* write_fsloc is what writes out the referal location as well as
any junction location.
So, I *think* that as part of adding the junction support upstream has
broken referals unless you enable junction support.

That's kind of unfortunate for us because junction support comes with
dependencies like libxml2 which are kind of a lot to swallow in
nfs-utils.

I'd appreciate help confirming my conclusions.

* Are referals actually broken

* Is there an easy way to get them back without junction support

* how willing to turn on junction support are we in bookworm?  In a
  bookworm backport?
  


signature.asc
Description: PGP signature