DragonFly BSD
DragonFly bugs List (threaded) for 2009-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

HAMMER: you can newfs a mounted hammer device


From: Jan Lentfer <Jan.Lentfer@xxxxxx>
Date: Tue, 13 Oct 2009 20:16:03 +0200

Retry the following:

# newfs_hammer -L pgsql /dev/ad7s2d
# mount_hammer /dev/ad7s2d /usr/pkg/pgsq
# newfs /dev/ad7s2d
# umount /usr/pkg/pgsql
# mount /dev/ad7s2d /usr/pkg/pgsql
# mount | grep pgsql
dev/ad7s2d on /usr/pkg/pgsql (ufs, local)


So, it actually newfs'd the mounted hammer fs, then you can unmount the hammer and mount the device as UFS.

I think it works because newfs looks into the mounted devices, but
there is no /dev/xyz, but only the label... so it goes on happily and
newfs maybe does not check for existing superblocks (like newfs.xfs)
and if it checks maybe it doesn't know how a hammer one looks like.


Kind Regards,


Jan Lentfer



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