The NetBSD Project

CVS log for src/sbin/newfs_udf/newfs_udf.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / newfs_udf

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 9 09:58:11 2022 UTC (2 years ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.23: +4 -5 lines
Diff to previous 1.23 (colored) to selected 1.15 (colored)

newfs_udf(8): Nix trailing whitespace.

No functional change intended.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 6 13:29:15 2022 UTC (2 years ago) by reinoud
Branch: MAIN
Changes since 1.22: +67 -640 lines
Diff to previous 1.22 (colored) to selected 1.15 (colored)

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.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 19 10:34:07 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.15 (colored)

fix various typos in comments, messages and documentation.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Aug 20 20:25:26 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) to selected 1.15 (colored)

fix various typos in comments and log messages.

Revision 1.19.16.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:20 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored) to selected 1.15 (colored)

Merge changes from current as of 20200406

Revision 1.20 / (download) - annotate - [select for diffs], Sun Apr 5 15:25:40 2020 UTC (4 years ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored) to selected 1.15 (colored)

Fix depenency on common symbols in sbin.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 9 19:48:24 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.18: +6 -4 lines
Diff to previous 1.18 (colored) to selected 1.15 (colored)

PR/50920: David Binderman: fix leak

Revision 1.12.10.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:27 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.12: +149 -875 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.15 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.12.4.1 / (download) - annotate - [select for diffs], Thu May 22 11:37:31 2014 UTC (9 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.12: +149 -875 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.15 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.18 / (download) - annotate - [select for diffs], Fri Aug 9 15:11:08 2013 UTC (10 years, 8 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored) to selected 1.15 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 6 13:15:30 2013 UTC (10 years, 8 months ago) by reinoud
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored) to selected 1.15 (colored)

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

While here, visit the 80 columns police :)

Revision 1.16 / (download) - annotate - [select for diffs], Tue Aug 6 12:49:13 2013 UTC (10 years, 8 months ago) by reinoud
Branch: MAIN
Changes since 1.15: +1 -56 lines
Diff to previous 1.15 (colored)

Oops, forgot to export a_udf_version() that checks if the input string is a
valid UDF version notation.

Revision 1.15 / (download) - annotate - [selected], Mon Aug 5 14:11:30 2013 UTC (10 years, 8 months ago) by reinoud
Branch: MAIN
Changes since 1.14: +17 -7 lines
Diff to previous 1.14 (colored)

Adjust newfs_udf to be sharing code with the new `makefs -t udf' to be
comitted.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Tue Jul 23 21:07:31 2013 UTC (10 years, 8 months ago) by riastradh
Branch: riastradh-drm2
Changes since 1.13: +32 -783 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.15 (colored)

sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 18 12:44:21 2013 UTC (10 years, 9 months ago) by reinoud
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1
Changes since 1.13: +32 -783 lines
Diff to previous 1.13 (colored) to selected 1.15 (colored)

Initial split up for making newfs_udf(8) routines suitable for makefs_udf(8)

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 2 14:59:01 2013 UTC (10 years, 9 months ago) by reinoud
Branch: MAIN
CVS Tags: riastradh-drm2-base
Branch point for: riastradh-drm2
Changes since 1.12: +102 -32 lines
Diff to previous 1.12 (colored) to selected 1.15 (colored)

Update newfs_udf to allow for creating file images with -F and specifying
sector sizes with -S.

For this i had to recycle the -S parameter but its preserved as an extension
to the -P parameter. These parameters are hardly ever use though since using
either or both the origional -S and the -P parameter without specific values
would break the standard. Also the -F now has a double meaning.

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 26 07:59:08 2011 UTC (12 years, 10 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.15 (colored)

Fix accidental use of logical && instead of binary & in rare case.

Bug noticed by Joerg and clang :)

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:06 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.9: +5 -4 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.15 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 21 22:32:13 2011 UTC (13 years, 3 months ago) by reinoud
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored) to selected 1.15 (colored)

When requesting to disable metadata partitions, also disable low formatting.
When no meta and not low formatting we can lower the required UDF version.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 21 22:10:51 2011 UTC (13 years, 3 months ago) by reinoud
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.15 (colored)

Fix typo in comment

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 4 23:42:48 2011 UTC (13 years, 3 months ago) by wiz
Branch: MAIN
Branch point for: bouyer-quota2
Changes since 1.8: +26 -9 lines
Diff to previous 1.8 (colored) to selected 1.15 (colored)

Fix memory leaks. Found by cppcheck.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 17 10:37:28 2009 UTC (14 years, 7 months ago) by reinoud
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.15 (colored)

Update TODO message; we can format with meta data partitions, only not yet for
BD-R, i.e. UDF 2.60.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Wed Feb 18 00:37:00 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.5.4.1: +2 -2 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.15 (colored)

Pull up following revision(s) (requested by reinoud in ticket #444):
	sbin/newfs_udf/newfs_udf.8: revision 1.5
	sbin/newfs_udf/newfs_udf.c: revision 1.7
	sbin/newfs_udf/udf_create.c: revision 1.14
Use KiB MiB GiB instead of Kb Mb Gb

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Wed Feb 18 00:34:51 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
Changes since 1.5: +6 -7 lines
Diff to previous 1.5 (colored) to selected 1.15 (colored)

Pull up following revision(s) (requested by reinoud in ticket #444):
	sbin/newfs_udf/newfs_udf.c: revision 1.6
	sbin/newfs_udf/udf_create.c: revision 1.13
	sbin/newfs_udf/udf_create.h: revision 1.3
* Fix -Wsign-compare issues.
* Add some XXXs noting where we might want to check for 16bit overflow.
* Use uintNN_t instead of int if the values is read from or written to
  using udf_rwNN().

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 18 00:21:09 2009 UTC (15 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.15 (colored)

Use KiB MiB GiB instead of Kb Mb Gb

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 18 00:18:41 2009 UTC (15 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.5: +6 -7 lines
Diff to previous 1.5 (colored) to selected 1.15 (colored)

* Fix -Wsign-compare issues.
* Add some XXXs noting where we might want to check for 16bit overflow.
* Use uintNN_t instead of int if the values is read from or written to
  using udf_rwNN().

Revision 1.1.4.4 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:14 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1.4.3: +94 -21 lines
Diff to previous 1.1.4.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.15 (colored)

Sync with HEAD.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Wed Sep 17 04:43:59 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.5.2.1: +1605 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.15 (colored)

Sync with wrstuden-revivesa-base-2. Pull in things that are new,
and pull in some things that were missed in the last sync.

Revision 1.5.2.1, Tue Aug 5 20:57:45 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.5: +0 -1605 lines
FILE REMOVED

file newfs_udf.c was added on branch wrstuden-revivesa on 2008-09-17 04:43:59 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Tue Aug 5 20:57:45 2008 UTC (15 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2
Branch point for: wrstuden-revivesa, netbsd-5
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored) to selected 1.15 (colored)

Refactor mount utilities to provide a mount_fs_parseargs() routine.
Use this routine both in mount_fs and rump_fs to provide equivalent
command line parameters and therefore usage interchangeability.
While doing this, combine some common mountgoop to mountprog.h

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jul 26 20:20:56 2008 UTC (15 years, 8 months ago) by reinoud
Branch: MAIN
Changes since 1.3: +93 -21 lines
Diff to previous 1.3 (colored) to selected 1.15 (colored)

Add UDF 2.50 metadata partition creation to newfs_udf(8). It allows a
percentage to the volume space to be pre-allocated for metadata on format.
Implementations that can't extent the metadata partitions can thus use the
discs too.

Note that the kernel UDF code can't write to UDF 2.50 metadata partitions
yet; this is a work-in-progress.

Also note that the default formatting version choice is still version 2.01
i.e. without the metadata partition.

Revision 1.1.4.3 / (download) - annotate - [select for diffs], Sun Jun 29 08:41:57 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1.4.2: +80 -4 lines
Diff to previous 1.1.4.2 (colored) to branchpoint 1.1 (colored) to selected 1.15 (colored)

Sync with HEAD.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jun 19 13:20:09 2008 UTC (15 years, 10 months ago) by reinoud
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.2: +60 -3 lines
Diff to previous 1.2 (colored) to selected 1.15 (colored)

Allow UDF versions to be both specified as a hex value and as a float
value. Its now possible to specify version 2.50 as "2.50" or "0x250".

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 19 12:23:01 2008 UTC (15 years, 10 months ago) by reinoud
Branch: MAIN
Changes since 1.1: +22 -3 lines
Diff to previous 1.1 (colored) to selected 1.15 (colored)

If the written out descriptor contains a file descriptor or an extended
file descriptor, update the location of the extended attribute space if
present.

Revision 1.1.4.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:23 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1.4.1: +1456 -0 lines
Diff to previous 1.1.4.1 (colored) to branchpoint 1.1 (colored) to selected 1.15 (colored)

Sync with HEAD.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun May 18 12:30:54 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.1.2.1: +1456 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.15 (colored)

sync with head.

Revision 1.1.4.1, Wed May 14 16:49:48 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1: +0 -1456 lines
FILE REMOVED

file newfs_udf.c was added on branch mjf-devfs2 on 2008-06-02 13:21:23 +0000

Revision 1.1.2.1, Wed May 14 16:49:48 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.1: +0 -1456 lines
FILE REMOVED

file newfs_udf.c was added on branch yamt-pf42 on 2008-05-18 12:30:54 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 14 16:49:48 2008 UTC (15 years, 11 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, mjf-devfs2
Diff to selected 1.15 (colored)

Import writing part of the UDF file system making optical media like CD's
and DVD's behave like floppy discs. Writing is supported upto and including
version 2.01; version 2.50 and 2.60 will follow.

Also extending the UDF implementation to support symbolic links and
hardlinks.

Added are the mmcformat(8) tool to format rewritable CD/DVD discs and
newfs_udf(8).

Limitations:
        all operations can be performed on the file system though the
        sheduling is currently optimised for archiving workloads.

        mv(1)/rename(2) is currently only implemented for non-directories.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>