Commit Graph

48 Commits

Author SHA1 Message Date
christos f421508b22 PR/58202: Malte Dehling: Don't link libzfs 2024-04-26 18:21:25 +00:00
andvar d30e897588 s/dependancies/dependencies/ and s/independantly/independently/ in comments and
distrib notes.
2024-02-05 21:39:51 +00:00
lukem a9a927dd92 adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
which works for both clang and gcc, and remove compiler-specific
equivalents.
2023-06-03 21:26:27 +00:00
lukem f937c412f3 bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER
Provide a single variable
	CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
	CLANG_NO_ADDR_OF_PACKED_MEMBER
	CC_NO_ADDR_OF_PACKED_MEMBER
	GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
2023-06-03 08:52:53 +00:00
andvar e8fa8ba427 fix word endings toin -> tion in comments. 2023-05-27 21:38:06 +00:00
andvar 96dad784b6 fix few typos in comments. 2023-01-31 21:11:24 +00:00
chs 87ba0e2a31 Restore backward compatibility of UFS2 with previous NetBSD releases by
disabling support in UFS2 for extended attributes (including ACLs).
Add a new variant of UFS2 called "UFS2ea" that does support extended attributes.
Add new	fsck_ffs operations "-c	ea" and	"-c no-ea" to convert file systems
from UFS2 to UFS2ea and	vice-versa (both of which delete all existing extended
attributes in the process).
2022-11-17 06:40:38 +00:00
andvar e82c4d9bb4 fix various typos, mainly in comments. 2022-04-04 19:33:44 +00:00
msaitoh 264979d70a s/rather then/rather than/ in comment. 2021-12-05 07:25:11 +00:00
msaitoh b5ffb2e0d6 s/filesytem/filesystem/ in comment. 2021-12-05 04:47:17 +00:00
christos 3d96da2095 PR/56530: RVP: use ioctl to get the partition size if possible (avoids SEGV) 2021-12-02 14:26:42 +00:00
christos 638ed4d6a7 PR/56530: RVP: fix iconv open error. 2021-12-02 14:26:12 +00:00
christos ce58ffd338 remove lint hacks now that lint supports _Static_assert 2021-09-17 21:06:35 +00:00
christos 707cb24578 XXX: Teach lint about _Static_assert... 2021-09-17 14:49:03 +00:00
christos 76d4fad60d Use CPPFLAGS for -D and -I so that lint works. 2021-09-17 14:48:31 +00:00
joerg faee973249 Ignore address of packed-member for clang too 2021-02-02 21:31:11 +00:00
tkusumi ed5947a0ff fstyp: Fix exfat detection
taken-from FreeBSD ddf61156132b610915325769cbb93ea11be0d433
2021-01-24 14:37:32 +00:00
martin 6903ba0384 Explicitly cast offset calculation, size_t may be smaller than off_t. 2021-01-10 13:44:57 +00:00
tkusumi f8ac354381 fstyp: Sync HAMMER1/2 with DragonFly BSD
taken-from: DragonFly BSD
2021-01-10 12:38:40 +00:00
tkusumi 00cd46e047 fstyp: Sync hammer2_disk.h with DragonFly BSD
taken-from: DragonFly BSD
2020-09-23 14:39:23 +00:00
mrg cb93b81028 add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
tkusumi ae112b0a4f fstyp: Fix incorrect pfs_type test for HAMMER2 inode
taken-from: DragonFly BSD
2020-08-14 18:35:57 +00:00
fox 5f234ad7f3 usr.sbin/fstyp: Fix -Werror=conversion error.
Type cast the size_t to uint32_t to prevent implicit type conversion errors.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-08 12:56:56 +00:00
tkusumi 5425c6e737 fstyp: Remove redundant best_i check in HAMMER2
https://reviews.freebsd.org/D23159
taken-from: DragonFlyBSD originally from FreeBSD
2020-01-15 15:32:05 +00:00
tkusumi 081dcb4e9f fstyp: Use strlcpy(3) for HAMMER1
https://reviews.freebsd.org/D23159
taken-from: DragonFlyBSD originally from FreeBSD
2020-01-15 15:30:46 +00:00
tkusumi 2564971ebf fstyp: Cleanup hammer2.c (sync with recent DragonFly commit)
taken-from DragonFlyBSD 841ef9e93aea61adab688e9476604e7a03291ef0
2020-01-04 03:43:18 +00:00
tkusumi 0adf7fda76 fstyp: Cleanup hammer.c (sync with recent DragonFly commit)
taken-from DragonFlyBSD 8ca6d8ec5f97032765692d368db80159c97adea0
2020-01-03 08:19:14 +00:00
mlelstv 654fb5e866 Recognize wedges and device mapper volumes as "disk". 2020-01-03 07:50:58 +00:00
tkusumi 143e65cce8 fstyp: Fix "exfat: iconv_open UCS-2LE: Invalid argument" failure
Fix below error for the time being.
The removed code is only relevant to Capsicum.

$ fstyp -l /dev/wd1
fstyp: exfat: iconv_open UCS-2LE: Invalid argument
2020-01-02 08:52:42 +00:00
wiz 627a9b5419 Try fixing a sentence. 2020-01-01 20:11:44 +00:00
tkusumi 0f41a17b1c fstyp: Consider '@' syntax in device file path for HAMMER2
though devpath is unsupported in NetBSD atm.
taken-from: DragonFlyBSD
2020-01-01 12:47:19 +00:00
tkusumi cfa93e9fb4 fstyp: Fix build failure on i386
http://releng.netbsd.org/b5reports/i386/commits-2020.01.html#2020.01.01.10.13.16
Explicitly cast to size_t.
2020-01-01 11:46:43 +00:00
tkusumi 442ef904f9 fstyp: Add HAMMER1 multi-volume support (missed in "fstyp: Add HAMMER1/2 support")
taken-from: DragonFlyBSD
2020-01-01 09:17:27 +00:00
tkusumi dcc92ff930 fstyp: Cleanup and minor sync up with FreeBSD/DragonFlyBSD 2020-01-01 09:08:52 +00:00
tkusumi ff998df0a2 fstyp: Add HAMMER1/2 support
FreeBSD has recently imported HAMMER1/2 support from DragonFlyBSD,
so why not in NetBSD as well.

taken-from: DragonFlyBSD
2020-01-01 08:56:41 +00:00
tkusumi bdaaf6392d fstyp: Use iconv(3) to convert NTFS vol labels correctly
taken-from: FreeBSD (freebsd/freebsd@23a4b310ff)
2019-12-28 08:22:30 +00:00
tkusumi 0cd59d67d5 fstyp: Show exFAT volume labels with -l flag
taken-from: FreeBSD (freebsd/freebsd@73773fcda9)
2019-12-28 08:00:08 +00:00
tkusumi a4a6d53262 fstyp: Add APFS support
taken-from: FreeBSD (freebsd/freebsd@171bb54729)
2019-12-27 11:15:06 +00:00
tkusumi c952179f84 fstyp: Add HFS+ support
taken-from: FreeBSD (freebsd/freebsd@b4d7ad9f78)
2019-12-27 11:06:23 +00:00
tkusumi b94e44675e autofs: Change my email address in man pages to netbsd.org 2019-11-21 15:24:17 +00:00
tkusumi 7575c8cff5 fstyp: Add exFAT support
Taken-from: FreeBSD and DragonFlyBSD
2019-11-18 14:53:34 +00:00
hannken f3f87b32db Sync with upstream r315983.
Move files originating from upstream below "dist/":

  OPENSOLARIS.LICENSE -> dist/OPENSOLARIS.LICENSE
  usr.sbin/zdb/zdb.8 -> dist/cmd/zdb/zdb.8
  sbin/zfs/zfs.8 -> dist/cmd/zfs/zfs.8
  sbin/zpool/zpool-features.7 -> dist/cmd/zpool/zpool-features.7
  sbin/zpool/zpool.8 -> dist/cmd/zpool/zpool.8
  include/libintl.h -> dist/head/libintl.h
  include/stdio_ext.h -> dist/head/stdio_ext.h
  include/thread.h -> dist/head/thread.h
  sys/kern/callb.c -> dist/uts/common/os/callb.c
  sys/kern/fm.c -> dist/uts/common/os/fm.c
  sys/sys/extdirent.h -> dist/uts/common/sys/extdirent.h
  sys/sys/isa_defs.h -> dist/uts/common/sys/isa_defs.h
  sys/sys/procset.h -> dist/uts/common/sys/procset.h
  sys/sys/sysmacros.h -> dist/uts/common/sys/sysmacros.h

Adapt "usr.sbin/fstyp/Makefile".
2019-06-24 08:27:19 +00:00
hannken 1a12b22735 Sync with upstream r315983.
FreeBSD splits "zfs_context.h" into:
  "lib/libzpool/common/sys/zfs_context.h" for user space
  "uts/common/fs/zfs/sys/zfs_context.h" for kernel space

Do the same here, move and sync "sys/sys/zfs_context.h" to
"dist/lib/libzpool/common/sys/zfs_context.h" and
"dist/uts/common/fs/zfs/sys/zfs_context.h".

Change "Makefile.zfs" to search includes from "dist/lib"
before "dist/uts" so we get the right include file.

Adapt "usr.sbin/fstyp/Makefile" to get the right include file.
2019-06-22 09:48:39 +00:00
chs ba2539a980 merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().
2018-05-28 21:04:59 +00:00
joerg be61e1101a Ignore pragma warnings with clang for the zfs code. 2018-01-22 01:34:42 +00:00
martin 1e774d3bb5 Use fseeko instead of fseek to fix the build on some 32bit architectures 2018-01-09 10:47:57 +00:00
wiz f24dbfeb68 File system police. Add RCS Id. Improve SYNOPSIS. Use more markup. 2018-01-09 09:41:29 +00:00
christos b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00