k***@cflinux.hu
2014-02-10 14:49:21 UTC
Dear All,
I was fixing some issues in FreeBSD port of ZFS. While reading, and
comparing code found that in illumos, in
zfs/zfs_ctldir.c the snapdir_lookup() function has a branch where it
founds a cached snapshot mount point which just got unmounted in line
845.
The branch contains a single 'goto domount' statement, where it simply
skips initializing the snapname variable. That does seem to me like a
bug, and the freebsd port contains an additional
statement in that branch to initialize the named variable.
I ask: is there any possibility in illumos to have that case happen at
all?
Or do I misunderstand the code?
Thanks in advance,
I was fixing some issues in FreeBSD port of ZFS. While reading, and
comparing code found that in illumos, in
zfs/zfs_ctldir.c the snapdir_lookup() function has a branch where it
founds a cached snapshot mount point which just got unmounted in line
845.
The branch contains a single 'goto domount' statement, where it simply
skips initializing the snapname variable. That does seem to me like a
bug, and the freebsd port contains an additional
statement in that branch to initialize the named variable.
I ask: is there any possibility in illumos to have that case happen at
all?
Or do I misunderstand the code?
Thanks in advance,