NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/57467: zfs cannot umount snapshots once access it via /usr/.zfs/shapshots/ ....



The following reply was made to PR kern/57467; it has been noted by GNATS.

From: Sergio de Almeida Lenzi <nervoso%k1.com.br@localhost>
To: gnats-bugs%netbsd.org@localhost, kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/57467: zfs cannot umount snapshots once access it via
 /usr/.zfs/shapshots/ ....
Date: Tue, 13 Jun 2023 11:42:15 -0300

 --=-AjuwFTWJtSU0PPMm2Dxz
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: 8bit
 
 Em ter, 2023-06-13 às 06:10 +0000, Michael van Elst escreveu:
 > The following reply was made to PR kern/57467; it has been noted by GNATS.
 > From: mlelstv%serpens.de@localhost (Michael van Elst)To: gnats-bugs%netbsd.org@localhost
 > Cc: Subject: Re: kern/57467: zfs cannot umount snapshots once access it via /usr/.zfs/shapshots/ ....Date: Tue, 13 Jun 2023 06:07:51 -0000 (UTC)
 >  nervoso%k1.com.br@localhost writes:  >but once I leave the directory, the mountpoint remains, and >there is NO WAY to umount it... umount /usr/.zfs/.... => operation not permitted even on root  The zfs tool doesn't umount because a snapshot is of the wrong type. This might still be true for ZFS-on-Linux.
 is there a patch for this issue???   on FreeBSD it works ok .
 >   The regular umount (which works on Linux) fails with "Invalid argument" because the snapshot is mounted with a vnode that isn't marked as VV_ROOT. I'm not sure if that flag could easily be set for it. 
 If I patch zfsmount to set the VV_ROOT  will it work?
 
 
 are there working on zfs to resolve these issues???
 
 Ty
 
 
 
 --=-AjuwFTWJtSU0PPMm2Dxz
 Content-Type: text/html; charset="utf-8"
 Content-Transfer-Encoding: quoted-printable
 
 <html dir=3D"ltr"><head></head><body style=3D"text-align:left; direction:lt=
 r;" bgcolor=3D"#ffffff" text=3D"#000000" link=3D"#0000ee" vlink=3D"#0000ee"=
 ><div>Em ter, 2023-06-13 =C3=A0s 06:10 +0000, Michael van Elst escreveu:</d=
 iv><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex; border-left:2px #7=
 29fcf solid;padding-left:1ex"><pre>The following reply was made to PR kern/=
 57467; it has been noted by GNATS.</pre><pre><br></pre><pre>From: </pre><a =
 href=3D"mailto:mlelstv%serpens.de@localhost";><pre>mlelstv%serpens.de@localhost</pre></a><pre> (=
 Michael van Elst)</pre><pre>To: </pre><a href=3D"mailto:gnats-bugs@netbsd.o=
 rg"><pre>gnats-bugs%netbsd.org@localhost</pre></a><pre><br></pre><pre>Cc: </pre><pre>=
 Subject: Re: kern/57467: zfs cannot umount snapshots once access it via /us=
 r/.zfs/shapshots/ ....</pre><pre>Date: Tue, 13 Jun 2023 06:07:51 -0000 (UTC=
 )</pre><pre><br></pre><pre> </pre><a href=3D"mailto:nervoso%k1.com.br@localhost";><pre=
 >nervoso%k1.com.br@localhost</pre></a><pre> writes:</pre><pre> </pre><pre> &gt;but on=
 ce I leave the directory, the mountpoint remains, and</pre><pre> &gt;there =
 is NO WAY to umount it... umount /usr/.zfs/.... =3D&gt; operation not permi=
 tted even on root</pre><pre> </pre><pre> The zfs tool doesn't umount becaus=
 e a snapshot is of the wrong type. This might still be true for ZFS-on-Linu=
 x.</pre></blockquote><div>is there a patch for this issue???   on FreeBSD i=
 t works ok .</div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex; bor=
 der-left:2px #729fcf solid;padding-left:1ex"><pre> </pre><pre> The regular =
 umount (which works on Linux) fails with "Invalid argument"</pre><pre> beca=
 use the snapshot is mounted with a vnode that isn't marked as VV_ROOT.</pre=
 ><pre> I'm not sure if that flag could easily be set for it.</pre><pre> </p=
 re></blockquote><div>If I patch zfsmount to set the VV_ROOT  will it work?<=
 /div><div><br></div><div><br></div><div>are there working on zfs to resolve=
  these issues???</div><div><br></div><div>Ty</div><div><br></div></body></h=
 tml>
 
 --=-AjuwFTWJtSU0PPMm2Dxz--
 



Home | Main Index | Thread Index | Old Index