History log of /dragonfly/usr.sbin/makefs/hammer2/ (Results 1 – 25 of 52)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
764bf12e01-Dec-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Properly support block device for image creation

Unlike regular file image, block device image creation fails
if estimated image size exceeds the device size.

Sparse file o

usr.sbin/makefs/hammer2: Properly support block device for image creation

Unlike regular file image, block device image creation fails
if estimated image size exceeds the device size.

Sparse file option is ignored. The block device blocks aren't
zero cleared.

show more ...

096d2ac430-Nov-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

sys/vfs/hammer2: Remove unused local variable *pmp

No longer used since 34fb48c236fd17fbe558c7b2cf21b4e50f38153e.
makefs code warned on Linux.

6b47f3ea29-Nov-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Sync with sys/vfs/hammer2

Sync with following sys/vfs/hammer2 commits.
Also remove unused makefs specific function hammer2_pfs_inode_count().

$ git log --pretty="%h %s" 961db90e96d

usr.sbin/makefs: Sync with sys/vfs/hammer2

Sync with following sys/vfs/hammer2 commits.
Also remove unused makefs specific function hammer2_pfs_inode_count().

$ git log --pretty="%h %s" 961db90e96d4d039edbd15dd78ecc822445405ec.. -- sys/vfs/hammer2/
bb70b93b8e sys/vfs/hammer2: Rename HAMMER2_INODE_ONRBTREE -> HAMMER2_INODE_ONHASH
ad82725233 sys/vfs/hammer2: Remove REGFILE/SOFTLINK test in hammer2_inode_create_pfs()
258074ba74 sys/vfs/hammer2: Minor cleanup
0130729cda sys/vfs/hammer2: Fix comments on comp|check macros
9046282cb0 hammer2: Use HAMMER2_CHECK_DEFAULT when creating inode
a071436b39 hammer2: Rename HAMMER2_COMP_NEWFS_DEFAULT -> HAMMER2_COMP_DEFAULT
da9dedd0a7 sys/vfs/hammer2: Remove unused lbase local variables for hammer2_calc_logical()
caf661fcf8 hammer2 - Try to reduce no-activity stalls during complex flushes
34fb48c236 hammer2 - Multitude of SMP contention fixes, work on flush
34a86030d9 sys/vfs/hammer2: Remove obsolete comments on common parent
74fa7b92b4 sys/vfs/hammer2: Remove obsolete comments on hidden inode
3a3a7c0e9c sys/vfs/hammer2: vnops need to return unix errno
2b3f93ea6d kernel - Add per-process capability-based restrictions
eeb5b5dd2c sys/vfs/hammer2: Use hammer2_off_t in hammer2_io_alloc()
68e37e5676 sys/vfs/hammer2: Fix double count of hammer2_iod_file_{read,write}
7cf689a5ea sys/vfs/hammer2: Don't fail to lockinit diolk for fchain / vchain
73da171931 sys/vfs/hammer2: Use HAMMER2_VOLUME_BYTES for volume header size
41fa929b83 sys/vfs/hammer2: Fix XOP structure used in hammer2_inode_chain_flush()
4fe5868fa3 usr.sbin/makefs/hammer2: Fix -Wunused-but-set-variable warnings on Linux

show more ...


/dragonfly/sbin/ipfw3/ipfw3table.c
/dragonfly/sbin/routed/Makefile
/dragonfly/sbin/routed/defs.h
/dragonfly/sbin/routed/if.c
/dragonfly/sbin/routed/main.c
/dragonfly/sbin/routed/output.c
/dragonfly/sbin/routed/rdisc.c
/dragonfly/sbin/routed/rtquery/rtquery.c
/dragonfly/sbin/routed/table.c
/dragonfly/sbin/routed/trace.c
/dragonfly/share/man/man4/urtwn.4
/dragonfly/share/man/man9/mbuf.9
/dragonfly/sys/bus/u4b/usbdevs
/dragonfly/sys/bus/u4b/wlan/if_urtwn.c
/dragonfly/sys/conf/files
/dragonfly/sys/crypto/Makefile
/dragonfly/sys/crypto/chacha20/_chacha.h
/dragonfly/sys/crypto/chacha20/chacha.c
/dragonfly/sys/crypto/chacha20/chacha.h
/dragonfly/sys/dev/misc/musycc/musycc.c
/dragonfly/sys/dev/netif/mn/if_mn.c
/dragonfly/sys/kern/kern_nrandom.c
/dragonfly/sys/kern/libmchain/subr_mchain.c
/dragonfly/sys/kern/subr_csprng.c
/dragonfly/sys/kern/subr_param.c
/dragonfly/sys/kern/uipc_mbuf.c
/dragonfly/sys/kern/uipc_socket.c
/dragonfly/sys/kern/uipc_syscalls.c
/dragonfly/sys/kern/uipc_usrreq.c
/dragonfly/sys/kern/vfs_subr.c
/dragonfly/sys/net/bpf.c
/dragonfly/sys/net/disc/if_disc.c
/dragonfly/sys/net/gif/if_gif.c
/dragonfly/sys/net/if.c
/dragonfly/sys/net/if_loop.c
/dragonfly/sys/net/ip6fw/ip6_fw.c
/dragonfly/sys/net/ipfw/ip_fw2.c
/dragonfly/sys/net/ipfw3_basic/ip_fw3_basic.c
/dragonfly/sys/net/ipfw3_basic/ip_fw3_state.c
/dragonfly/sys/net/ipfw3_basic/ip_fw3_sync.c
/dragonfly/sys/net/ipfw3_basic/ip_fw3_table.c
/dragonfly/sys/net/ipfw3_basic/ip_fw3_table.h
/dragonfly/sys/net/ipfw3_layer2/ip_fw3_layer2.c
/dragonfly/sys/net/pf/if_pfsync.c
/dragonfly/sys/net/pf/pf.c
/dragonfly/sys/net/pf/pf_ioctl.c
/dragonfly/sys/net/pf/pf_table.c
/dragonfly/sys/net/radix.c
/dragonfly/sys/net/radix.h
/dragonfly/sys/net/route.c
/dragonfly/sys/net/route.h
/dragonfly/sys/net/rtsock.c
/dragonfly/sys/net/stf/if_stf.c
/dragonfly/sys/net/tap/if_tap.c
/dragonfly/sys/net/tun/if_tun.c
/dragonfly/sys/netbt/bt_proto.c
/dragonfly/sys/netbt/sco_socket.c
/dragonfly/sys/netgraph/iface/ng_iface.c
/dragonfly/sys/netgraph/socket/ng_socket.c
/dragonfly/sys/netinet/if_ether.c
/dragonfly/sys/netinet/in_proto.c
/dragonfly/sys/netinet/in_rmx.c
/dragonfly/sys/netinet/raw_ip.c
/dragonfly/sys/netinet6/in6_proto.c
/dragonfly/sys/netinet6/in6_rmx.c
/dragonfly/sys/netinet6/nd6.c
/dragonfly/sys/netproto/mpls/mpls_proto.c
/dragonfly/sys/netproto/smb/smb_trantcp.c
/dragonfly/sys/opencrypto/crypto.c
/dragonfly/sys/opencrypto/cryptosoft.c
/dragonfly/sys/opencrypto/gmac.c
/dragonfly/sys/opencrypto/gmac.h
/dragonfly/sys/opencrypto/xform.c
/dragonfly/sys/opencrypto/xform.h
/dragonfly/sys/sys/csprng.h
/dragonfly/sys/sys/domain.h
/dragonfly/sys/sys/mbuf.h
/dragonfly/sys/vfs/hammer2/hammer2.h
/dragonfly/sys/vfs/hammer2/hammer2_disk.h
/dragonfly/sys/vfs/hammer2/hammer2_inode.c
/dragonfly/sys/vfs/hammer2/hammer2_vnops.c
/dragonfly/sys/vfs/nfs/krpc_subr.c
/dragonfly/sys/vfs/nfs/nfs_mountrpc.c
/dragonfly/sys/vfs/nfs/nfs_socket.c
/dragonfly/sys/vfs/nfs/nfs_syscalls.c
/dragonfly/usr.bin/netstat/route.c
hammer2.h
hammer2_admin.c
hammer2_chain.c
hammer2_compat.h
hammer2_flush.c
hammer2_inode.c
hammer2_io.c
hammer2_ioctl.c
hammer2_strategy.c
hammer2_vfsops.c
hammer2_vnops.c
9046282c05-Nov-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

hammer2: Use HAMMER2_CHECK_DEFAULT when creating inode

There are a few cases where inode check type is explicitly
specified (usually derived from parent directory inode).

These cases should use HAM

hammer2: Use HAMMER2_CHECK_DEFAULT when creating inode

There are a few cases where inode check type is explicitly
specified (usually derived from parent directory inode).

These cases should use HAMMER2_CHECK_DEFAULT rather than
HAMMER2_CHECK_XXHASH64, in the same way HAMMER2_COMP_DEFAULT
is being used.

show more ...

a071436b05-Nov-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

hammer2: Rename HAMMER2_COMP_NEWFS_DEFAULT -> HAMMER2_COMP_DEFAULT

This was originally only used within newfs_hammer2(8) when first
appeared in f481450ffccdbf50f8c9604067c25eb642a0c562 in 2013,
but

hammer2: Rename HAMMER2_COMP_NEWFS_DEFAULT -> HAMMER2_COMP_DEFAULT

This was originally only used within newfs_hammer2(8) when first
appeared in f481450ffccdbf50f8c9604067c25eb642a0c562 in 2013,
but it's now always used when creating a new inode (e.g. ioctl).

The check version of this is HAMMER2_CHECK_DEFAULT without "NEWFS_".

show more ...


/dragonfly/contrib/dhcpcd/README.DRAGONFLY
/dragonfly/contrib/dhcpcd/src/defs.h
/dragonfly/contrib/dhcpcd/src/dhcpcd.c
/dragonfly/contrib/dhcpcd/src/dhcpcd.h
/dragonfly/contrib/dhcpcd/src/privsep-control.c
/dragonfly/contrib/dhcpcd/src/privsep.c
/dragonfly/contrib/dhcpcd/src/privsep.h
/dragonfly/contrib/dhcpcd/src/script.c
/dragonfly/sbin/hammer2/cmd_debug.c
/dragonfly/sbin/hammer2/cmd_stat.c
/dragonfly/sbin/hammer2/hammer2.h
/dragonfly/sbin/hammer2/hammer2_subs.h
/dragonfly/sbin/hammer2/subs.c
/dragonfly/sbin/newfs_hammer2/mkfs_hammer2.c
/dragonfly/sbin/newfs_hammer2/newfs_hammer2.c
/dragonfly/sys/bus/cam/scsi/scsi_cd.c
/dragonfly/sys/bus/cam/scsi/scsi_ch.c
/dragonfly/sys/bus/cam/scsi/scsi_da.c
/dragonfly/sys/bus/cam/scsi/scsi_pass.c
/dragonfly/sys/bus/cam/scsi/scsi_pt.c
/dragonfly/sys/bus/cam/scsi/scsi_sa.c
/dragonfly/sys/bus/cam/scsi/scsi_ses.c
/dragonfly/sys/bus/cam/scsi/scsi_sg.c
/dragonfly/sys/bus/cam/scsi/scsi_target.c
/dragonfly/sys/bus/pci/pci_user.c
/dragonfly/sys/bus/u4b/usbdevs
/dragonfly/sys/bus/u4b/wlan/if_urtwn.c
/dragonfly/sys/conf/files
/dragonfly/sys/dev/crypto/aesni/aesni_wrap.c
/dragonfly/sys/dev/crypto/padlock/padlock_cipher.c
/dragonfly/sys/dev/misc/evdev/cdev.c
/dragonfly/sys/dev/misc/evdev/evdev_utils.c
/dragonfly/sys/dev/misc/kbd/kbd.c
/dragonfly/sys/dev/misc/syscons/syscons.c
/dragonfly/sys/dev/netif/re/re.c
/dragonfly/sys/dev/virtual/virtio/net/if_vtnet.c
/dragonfly/sys/kern/kern_caps.c
/dragonfly/sys/kern/kern_jail.c
/dragonfly/sys/kern/kern_memio.c
/dragonfly/sys/kern/kern_mutex.c
/dragonfly/sys/kern/kern_spinlock.c
/dragonfly/sys/kern/lwkt_thread.c
/dragonfly/sys/kern/lwkt_token.c
/dragonfly/sys/kern/subr_bus.c
/dragonfly/sys/kern/subr_disk.c
/dragonfly/sys/kern/subr_taskqueue.c
/dragonfly/sys/kern/tty_cons.c
/dragonfly/sys/kern/uipc_socket.c
/dragonfly/sys/kern/vfs_cache.c
/dragonfly/sys/kern/vfs_sync.c
/dragonfly/sys/kern/vfs_syscalls.c
/dragonfly/sys/libkern/arc4random.c
/dragonfly/sys/libkern/arc4random_uniform.c
/dragonfly/sys/libkern/explicit_bzero.c
/dragonfly/sys/net/pf/pf.c
/dragonfly/sys/opencrypto/cryptosoft.c
/dragonfly/sys/sys/caps.h
/dragonfly/sys/sys/indefinite.h
/dragonfly/sys/sys/indefinite2.h
/dragonfly/sys/sys/jail.h
/dragonfly/sys/sys/libkern.h
/dragonfly/sys/sys/systm.h
/dragonfly/sys/sys/vmmeter.h
/dragonfly/sys/sys/vnode.h
/dragonfly/sys/vfs/devfs/devfs_vnops.c
/dragonfly/sys/vfs/hammer2/hammer2.h
/dragonfly/sys/vfs/hammer2/hammer2_admin.c
/dragonfly/sys/vfs/hammer2/hammer2_chain.c
/dragonfly/sys/vfs/hammer2/hammer2_disk.h
/dragonfly/sys/vfs/hammer2/hammer2_flush.c
/dragonfly/sys/vfs/hammer2/hammer2_inode.c
/dragonfly/sys/vfs/hammer2/hammer2_io.c
/dragonfly/sys/vfs/hammer2/hammer2_ioctl.c
/dragonfly/sys/vfs/hammer2/hammer2_vfsops.c
/dragonfly/sys/vfs/hammer2/hammer2_vnops.c
/dragonfly/sys/vfs/nfs/nfs_socket.c
/dragonfly/sys/vm/vm_meter.c
/dragonfly/usr.bin/systat/main.c
/dragonfly/usr.bin/systat/systat.1
/dragonfly/usr.bin/systat/systat.h
/dragonfly/usr.bin/systat/vmmeter.c
/dragonfly/usr.sbin/jail/jail.8
/dragonfly/usr.sbin/makefs/hammer2.c
hammer2_ioctl.c
/dragonfly/usr.sbin/makefs/makefs.8
2b3f93ea13-Oct-2023 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Add per-process capability-based restrictions

* This new system allows userland to set capability restrictions which
turns off numerous kernel features and root accesses. These restricti

kernel - Add per-process capability-based restrictions

* This new system allows userland to set capability restrictions which
turns off numerous kernel features and root accesses. These restrictions
are inherited by sub-processes recursively. Once set, restrictions cannot
be removed.

Basic restrictions that mimic an unadorned jail can be enabled without
creating a jail, but generally speaking real security also requires
creating a chrooted filesystem topology, and a jail is still needed
to really segregate processes from each other. If you do so, however,
you can (for example) disable mount/umount and most global root-only
features.

* Add new system calls and a manual page for syscap_get(2) and syscap_set(2)

* Add sys/caps.h

* Add the "setcaps" userland utility and manual page.

* Remove priv.9 and the priv_check infrastructure, replacing it with
a newly designed caps infrastructure.

* The intention is to add path restriction lists and similar features to
improve jailess security in the near future, and to optimize the
priv_check code.

show more ...


/dragonfly/Makefile_upgrade.inc
/dragonfly/bin/ps/print.c
/dragonfly/bin/ps/ps.1
/dragonfly/contrib/dhcpcd/README.DRAGONFLY
/dragonfly/contrib/dhcpcd/README.md
/dragonfly/contrib/dhcpcd/src/defs.h
/dragonfly/contrib/dhcpcd/src/dhcp-common.c
/dragonfly/contrib/dhcpcd/src/dhcp-common.h
/dragonfly/contrib/dhcpcd/src/dhcp.c
/dragonfly/contrib/dhcpcd/src/dhcp6.c
/dragonfly/contrib/dhcpcd/src/dhcpcd-embedded.c
/dragonfly/contrib/dhcpcd/src/dhcpcd-embedded.h
/dragonfly/contrib/dhcpcd/src/dhcpcd.8
/dragonfly/contrib/dhcpcd/src/dhcpcd.c
/dragonfly/contrib/dhcpcd/src/dhcpcd.conf.5
/dragonfly/contrib/dhcpcd/src/if-options.c
/dragonfly/contrib/dhcpcd/src/ipv6nd.c
/dragonfly/contrib/dhcpcd/src/privsep.c
/dragonfly/contrib/dhcpcd/src/privsep.h
/dragonfly/lib/libc/sys/Makefile.inc
/dragonfly/lib/libc/sys/Symbol.map
/dragonfly/lib/libc/sys/syscap_get.2
/dragonfly/sbin/dhcpcd/config.h
/dragonfly/sbin/hammer2/cmd_recover.c
/dragonfly/sbin/hammer2/cmd_snapshot.c
/dragonfly/sbin/hammer2/hammer2.8
/dragonfly/sbin/hammer2/main.c
/dragonfly/share/man/man9/Makefile
/dragonfly/sys/bus/u4b/audio/uaudio.c
/dragonfly/sys/bus/u4b/controller/ehci.c
/dragonfly/sys/bus/u4b/controller/ehci_pci.c
/dragonfly/sys/bus/u4b/controller/ohci.c
/dragonfly/sys/bus/u4b/controller/ohci_pci.c
/dragonfly/sys/bus/u4b/controller/uhci.c
/dragonfly/sys/bus/u4b/controller/uhci_pci.c
/dragonfly/sys/bus/u4b/controller/usb_controller.c
/dragonfly/sys/bus/u4b/controller/xhci.c
/dragonfly/sys/bus/u4b/controller/xhci_pci.c
/dragonfly/sys/bus/u4b/gadget/g_audio.c
/dragonfly/sys/bus/u4b/gadget/g_keyboard.c
/dragonfly/sys/bus/u4b/gadget/g_modem.c
/dragonfly/sys/bus/u4b/gadget/g_mouse.c
/dragonfly/sys/bus/u4b/input/uhid.c
/dragonfly/sys/bus/u4b/input/ukbd.c
/dragonfly/sys/bus/u4b/input/ums.c
/dragonfly/sys/bus/u4b/misc/ufm.c
/dragonfly/sys/bus/u4b/net/if_aue.c
/dragonfly/sys/bus/u4b/net/if_cdce.c
/dragonfly/sys/bus/u4b/net/if_cue.c
/dragonfly/sys/bus/u4b/net/if_ipheth.c
/dragonfly/sys/bus/u4b/net/if_kue.c
/dragonfly/sys/bus/u4b/net/if_mos.c
/dragonfly/sys/bus/u4b/net/if_udav.c
/dragonfly/sys/bus/u4b/net/if_urndis.c
/dragonfly/sys/bus/u4b/quirk/usb_quirk.c
/dragonfly/sys/bus/u4b/serial/u3g.c
/dragonfly/sys/bus/u4b/serial/uark.c
/dragonfly/sys/bus/u4b/serial/ubsa.c
/dragonfly/sys/bus/u4b/serial/ubser.c
/dragonfly/sys/bus/u4b/serial/uchcom.c
/dragonfly/sys/bus/u4b/serial/ucycom.c
/dragonfly/sys/bus/u4b/serial/ufoma.c
/dragonfly/sys/bus/u4b/serial/uftdi.c
/dragonfly/sys/bus/u4b/serial/ugensa.c
/dragonfly/sys/bus/u4b/serial/uipaq.c
/dragonfly/sys/bus/u4b/serial/ulpt.c
/dragonfly/sys/bus/u4b/serial/umcs.c
/dragonfly/sys/bus/u4b/serial/umct.c
/dragonfly/sys/bus/u4b/serial/umodem.c
/dragonfly/sys/bus/u4b/serial/umoscom.c
/dragonfly/sys/bus/u4b/serial/uplcom.c
/dragonfly/sys/bus/u4b/serial/usb_serial.c
/dragonfly/sys/bus/u4b/serial/uslcom.c
/dragonfly/sys/bus/u4b/serial/uvisor.c
/dragonfly/sys/bus/u4b/serial/uvscom.c
/dragonfly/sys/bus/u4b/storage/umass.c
/dragonfly/sys/bus/u4b/storage/urio.c
/dragonfly/sys/bus/u4b/storage/ustorage_fs.c
/dragonfly/sys/bus/u4b/template/usb_template.c
/dragonfly/sys/bus/u4b/template/usb_template_audio.c
/dragonfly/sys/bus/u4b/template/usb_template_cdce.c
/dragonfly/sys/bus/u4b/template/usb_template_kbd.c
/dragonfly/sys/bus/u4b/template/usb_template_modem.c
/dragonfly/sys/bus/u4b/template/usb_template_mouse.c
/dragonfly/sys/bus/u4b/template/usb_template_msc.c
/dragonfly/sys/bus/u4b/template/usb_template_mtp.c
/dragonfly/sys/bus/u4b/template/usb_template_phone.c
/dragonfly/sys/bus/u4b/template/usb_template_serialnet.c
/dragonfly/sys/bus/u4b/usb_busdma.c
/dragonfly/sys/bus/u4b/usb_core.c
/dragonfly/sys/bus/u4b/usb_debug.c
/dragonfly/sys/bus/u4b/usb_dev.c
/dragonfly/sys/bus/u4b/usb_device.c
/dragonfly/sys/bus/u4b/usb_dynamic.c
/dragonfly/sys/bus/u4b/usb_error.c
/dragonfly/sys/bus/u4b/usb_generic.c
/dragonfly/sys/bus/u4b/usb_handle_request.c
/dragonfly/sys/bus/u4b/usb_hid.c
/dragonfly/sys/bus/u4b/usb_hub.c
/dragonfly/sys/bus/u4b/usb_lookup.c
/dragonfly/sys/bus/u4b/usb_mbuf.c
/dragonfly/sys/bus/u4b/usb_msctest.c
/dragonfly/sys/bus/u4b/usb_parse.c
/dragonfly/sys/bus/u4b/usb_process.c
/dragonfly/sys/bus/u4b/usb_request.c
/dragonfly/sys/bus/u4b/usb_transfer.c
/dragonfly/sys/bus/u4b/usb_util.c
/dragonfly/sys/conf/files
/dragonfly/sys/dev/disk/fd/fd.c
/dragonfly/sys/dev/disk/nata/atapi-cd.c
/dragonfly/sys/dev/disk/vn/vn.c
/dragonfly/sys/dev/drm/include/linux/capability.h
/dragonfly/sys/dev/drm/ttm/ttm_memory.c
/dragonfly/sys/dev/misc/cpuctl/cpuctl.c
/dragonfly/sys/dev/misc/dcons/dcons_os.c
/dragonfly/sys/dev/misc/nmdm/nmdm.c
/dragonfly/sys/dev/misc/syscons/syscons.c
/dragonfly/sys/dev/misc/syscons/sysmouse.c
/dragonfly/sys/dev/netif/ath/ath/if_ath.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_beacon.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_debug.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_descdma.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_ioctl.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_keycache.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_led.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_rx.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_rx_edma.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_sysctl.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_tdma.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_tx.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_tx_edma.c
/dragonfly/sys/dev/netif/ath/ath/if_ath_tx_ht.c
/dragonfly/sys/dev/netif/iwn/if_iwn.c
/dragonfly/sys/dev/netif/oce/oce_if.c
/dragonfly/sys/dev/netif/oce/oce_if.h
/dragonfly/sys/dev/netif/sbsh/if_sbsh.c
/dragonfly/sys/dev/netif/wi/if_wi.c
/dragonfly/sys/dev/raid/asr/asr.c
/dragonfly/sys/dev/raid/mpr/mpr.c
/dragonfly/sys/dev/raid/vinum/vinum.c
/dragonfly/sys/dev/raid/vinum/vinumhdr.h
/dragonfly/sys/dev/serial/sio/sio.c
/dragonfly/sys/kern/imgact_resident.c
/dragonfly/sys/kern/init_sysent.c
/dragonfly/sys/kern/kern_acct.c
/dragonfly/sys/kern/kern_caps.c
/dragonfly/sys/kern/kern_clock.c
/dragonfly/sys/kern/kern_dmsg.c
/dragonfly/sys/kern/kern_environment.c
/dragonfly/sys/kern/kern_exec.c
/dragonfly/sys/kern/kern_fp.c
/dragonfly/sys/kern/kern_jail.c
/dragonfly/sys/kern/kern_kinfo.c
/dragonfly/sys/kern/kern_linker.c
/dragonfly/sys/kern/kern_memio.c
/dragonfly/sys/kern/kern_ntptime.c
/dragonfly/sys/kern/kern_plimit.c
/dragonfly/sys/kern/kern_prot.c
/dragonfly/sys/kern/kern_resource.c
/dragonfly/sys/kern/kern_shutdown.c
/dragonfly/sys/kern/kern_sig.c
/dragonfly/sys/kern/kern_spinlock.c
/dragonfly/sys/kern/kern_synch.c
/dragonfly/sys/kern/kern_sysctl.c
/dragonfly/sys/kern/kern_time.c
/dragonfly/sys/kern/kern_usched.c
/dragonfly/sys/kern/kern_varsym.c
/dragonfly/sys/kern/subr_firmware.c
/dragonfly/sys/kern/subr_prf.c
/dragonfly/sys/kern/subr_sleepqueue.c
/dragonfly/sys/kern/sys_mqueue.c
/dragonfly/sys/kern/sys_process.c
/dragonfly/sys/kern/syscalls.c
/dragonfly/sys/kern/syscalls.master
/dragonfly/sys/kern/sysv_ipc.c
/dragonfly/sys/kern/sysv_msg.c
/dragonfly/sys/kern/tty.c
/dragonfly/sys/kern/tty_cons.c
/dragonfly/sys/kern/tty_pty.c
/dragonfly/sys/kern/vfs_helper.c
/dragonfly/sys/kern/vfs_subr.c
/dragonfly/sys/kern/vfs_syscalls.c
/dragonfly/sys/kern/vfs_vnops.c
/dragonfly/sys/net/bridge/if_bridge.c
/dragonfly/sys/net/gre/if_gre.c
/dragonfly/sys/net/if.c
/dragonfly/sys/net/lagg/if_lagg.c
/dragonfly/sys/net/pf/if_pfsync.c
/dragonfly/sys/net/raw_usrreq.c
/dragonfly/sys/net/rtsock.c
/dragonfly/sys/net/sl/if_sl.c
/dragonfly/sys/net/tap/if_tap.c
/dragonfly/sys/net/tun/if_tun.c
/dragonfly/sys/netbt/hci_ioctl.c
/dragonfly/sys/netbt/hci_socket.c
/dragonfly/sys/netgraph/socket/ng_socket.c
/dragonfly/sys/netgraph/tty/ng_tty.c
/dragonfly/sys/netgraph7/bluetooth/drivers/h4/ng_h4.c
/dragonfly/sys/netgraph7/bluetooth/drivers/ubt/ng_ubt.c
/dragonfly/sys/netgraph7/bluetooth/drivers/ubtbcmfw/ubtbcmfw.c
/dragonfly/sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c
/dragonfly/sys/netgraph7/bluetooth/socket/ng_btsocket_l2cap_raw.c
/dragonfly/sys/netgraph7/socket/ng_socket.c
/dragonfly/sys/netgraph7/tty/ng_tty.c
/dragonfly/sys/netinet/in.c
/dragonfly/sys/netinet/in_pcb.c
/dragonfly/sys/netinet/ip_carp.c
/dragonfly/sys/netinet/ip_divert.c
/dragonfly/sys/netinet/ip_output.c
/dragonfly/sys/netinet/raw_ip.c
/dragonfly/sys/netinet/tcp_subr.c
/dragonfly/sys/netinet/udp_usrreq.c
/dragonfly/sys/netinet6/in6.c
/dragonfly/sys/netinet6/in6_pcb.c
/dragonfly/sys/netinet6/in6_src.c
/dragonfly/sys/netinet6/ip6_input.c
/dragonfly/sys/netinet6/ip6_output.c
/dragonfly/sys/netinet6/raw_ip6.c
/dragonfly/sys/netinet6/udp6_output.c
/dragonfly/sys/netinet6/udp6_usrreq.c
/dragonfly/sys/netproto/802_11/wlan/ieee80211_ioctl.c
/dragonfly/sys/netproto/smb/smb_conn.c
/dragonfly/sys/netproto/smb/smb_subr.h
/dragonfly/sys/platform/pc64/x86_64/machdep.c
/dragonfly/sys/platform/pc64/x86_64/mp_flame.c
/dragonfly/sys/sys/caps.h
/dragonfly/sys/sys/kinfo.h
/dragonfly/sys/sys/proc.h
/dragonfly/sys/sys/syscall.h
/dragonfly/sys/sys/syscall.mk
/dragonfly/sys/sys/sysproto.h
/dragonfly/sys/sys/sysunion.h
/dragonfly/sys/sys/ucred.h
/dragonfly/sys/vfs/devfs/devfs_vnops.c
/dragonfly/sys/vfs/ext2fs/ext2_vfsops.c
/dragonfly/sys/vfs/ext2fs/ext2_vnops.c
/dragonfly/sys/vfs/fuse/fuse_vfsops.c
/dragonfly/sys/vfs/hammer/hammer.h
/dragonfly/sys/vfs/hammer/hammer_ioctl.c
/dragonfly/sys/vfs/hammer2/hammer2.h
/dragonfly/sys/vfs/hammer2/hammer2_ioctl.c
/dragonfly/sys/vfs/hpfs/hpfs_vnops.c
/dragonfly/sys/vfs/isofs/cd9660/cd9660_vfsops.c
/dragonfly/sys/vfs/msdosfs/msdosfs_vnops.c
/dragonfly/sys/vfs/nfs/nfs_serv.c
/dragonfly/sys/vfs/nfs/nfs_subs.c
/dragonfly/sys/vfs/nfs/nfs_syscalls.c
/dragonfly/sys/vfs/procfs/procfs.h
/dragonfly/sys/vfs/procfs/procfs_ctl.c
/dragonfly/sys/vfs/procfs/procfs_dbregs.c
/dragonfly/sys/vfs/procfs/procfs_fpregs.c
/dragonfly/sys/vfs/procfs/procfs_mem.c
/dragonfly/sys/vfs/procfs/procfs_regs.c
/dragonfly/sys/vfs/procfs/procfs_status.c
/dragonfly/sys/vfs/procfs/procfs_vnops.c
/dragonfly/sys/vfs/smbfs/smbfs_vnops.c
/dragonfly/sys/vfs/tmpfs/tmpfs_subr.c
/dragonfly/sys/vfs/tmpfs/tmpfs_vnops.c
/dragonfly/sys/vfs/udf/udf_vfsops.c
/dragonfly/sys/vfs/ufs/ufs_vfsops.c
/dragonfly/sys/vfs/ufs/ufs_vnops.c
/dragonfly/sys/vm/vm_mmap.c
/dragonfly/sys/vm/vm_swap.c
/dragonfly/tools/tools/netrate/pktgen/pktgen.c
/dragonfly/usr.bin/Makefile
/dragonfly/usr.bin/dsynth/build.c
/dragonfly/usr.bin/dsynth/dsynth.c
/dragonfly/usr.bin/dsynth/dsynth.h
/dragonfly/usr.bin/dsynth/subs.c
/dragonfly/usr.bin/setcaps/Makefile
/dragonfly/usr.bin/setcaps/setcaps.1
/dragonfly/usr.bin/setcaps/setcaps.c
/dragonfly/usr.bin/w/w.c
hammer2.h
556932ec30-Sep-2023 Matthew Dillon <dillon@apollo.backplane.com>

makefs - Deconflict hammer2 function

* Deconflict and fix build


/dragonfly/contrib/dhcpcd/README.DRAGONFLY
/dragonfly/contrib/dhcpcd/README.md
/dragonfly/contrib/dhcpcd/compat/pidfile.c
/dragonfly/contrib/dhcpcd/compat/rb.c
/dragonfly/contrib/dhcpcd/src/bpf.c
/dragonfly/contrib/dhcpcd/src/common.c
/dragonfly/contrib/dhcpcd/src/control.c
/dragonfly/contrib/dhcpcd/src/defs.h
/dragonfly/contrib/dhcpcd/src/dhcp-common.c
/dragonfly/contrib/dhcpcd/src/dhcp.c
/dragonfly/contrib/dhcpcd/src/dhcp6.c
/dragonfly/contrib/dhcpcd/src/dhcpcd-embedded.c
/dragonfly/contrib/dhcpcd/src/dhcpcd-embedded.h
/dragonfly/contrib/dhcpcd/src/dhcpcd.c
/dragonfly/contrib/dhcpcd/src/eloop.c
/dragonfly/contrib/dhcpcd/src/if-bsd.c
/dragonfly/contrib/dhcpcd/src/if-options.c
/dragonfly/contrib/dhcpcd/src/privsep-bpf.c
/dragonfly/contrib/dhcpcd/src/privsep-bsd.c
/dragonfly/contrib/dhcpcd/src/privsep-control.c
/dragonfly/contrib/dhcpcd/src/privsep-inet.c
/dragonfly/contrib/dhcpcd/src/privsep-root.c
/dragonfly/contrib/dhcpcd/src/privsep.c
/dragonfly/contrib/dhcpcd/src/privsep.h
/dragonfly/contrib/dhcpcd/src/script.c
/dragonfly/etc/etc.x86_64/ttys
/dragonfly/include/ttyent.h
/dragonfly/lib/libc/gen/getttyent.3
/dragonfly/lib/libc/gen/getttyent.c
/dragonfly/libexec/getty/ttys.5
/dragonfly/nrelease/gui/etc/ttys
/dragonfly/nrelease/root/etc/ttys
/dragonfly/sbin/fsck_hammer2/destroy.c
/dragonfly/sbin/fsck_hammer2/reconstruct.c
/dragonfly/sbin/fsck_hammer2/test.c
/dragonfly/sbin/hammer2/Makefile
/dragonfly/sbin/hammer2/cmd_recover.c
/dragonfly/sbin/hammer2/hammer2.8
/dragonfly/sbin/hammer2/hammer2.h
/dragonfly/sbin/hammer2/hammer2_compression.c
/dragonfly/sbin/hammer2/hammer2_subs.h
/dragonfly/sbin/hammer2/lz4/hammer2_lz4.c
/dragonfly/sbin/hammer2/lz4/hammer2_lz4.h
/dragonfly/sbin/hammer2/lz4/hammer2_lz4_encoder.h
/dragonfly/sbin/hammer2/main.c
/dragonfly/sbin/hammer2/ondisk.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_adler32.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_deflate.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_deflate.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_inffast.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_inffast.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_inffixed.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_inflate.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_inflate.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_inftrees.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_inftrees.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_trees.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_trees.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_zconf.h
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_zutil.c
/dragonfly/sbin/hammer2/zlib/hammer2_zlib_zutil.h
/dragonfly/sbin/init/init.c
/dragonfly/sbin/ping/ping.c
/dragonfly/sys/dev/raid/iir/iir.c
/dragonfly/sys/dev/virtual/amazon/ena/ena-com/ena_plat.h
/dragonfly/sys/net/bridge/if_bridge.c
/dragonfly/sys/net/dummynet/ip_dummynet_glue.c
/dragonfly/sys/net/dummynet3/ip_dummynet3_glue.c
/dragonfly/sys/net/gre/if_gre.c
/dragonfly/sys/net/ip_mroute/ip_mroute.c
/dragonfly/sys/net/ipfw/ip_fw2.c
/dragonfly/sys/net/ipfw3/ip_fw3.c
/dragonfly/sys/net/ipfw3_basic/ip_fw3_log.c
/dragonfly/sys/net/ipfw3_nat/ip_fw3_nat.c
/dragonfly/sys/net/netmsg.h
/dragonfly/sys/net/pf/if_pflog.c
/dragonfly/sys/net/pf/pf.c
/dragonfly/sys/net/pf/pf_ioctl.c
/dragonfly/sys/net/pf/pf_norm.c
/dragonfly/sys/net/pf/pf_osfp.c
/dragonfly/sys/net/pf/pfvar.h
/dragonfly/sys/net/ppp_layer/slcompress.c
/dragonfly/sys/net/radix.c
/dragonfly/sys/net/stf/if_stf.c
/dragonfly/sys/netgraph7/ng_ipfw.c
/dragonfly/sys/netgraph7/ng_nat.c
/dragonfly/sys/netinet/igmp.c
/dragonfly/sys/netinet/in_gif.c
/dragonfly/sys/netinet/ip_carp.c
/dragonfly/sys/netinet/ip_demux.c
/dragonfly/sys/netinet/ip_divert.c
/dragonfly/sys/netinet/ip_encap.c
/dragonfly/sys/netinet/ip_gre.c
/dragonfly/sys/netinet/ip_icmp.c
/dragonfly/sys/netinet/ip_input.c
/dragonfly/sys/netinet/ip_output.c
/dragonfly/sys/netinet/ip_var.h
/dragonfly/sys/netinet/raw_ip.c
/dragonfly/sys/netinet/tcp_debug.c
/dragonfly/sys/netinet/tcp_input.c
/dragonfly/sys/netinet/tcp_output.c
/dragonfly/sys/netinet/tcp_subr.c
/dragonfly/sys/netinet/tcp_syncache.c
/dragonfly/sys/netinet/udp_usrreq.c
/dragonfly/sys/netinet6/frag6.c
/dragonfly/sys/netinet6/ip6_input.c
/dragonfly/sys/sys/mbuf.h
/dragonfly/sys/vfs/hammer2/hammer2_chain.c
/dragonfly/sys/vfs/hammer2/hammer2_flush.c
/dragonfly/sys/vfs/hammer2/hammer2_inode.c
/dragonfly/sys/vfs/hammer2/hammer2_io.c
/dragonfly/sys/vfs/hammer2/hammer2_strategy.c
/dragonfly/usr.bin/dsynth/dsynth.1
/dragonfly/usr.bin/dsynth/dsynth.c
/dragonfly/usr.bin/dsynth/dsynth.h
/dragonfly/usr.bin/dsynth/pkglist.c
/dragonfly/usr.bin/dsynth/progress.js
/dragonfly/usr.sbin/makefs/hammer2.c
hammer2.h
hammer2_io.c
hammer2_ondisk.c
6da97f5101-Jul-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Support inode timestamp in "-o R" option

which was missing part in 5e8b0eb766966577a1da788053d7ccaa443fa222.

Get timestamp from source inode within image file, and use that

usr.sbin/makefs/hammer2: Support inode timestamp in "-o R" option

which was missing part in 5e8b0eb766966577a1da788053d7ccaa443fa222.

Get timestamp from source inode within image file, and use that to
update newly created directory and regular file.

If the underlying file system of destination files doesn't support
timestamp and/or updating fails, the failure is simply ignored.

show more ...

daa1a18930-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Fix memory leak from retired xops

Add missing kfrees from 9d036237cbc59969257aaea138ddec5dbd8e181b.

5e8b0eb727-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Support recursive read for "-o R" option

"-o R" option currently creates 0 byte file if a given path is
a directory, as directory inode size is set to 0.

Change this to rec

usr.sbin/makefs/hammer2: Support recursive read for "-o R" option

"-o R" option currently creates 0 byte file if a given path is
a directory, as directory inode size is set to 0.

Change this to recursively walk directories, and retrieve directories
and regular files under that directory. Specifying "-o R=/" does
the reverse of what makefs(8) does.

It currently has following limitations.
- Only directory and regular file are supported, other types are ignored.
- Hard links are not ignored, but files are retrieved as different inodes
and link count is not preserved.
- Inode timestamp is not preserved.
- Anything that HAMMER2 and this option support, but underlying
file system doesn't is unsupported.

show more ...

9d03623727-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Introduce XOP fifo realloc

Since makefs HAMMER2 used a serialized single threaded xops,
it was not possible to have more than HAMMER2_XOPFIFO fifo entries.

Change this to r

usr.sbin/makefs/hammer2: Introduce XOP fifo realloc

Since makefs HAMMER2 used a serialized single threaded xops,
it was not possible to have more than HAMMER2_XOPFIFO fifo entries.

Change this to realloc XOP fifo whenever it hits current limit.
This is also what Free|Net|OpenBSD HAMMER2 currently do until they
support multi-threaded xops.

This makes possible to support VOP_READDIR, and that makes possible
to support recursive read for "-o R" option.

show more ...

fc4148fe24-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add HAMMER2 offline read / VOP_READ support

The offline read takes HAMMER2 specific "-o R" option.
`image-file` argument is a valid HAMMER2 image file or block device.
Unlike other

usr.sbin/makefs: Add HAMMER2 offline read / VOP_READ support

The offline read takes HAMMER2 specific "-o R" option.
`image-file` argument is a valid HAMMER2 image file or block device.
Unlike other offline commands, `directory` must be a valid directory.

e.g.
$ makefs -t hammer2 -o R=/path/to/file /dev/adx /a/b/c
$ makefs -t hammer2 -o R=/path/to/file /path/to/hammer2.img /a/b/c

The "-o R" option requires file path argument. The file is retrieved
from `image-file` and written to a file under `directory`.
In the examples above, /path/to/file is retrieved as /a/b/c/file
on success.

show more ...

89a3eb1623-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Support VOP_READLINK

This makes possible for path component lookup against HAMMER2 image
to handle symlinks with limitations below.

1. It can't support symlink with absolut

usr.sbin/makefs/hammer2: Support VOP_READLINK

This makes possible for path component lookup against HAMMER2 image
to handle symlinks with limitations below.

1. It can't support symlink with absolute path destination by design,
unless you can assume a given image is to be mounted at /.
2. It currently doesn't support "..". This is another non obvious
case where a path could reach to outside of the image.

The regular HAMMER2 image creation doesn't use this (instead makefs
uses real readlink(2) when scanning a source directory).

show more ...

1dc6036f20-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Fix use-after-free caused by unmodified inode

Fix another bug only seen on OpenBSD.

Unlike regular makefs usage for image creation, ioctl commands don't
always modify all i

usr.sbin/makefs/hammer2: Fix use-after-free caused by unmodified inode

Fix another bug only seen on OpenBSD.

Unlike regular makefs usage for image creation, ioctl commands don't
always modify all in-memory inodes. These unmodified inodes get freed
in makefs vflush() via hammer2_inode_drop() on unmount before PFS sync,
but they need to outlive chains.

Add per-PFS reclaim list to keep all inodes intact during unmount
process until PFS is ready to be freed.

show more ...

4fe5868f18-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Fix -Wunused-but-set-variable warnings on Linux

Local variables *iroot and lhc are set but never used.
Also fix sys/vfs/hammer2/hammer2_ioctl.c which is basically the same f

usr.sbin/makefs/hammer2: Fix -Wunused-but-set-variable warnings on Linux

Local variables *iroot and lhc are set but never used.
Also fix sys/vfs/hammer2/hammer2_ioctl.c which is basically the same file.

Also remove "Get the clid" comment in the next line which didn't make
sense since 6f445d15835c6677a0a79c8d168ef44d0b9b22c3 in 2018.

show more ...

465e114117-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add HAMMER2 offline inode setcheck|setcomp support

This commit adds "setcheck" and "setcomp" commands to "-o I" option.
`image-file` argument is a valid HAMMER2 image file or block

usr.sbin/makefs: Add HAMMER2 offline inode setcheck|setcomp support

This commit adds "setcheck" and "setcomp" commands to "-o I" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argument is unused, but needs to be a valid path or "--".

e.g.
$ makefs -t hammer2 -o I=setcheck:/path/to/file:sha192 /dev/adx --
$ makefs -t hammer2 -o I=setcomp:/path/to/file:zlib:6 /path/to/hammer2.img --

"setcheck" takes `:<inode_path>:<check_algo>` string after command name.
"setcomp" takes `:<inode_path>:<comp_algo>[:<comp_level>]` string
after command name. These are equivalent to hammer2(8) setcheck and
setcomp directives.

show more ...

f804c42516-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add HAMMER2 offline inode get support

The offline inode takes HAMMER2 specific "-o I" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argume

usr.sbin/makefs: Add HAMMER2 offline inode get support

The offline inode takes HAMMER2 specific "-o I" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argument is unused, but needs to be a valid path or "--".

e.g.
$ makefs -t hammer2 -o I=get:/path/to/file /dev/adx --
$ makefs -t hammer2 -o I=get:/path/to/file /path/to/hammer2.img --

The "-o I" option requires inode command name argument, which is
currently only "get". "get" takes `:<inode_path>` string after command
name. "get" is equivalent to hammer2(8) printinode directive.

show more ...

f72350ac15-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add offline HAMMER2IOC_VERSION_GET support

The offline version get uses existing "-o V" option with no argument.
`image-file` argument is a valid HAMMER2 image file or block device.

usr.sbin/makefs: Add offline HAMMER2IOC_VERSION_GET support

The offline version get uses existing "-o V" option with no argument.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argument is unused, but needs to be a valid path or "--".

e.g.
$ makefs -t hammer2 -o V /dev/adx --
$ makefs -t hammer2 -o V /path/to/hammer2.img --

There is no hammer2(8) directive for this as it's internally used.

show more ...

ac97ce6012-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Fix "-o D" option when intermediate directories exist

HAMMER2_DELETE_FILE assumes a given inode is a directory containing
dirent whose name is destroy.path. Therefore ioctl caller s

usr.sbin/makefs: Fix "-o D" option when intermediate directories exist

HAMMER2_DELETE_FILE assumes a given inode is a directory containing
dirent whose name is destroy.path. Therefore ioctl caller side needs
to split path components and only pass the last component along with
its direct parent directory inode.

It currently worked only when a target file path is the last component
without intermediate directories (no intermediate '/').

hammer2_ioc_destroy_t::path should be renamed to "name", as it
doesn't allow a file "path".

show more ...

3999233b10-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add HAMMER2 offline PFS get|lookup|create|delete|snapshot support

The offline PFS takes HAMMER2 specific "-o P" option.
`image-file` argument is a valid HAMMER2 image file or block

usr.sbin/makefs: Add HAMMER2 offline PFS get|lookup|create|delete|snapshot support

The offline PFS takes HAMMER2 specific "-o P" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argument is unused, but needs to be a valid path or "--".

e.g.
$ makefs -t hammer2 -o P=get /dev/adx --
$ makefs -t hammer2 -o P=lookup:name /path/to/hammer2.img --
$ makefs -t hammer2 -o P=create:name /dev/adx --
$ makefs -t hammer2 -o P=delete:name /path/to/hammer2.img --
$ makefs -t hammer2 -o P=snapshot:name /dev/adx --
$ makefs -t hammer2 -o P=snapshot /path/to/hammer2.img --

The "-o P" option requires PFS command name argument, which are
"get" (alias "list"), "lookup", "create", "delete" and "snapshot".
lookup, create and delete take `:<pfs_name>` string after command name.
snapshot takes optional `:<pfs_name>` string after command name.

Use -m option (default "DATA") to specify target PFS for snapshot.

show more ...

48ed457709-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add HAMMER2 emergency mode support

The "-o E" option sets emergency mode flag.
This can be used in conjunction with other operations,
but there is no point in using this option for

usr.sbin/makefs: Add HAMMER2 emergency mode support

The "-o E" option sets emergency mode flag.
This can be used in conjunction with other operations,
but there is no point in using this option for regular usage.

show more ...

917508cd08-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add HAMMER2 offline destroy support

The offline destroy takes HAMMER2 specific "-o D" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argume

usr.sbin/makefs: Add HAMMER2 offline destroy support

The offline destroy takes HAMMER2 specific "-o D" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argument is unused, but needs to be a valid path or "--".

e.g.
$ makefs -t hammer2 -o D=/a.out /dev/adx --
$ makefs -t hammer2 -o D=1234 /path/to/hammer2.img --

The "-o D" option reuires file path or inode number argument.
- If it's a file path, optarg must start with '/'.
- If it's an inum, optarg must start with "0x" or '0'-'9'.
Note that destroy by inum seems broken not only in makefs, but also
in real HAMMER2 ioctl.

show more ...

3bbcb74308-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs/hammer2: Minor cleanup

afa5234b07-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Add HAMMER2 offline growfs support

The offline growfs takes HAMMER2 specific "-o G" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argument

usr.sbin/makefs: Add HAMMER2 offline growfs support

The offline growfs takes HAMMER2 specific "-o G" option.
`image-file` argument is a valid HAMMER2 image file or block device.
`directory` argument is unused, but needs to be a valid path or "--".

e.g.
$ makefs -t hammer2 -o G /dev/adx --
$ makefs -t hammer2 -o G /path/to/hammer2.img --

By default expands volume to image file or block device size.
If -s option is specified, use that size.
No shrink support in the same way hammer2(8) growfs doesn't.

show more ...

961db90e07-Jun-2023 Tomohiro Kusumi <tkusumi@netbsd.org>

usr.sbin/makefs: Sync with sys/vfs/hammer2

Sync with following sys/vfs/hammer2 commits.

$ git log --pretty="%h %s" 01a24a934a5d6fd384584e1d72f1f9dd25bb98d3.. -- sys/vfs/hammer2/
0f90a2c50b sys/vfs/

usr.sbin/makefs: Sync with sys/vfs/hammer2

Sync with following sys/vfs/hammer2 commits.

$ git log --pretty="%h %s" 01a24a934a5d6fd384584e1d72f1f9dd25bb98d3.. -- sys/vfs/hammer2/
0f90a2c50b sys/vfs/hammer2: Fail ioctl(HAMMER2IOC_GROWFS) if size > devvp size
a3364d7fa7 sys/vfs/hammer2: Change growfs kprintf format %jd -> %016jx for hammer2_off_t

show more ...

123