History log of /netbsd-current/usr.sbin/makefs/udf.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.31 28-Dec-2023 tsutsui

Use EXIT_SUCCESS and EXIT_FAILURE where appropriate per style guide.


Revision tags: netbsd-10-0-RC1 netbsd-10-base
# 1.30 07-May-2022 reinoud

When creating disc images, keep the proposed size a multiple of the blockingnr
for good measure; this prevents possible burning/copying issues on packet
media.


# 1.29 26-Apr-2022 reinoud

Avoid warning by clang of unused variable

While here, use the computated obj_size even though it's always the same as
its information length since we don't use extended attribute files or
stream directories.


# 1.28 26-Apr-2022 reinoud

Fix endian bug that resulted in UniqueIDs of 0 in file identifiers; note that
the the unique ID in a longad stored in a FID is 32 bit where in the file
descriptor (fe/efe) its 64 bits long.


# 1.27 26-Apr-2022 reinoud

No need to use ceilf() when ceil() is already used


# 1.26 26-Apr-2022 reinoud

Fix endian bug in makefs for udf


# 1.25 09-Apr-2022 riastradh

makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.


# 1.24 06-Apr-2022 wiz

makefs: fix some typos


# 1.23 06-Apr-2022 reinoud

Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.


# 1.22 21-Aug-2021 andvar

s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421
# 1.21 18-Apr-2020 martin

Remove unused variable (to fix the build)


# 1.20 18-Apr-2020 reinoud

Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.19 03-Feb-2019 mrg

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.18 08-Feb-2017 christos

branches: 1.18.12;
If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.17 16-Jun-2015 christos

branches: 1.17.2; 1.17.4;
improve error messages (remove \n, use __func__, etc)


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.16 19-Dec-2013 joerg

branches: 1.16.4; 1.16.8;
long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.


# 1.15 19-Dec-2013 christos

initialize dummy_ref


# 1.14 19-Oct-2013 christos

fix unused variable warnings.


# 1.13 14-Aug-2013 jmcneill

when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build


# 1.12 09-Aug-2013 reinoud

Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.


# 1.11 09-Aug-2013 reinoud

Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.


# 1.10 06-Aug-2013 reinoud

Switch back program version to the version of the newfs_udf/makefs code.

While here, visit the 80 columns police :)


# 1.9 06-Aug-2013 reinoud

Add minimum UDF version specification to makefs(8) -t udf.


# 1.8 06-Aug-2013 reinoud

Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.


# 1.7 06-Aug-2013 reinoud

Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.


# 1.6 06-Aug-2013 reinoud

Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.


# 1.5 06-Aug-2013 reinoud

Fix memory leaks found by Coverity and fix memoryleaks in the new code


# 1.4 05-Aug-2013 reinoud

Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.


# 1.3 05-Aug-2013 joerg

Allow building UDF parts of makefs on !NetBSD.


# 1.2 05-Aug-2013 reinoud

Make memset() usage consequent in using the right types


# 1.1 05-Aug-2013 reinoud

Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.


# 1.30 07-May-2022 reinoud

When creating disc images, keep the proposed size a multiple of the blockingnr
for good measure; this prevents possible burning/copying issues on packet
media.


# 1.29 26-Apr-2022 reinoud

Avoid warning by clang of unused variable

While here, use the computated obj_size even though it's always the same as
its information length since we don't use extended attribute files or
stream directories.


# 1.28 26-Apr-2022 reinoud

Fix endian bug that resulted in UniqueIDs of 0 in file identifiers; note that
the the unique ID in a longad stored in a FID is 32 bit where in the file
descriptor (fe/efe) its 64 bits long.


# 1.27 26-Apr-2022 reinoud

No need to use ceilf() when ceil() is already used


# 1.26 26-Apr-2022 reinoud

Fix endian bug in makefs for udf


# 1.25 09-Apr-2022 riastradh

makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.


# 1.24 06-Apr-2022 wiz

makefs: fix some typos


# 1.23 06-Apr-2022 reinoud

Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.


# 1.22 21-Aug-2021 andvar

s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421
# 1.21 18-Apr-2020 martin

Remove unused variable (to fix the build)


# 1.20 18-Apr-2020 reinoud

Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.19 03-Feb-2019 mrg

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.18 08-Feb-2017 christos

branches: 1.18.12;
If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.17 16-Jun-2015 christos

branches: 1.17.2; 1.17.4;
improve error messages (remove \n, use __func__, etc)


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.16 19-Dec-2013 joerg

branches: 1.16.4; 1.16.8;
long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.


# 1.15 19-Dec-2013 christos

initialize dummy_ref


# 1.14 19-Oct-2013 christos

fix unused variable warnings.


# 1.13 14-Aug-2013 jmcneill

when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build


# 1.12 09-Aug-2013 reinoud

Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.


# 1.11 09-Aug-2013 reinoud

Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.


# 1.10 06-Aug-2013 reinoud

Switch back program version to the version of the newfs_udf/makefs code.

While here, visit the 80 columns police :)


# 1.9 06-Aug-2013 reinoud

Add minimum UDF version specification to makefs(8) -t udf.


# 1.8 06-Aug-2013 reinoud

Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.


# 1.7 06-Aug-2013 reinoud

Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.


# 1.6 06-Aug-2013 reinoud

Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.


# 1.5 06-Aug-2013 reinoud

Fix memory leaks found by Coverity and fix memoryleaks in the new code


# 1.4 05-Aug-2013 reinoud

Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.


# 1.3 05-Aug-2013 joerg

Allow building UDF parts of makefs on !NetBSD.


# 1.2 05-Aug-2013 reinoud

Make memset() usage consequent in using the right types


# 1.1 05-Aug-2013 reinoud

Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.


# 1.29 26-Apr-2022 reinoud

Avoid warning by clang of unused variable

While here, use the computated obj_size even though it's always the same as
its information length since we don't use extended attribute files or
stream directories.


# 1.28 26-Apr-2022 reinoud

Fix endian bug that resulted in UniqueIDs of 0 in file identifiers; note that
the the unique ID in a longad stored in a FID is 32 bit where in the file
descriptor (fe/efe) its 64 bits long.


# 1.27 26-Apr-2022 reinoud

No need to use ceilf() when ceil() is already used


# 1.26 26-Apr-2022 reinoud

Fix endian bug in makefs for udf


# 1.25 09-Apr-2022 riastradh

makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.


# 1.24 06-Apr-2022 wiz

makefs: fix some typos


# 1.23 06-Apr-2022 reinoud

Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.


# 1.22 21-Aug-2021 andvar

s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421
# 1.21 18-Apr-2020 martin

Remove unused variable (to fix the build)


# 1.20 18-Apr-2020 reinoud

Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.19 03-Feb-2019 mrg

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.18 08-Feb-2017 christos

branches: 1.18.12;
If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.17 16-Jun-2015 christos

branches: 1.17.2; 1.17.4;
improve error messages (remove \n, use __func__, etc)


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.16 19-Dec-2013 joerg

branches: 1.16.4; 1.16.8;
long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.


# 1.15 19-Dec-2013 christos

initialize dummy_ref


# 1.14 19-Oct-2013 christos

fix unused variable warnings.


# 1.13 14-Aug-2013 jmcneill

when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build


# 1.12 09-Aug-2013 reinoud

Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.


# 1.11 09-Aug-2013 reinoud

Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.


# 1.10 06-Aug-2013 reinoud

Switch back program version to the version of the newfs_udf/makefs code.

While here, visit the 80 columns police :)


# 1.9 06-Aug-2013 reinoud

Add minimum UDF version specification to makefs(8) -t udf.


# 1.8 06-Aug-2013 reinoud

Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.


# 1.7 06-Aug-2013 reinoud

Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.


# 1.6 06-Aug-2013 reinoud

Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.


# 1.5 06-Aug-2013 reinoud

Fix memory leaks found by Coverity and fix memoryleaks in the new code


# 1.4 05-Aug-2013 reinoud

Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.


# 1.3 05-Aug-2013 joerg

Allow building UDF parts of makefs on !NetBSD.


# 1.2 05-Aug-2013 reinoud

Make memset() usage consequent in using the right types


# 1.1 05-Aug-2013 reinoud

Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.


# 1.25 09-Apr-2022 riastradh

makefs(8): Nix trailing whitespace.

Computed by machine, eyeballed by hand, so to speak.


# 1.24 06-Apr-2022 wiz

makefs: fix some typos


# 1.23 06-Apr-2022 reinoud

Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.


# 1.22 21-Aug-2021 andvar

s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421
# 1.21 18-Apr-2020 martin

Remove unused variable (to fix the build)


# 1.20 18-Apr-2020 reinoud

Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.19 03-Feb-2019 mrg

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.18 08-Feb-2017 christos

branches: 1.18.12;
If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.17 16-Jun-2015 christos

branches: 1.17.2; 1.17.4;
improve error messages (remove \n, use __func__, etc)


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.16 19-Dec-2013 joerg

branches: 1.16.4; 1.16.8;
long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.


# 1.15 19-Dec-2013 christos

initialize dummy_ref


# 1.14 19-Oct-2013 christos

fix unused variable warnings.


# 1.13 14-Aug-2013 jmcneill

when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build


# 1.12 09-Aug-2013 reinoud

Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.


# 1.11 09-Aug-2013 reinoud

Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.


# 1.10 06-Aug-2013 reinoud

Switch back program version to the version of the newfs_udf/makefs code.

While here, visit the 80 columns police :)


# 1.9 06-Aug-2013 reinoud

Add minimum UDF version specification to makefs(8) -t udf.


# 1.8 06-Aug-2013 reinoud

Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.


# 1.7 06-Aug-2013 reinoud

Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.


# 1.6 06-Aug-2013 reinoud

Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.


# 1.5 06-Aug-2013 reinoud

Fix memory leaks found by Coverity and fix memoryleaks in the new code


# 1.4 05-Aug-2013 reinoud

Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.


# 1.3 05-Aug-2013 joerg

Allow building UDF parts of makefs on !NetBSD.


# 1.2 05-Aug-2013 reinoud

Make memset() usage consequent in using the right types


# 1.1 05-Aug-2013 reinoud

Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.


# 1.24 06-Apr-2022 wiz

makefs: fix some typos


# 1.23 06-Apr-2022 reinoud

Refactor and rewrite of newfs_udf(8) and makefs(8) (-t udf) with a shared
section for fsck_udf(8).

Newfs_udf and makefs support predefined disc image profiles, harddisc
partitions (disklabel and wedges on all generic block devices) and all optical
media types on CD/DVD/BD writers.

Newfs_udf and makefs now also support formatting of UDF 2.50 with a metadata
partition.


# 1.22 21-Aug-2021 andvar

s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421
# 1.21 18-Apr-2020 martin

Remove unused variable (to fix the build)


# 1.20 18-Apr-2020 reinoud

Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.19 03-Feb-2019 mrg

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.18 08-Feb-2017 christos

branches: 1.18.12;
If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.17 16-Jun-2015 christos

branches: 1.17.2; 1.17.4;
improve error messages (remove \n, use __func__, etc)


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.16 19-Dec-2013 joerg

branches: 1.16.4; 1.16.8;
long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.


# 1.15 19-Dec-2013 christos

initialize dummy_ref


# 1.14 19-Oct-2013 christos

fix unused variable warnings.


# 1.13 14-Aug-2013 jmcneill

when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build


# 1.12 09-Aug-2013 reinoud

Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.


# 1.11 09-Aug-2013 reinoud

Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.


# 1.10 06-Aug-2013 reinoud

Switch back program version to the version of the newfs_udf/makefs code.

While here, visit the 80 columns police :)


# 1.9 06-Aug-2013 reinoud

Add minimum UDF version specification to makefs(8) -t udf.


# 1.8 06-Aug-2013 reinoud

Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.


# 1.7 06-Aug-2013 reinoud

Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.


# 1.6 06-Aug-2013 reinoud

Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.


# 1.5 06-Aug-2013 reinoud

Fix memory leaks found by Coverity and fix memoryleaks in the new code


# 1.4 05-Aug-2013 reinoud

Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.


# 1.3 05-Aug-2013 joerg

Allow building UDF parts of makefs on !NetBSD.


# 1.2 05-Aug-2013 reinoud

Make memset() usage consequent in using the right types


# 1.1 05-Aug-2013 reinoud

Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.


# 1.22 21-Aug-2021 andvar

s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421
# 1.21 18-Apr-2020 martin

Remove unused variable (to fix the build)


# 1.20 18-Apr-2020 reinoud

Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.


Revision tags: netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.19 03-Feb-2019 mrg

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.18 08-Feb-2017 christos

branches: 1.18.12;
If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.17 16-Jun-2015 christos

branches: 1.17.2; 1.17.4;
improve error messages (remove \n, use __func__, etc)


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.16 19-Dec-2013 joerg

branches: 1.16.4; 1.16.8;
long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.


# 1.15 19-Dec-2013 christos

initialize dummy_ref


# 1.14 19-Oct-2013 christos

fix unused variable warnings.


# 1.13 14-Aug-2013 jmcneill

when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build


# 1.12 09-Aug-2013 reinoud

Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.


# 1.11 09-Aug-2013 reinoud

Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.


# 1.10 06-Aug-2013 reinoud

Switch back program version to the version of the newfs_udf/makefs code.

While here, visit the 80 columns police :)


# 1.9 06-Aug-2013 reinoud

Add minimum UDF version specification to makefs(8) -t udf.


# 1.8 06-Aug-2013 reinoud

Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.


# 1.7 06-Aug-2013 reinoud

Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.


# 1.6 06-Aug-2013 reinoud

Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.


# 1.5 06-Aug-2013 reinoud

Fix memory leaks found by Coverity and fix memoryleaks in the new code


# 1.4 05-Aug-2013 reinoud

Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.


# 1.3 05-Aug-2013 joerg

Allow building UDF parts of makefs on !NetBSD.


# 1.2 05-Aug-2013 reinoud

Make memset() usage consequent in using the right types


# 1.1 05-Aug-2013 reinoud

Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.


# 1.21 18-Apr-2020 martin

Remove unused variable (to fix the build)


# 1.20 18-Apr-2020 reinoud

Believe the datablocks predictor when determining if data on a node gets
stored internal or not. Also make a note that the datablocks predictor takes
NO extended attributes stored in the node into account

In rare cases it could lead to confusion where the predictor would say it
wouldn't fit internally when it could just have fitted. This would trigger the
assertion. Now it will on rare accasions create a datablock even though it
might have fitted.


Revision tags: phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
# 1.19 03-Feb-2019 mrg

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
this case, and thus can't be marked __dead easily


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.18 08-Feb-2017 christos

branches: 1.18.12;
If we are using a timestamp from the command line, don't pay attention to
the user timezone, use UTC instead (for reproducible builds).


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.17 16-Jun-2015 christos

branches: 1.17.2; 1.17.4;
improve error messages (remove \n, use __func__, etc)


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.16 19-Dec-2013 joerg

branches: 1.16.4; 1.16.8;
long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.


# 1.15 19-Dec-2013 christos

initialize dummy_ref


# 1.14 19-Oct-2013 christos

fix unused variable warnings.


# 1.13 14-Aug-2013 jmcneill

when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build


# 1.12 09-Aug-2013 reinoud

Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.


# 1.11 09-Aug-2013 reinoud

Oops, used size_t when off_t was meant. This results in the 4G file size
modulation seen on 32 bit machines due to size_t being 32 bit there.

While here, also fix compilation errors he@ discovered while compiling on
NetBSD/vax.


# 1.10 06-Aug-2013 reinoud

Switch back program version to the version of the newfs_udf/makefs code.

While here, visit the 80 columns police :)


# 1.9 06-Aug-2013 reinoud

Add minimum UDF version specification to makefs(8) -t udf.


# 1.8 06-Aug-2013 reinoud

Allow for the logical volume label to be specified as well as the physical
volume label. Also allow the volumeset name to be specified if desired. The
syntax follows the newfs_udf(8) syntax.


# 1.7 06-Aug-2013 reinoud

Implement auto-setting of sector size and disc size when specifying
-oT=<devtype> to one of the supported disk types.

While here, also fix where the -s size argument would be overriden by the
calculated size.


# 1.6 06-Aug-2013 reinoud

Fix assert() on allocation type by masking it with the flag allocation bit
mask. Fixes internal allocation writing in nodes with suid/sgid/sticky
accessnode.


# 1.5 06-Aug-2013 reinoud

Fix memory leaks found by Coverity and fix memoryleaks in the new code


# 1.4 05-Aug-2013 reinoud

Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.


# 1.3 05-Aug-2013 joerg

Allow building UDF parts of makefs on !NetBSD.


# 1.2 05-Aug-2013 reinoud

Make memset() usage consequent in using the right types


# 1.1 05-Aug-2013 reinoud

Implement `makefs -t udf'.

Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.