[Libguestfs] guestfs-tools for *BSD images

Richard W.M. Jones rjones at redhat.com
Thu Dec 9 11:21:19 UTC 2021


On Thu, Dec 09, 2021 at 12:06:33PM +0100, Laszlo Ersek wrote:
> On 12/09/21 03:28, Yongkui Guo wrote:
> > Hi Brady,
> > There is a related bug before: Bug 541618
> > <https://bugzilla.redhat.com/show_bug.cgi?id=541618> - guestfish not able
> > to mount freebsd ufs2 partitions automatically
> 
> The last comment on that bug is dated  2013-11-22 at present. With the
> justification given by Rich in this very thread (= impossible to tell
> apart different things that all claim to be UFS), is it even possible to
> fix that bug? Should we close it as CANTFIX?

Yes - I've closed it now with a reference to this thread.

Rich.

> Thanks
> Laszlo
> 
> > 
> > On Wed, Dec 8, 2021 at 10:26 PM Laszlo Ersek <lersek at redhat.com> wrote:
> > 
> >> On 12/08/21 11:52, Richard W.M. Jones wrote:
> >>> On Tue, Dec 07, 2021 at 12:18:30PM -0600, Brady Pratt wrote:
> >>>> [    1.998352] >>>WARNING<<< Wrong ufstype may corrupt your filesystem,
> >> default
> >>>> is ufstype=old
> >>>
> >>> The problem is this one and it's not easily resolvable.  UFS isn't a
> >>> single filesystem type, it's a clade of filesystems which all evolved
> >>> from a common ancestor through the various BSDs, but crucially have
> >>> the same magic number (so no way to differentiate them).  For *BSD
> >>> itself this isn't a problem since the same OS creates and consumes the
> >>> filesystem.
> >>
> >> (I think it *should* be considered a problem even for the *BSDs; what
> >> about moving disks between different BSD versions or flavors?)
> >>
> >>> But it's a problem for Linux which must be told which
> >>> filesystem type to mount - and get it wrong, as you can see above, Bad
> >>> Things happen.
> >>>
> >>> So it's not really possible to resolve this in libguestfs as we don't
> >>> know the filesystem type until after we have mounted and inspected it.
> >>>
> >>> Rich.
> >>>
> >>
> >> _______________________________________________
> >> Libguestfs mailing list
> >> Libguestfs at redhat.com
> >> https://listman.redhat.com/mailman/listinfo/libguestfs
> > 

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list