Project

General

Profile

Actions

Bug #1570

closed

HAMMER: you can newfs a mounted hammer device

Added by lentferj about 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Retry the following:

  1. newfs_hammer -L pgsql /dev/ad7s2d
  2. mount_hammer /dev/ad7s2d /usr/pkg/pgsq
  3. newfs /dev/ad7s2d
  4. umount /usr/pkg/pgsql
  5. mount /dev/ad7s2d /usr/pkg/pgsql
  6. 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

Actions

Also available in: Atom PDF