Commit Graph

300 Commits

Author SHA1 Message Date
maxv
ca657fc91e What a terrible use-after-free 2014-07-09 06:04:16 +00:00
martin
4bc697a5ef PR kern/48852 (which should have been bin/ in retrospect): apply patch
from Thomas Schmitt to fix rockridge encoding of device nodes.
2014-05-30 13:14:47 +00:00
joerg
0850b0cc3c long_ad is a mix of struct and union, so use memset to initialise in the
one place it is used.
2013-12-19 23:00:50 +00:00
christos
1985c705e9 initialize dummy_ref 2013-12-19 22:10:03 +00:00
apb
3d4c34e695 Now that tools/compat/compat_defs.h defones __USE, there's no
need to treat the tools build as a special case.
2013-10-24 14:01:01 +00:00
mrg
e392147a46 avoid using __USE() in the tools version of this. 2013-10-19 20:49:22 +00:00
christos
0a77b69ab6 fix unused variable warnings. 2013-10-19 17:16:37 +00:00
jmcneill
36f0ae602b when building as a tool, only use struct tm tm_gmtoff if HAVE_STRUCT_TM_TM_GMTOFF is defined -- fixes cygwin build 2013-08-14 10:16:04 +00:00
reinoud
857cc1af09 Fix possible 32 bit issues. In practice hard to reach but better be safe than
sorry.
2013-08-09 15:11:08 +00:00
reinoud
a5f25cf5c7 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.
2013-08-09 11:29:44 +00:00
wiz
8e20e62ba9 New sentence, new line.
Use one list instead of two consecutive ones.
Add .El to end list.
2013-08-06 20:16:54 +00:00
reinoud
254934d244 Switch back program version to the version of the newfs_udf/makefs code.
While here, visit the 80 columns police :)
2013-08-06 13:15:30 +00:00
reinoud
c55e926ff1 Add minimum UDF version specification to makefs(8) -t udf. 2013-08-06 12:47:21 +00:00
reinoud
a1f170f537 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.
2013-08-06 12:19:34 +00:00
wiz
3e9c1afce6 New sentence, new line. 2013-08-06 12:12:51 +00:00
reinoud
19751c1514 Update makefs(8) man page to reflect the selection of default sector and disc
sizes based on the disc type.
2013-08-06 09:43:41 +00:00
reinoud
f7be5947bb 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.
2013-08-06 09:32:23 +00:00
reinoud
ef2095d848 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.
2013-08-06 08:24:56 +00:00
reinoud
3551bde30d Fix memory leaks found by Coverity and fix memoryleaks in the new code 2013-08-06 08:18:08 +00:00
reinoud
c27eed8f4f Note that i added the UDF support to makefs(8) and bump data 2013-08-05 18:49:58 +00:00
reinoud
8f48418536 Cleanup makefile for makefs 2013-08-05 18:45:00 +00:00
reinoud
2b17bd9a06 Revert joergs patch and make it compile in both the normal as in the tools
environment by providing the MMC datastructures separately for compat.
2013-08-05 18:44:16 +00:00
joerg
9656a3f6dc Allow building UDF parts of makefs on !NetBSD. 2013-08-05 17:12:04 +00:00
reinoud
62e9bc7cdb Make memset() usage consequent in using the right types 2013-08-05 16:43:46 +00:00
wiz
c93932c41e Sort. Improve table formatting. 2013-08-05 14:50:32 +00:00
reinoud
e2036ad8da Implement `makefs -t udf'.
Formatting options may be enhanced to make it more in line with newfs_udf on
say labeling.
2013-08-05 14:41:57 +00:00
reinoud
7da88b2514 `makefs -t cd9660' fix from FreeBSD:
Submitted by:   Thomas Schmitt via marius@freebsd.org
Obtained from:  FreeBSD r253707

- Correctly set the Expiration Time in the Primary Volume Descriptor;
  according to ISO 9660 8.4.26.1 unspecified date and time are denoted by the
  digit 0 in RBP 1 to 16 but the number 0 in RBP 17.

- Rock Ridge TF entries should use a length of 5, because after the 4 bytes of
  generic SUSP header there is one byte of flags. See typedef of ISO_RRIP_TF
  in iso9660_rrip.h.
2013-07-30 16:02:23 +00:00
dholland
75571afd93 Stick ffs_ in front of the following macros:
fragstoblks()
   blkstofrags()
   fragnum()
   blknum()

to finish the job of distinguishing them from the lfs versions, which
Christos renamed the other day.

I believe this is the last of the overtly ambiguous exported symbols
from ffs... or at least, the last of the ones that conflicted with lfs.
ffs still pollutes the C namespace very broadly (as does ufs) and this
needs quite a bit more cleanup.

XXX: boo on macros with lowercase names. But I'm not tackling that just yet.
2013-06-23 22:03:34 +00:00
dholland
e1610ba4cb Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of
the following symbols so as to disambiguate fully. (Christos already
did the lfs ones.)

   lblkno
   lblktosize
   lfragtosize
   numfrags
   blkroundup
   fragroundup
2013-06-23 07:28:36 +00:00
dholland
2737439da3 fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)
2013-06-23 02:06:04 +00:00
dholland
f1333577b5 Rename ambiguous macros:
MAXDIRSIZE -> UFS_MAXDIRSIZE or LFS_MAXDIRSIZE
   NINDIR -> FFS_NINDIR, EXT2_NINDIR, LFS_NINDIR, or MFS_NINDIR
   INOPB -> FFS_INOPB, LFS_INOPB
   INOPF -> FFS_INOPF, LFS_INOPF
   blksize -> ffs_blksize, ext2_blksize, or lfs_blksize
   sblksize -> ffs_blksize

These are not the only ambiguously defined filesystem macros, of
course, there's a pile more. I may not have found all the ambiguous
definitions of blksize(), too, as there are a lot of other things
called 'blksize' in the system.
2013-06-19 17:51:25 +00:00
dholland
5a420c1b9a Stick UFS_ in front of these symbols:
DIRBLKSIZ
   DIRECTSIZ
   DIRSIZ
   OLDDIRFMT
   NEWDIRFMT

Part of PR 47909.
2013-06-09 17:57:08 +00:00
christos
c06c93b2d6 add a replace flag so we can overlay exiting files when we merge directories. 2013-02-03 06:16:53 +00:00
christos
c5e9014781 - more changes to make -O work
- fix err* calls.
2013-02-03 03:21:21 +00:00
christos
2d692a9557 add and document offset. 2013-02-02 20:42:02 +00:00
christos
a1bd32a9dc remove bogus err. 2013-02-01 14:02:17 +00:00
christos
7a9c8c6550 while it is studly to play with token pasting, passing directly the type
is a lot more readable.
2013-02-01 14:00:33 +00:00
christos
3cfc43473d macroize to make it more type-safe. 2013-01-31 15:15:15 +00:00
christos
2431e0788b the allow options are 8 bits wide. 2013-01-31 14:56:32 +00:00
christos
d84c38ae4e - don't abuse vp->fs to mean struct fs for ffs and struct msdos_opts;
make it always fsinfo_t and change void * to that.
- kill unused structure members.
2013-01-30 19:19:19 +00:00
christos
0ea6b66554 gc global sectorsize. 2013-01-30 17:29:25 +00:00
christos
78e97492c8 buf is generic; it has nothing to do with ffs and will eventually be moved.
gc sectorize.
2013-01-30 17:29:05 +00:00
christos
9eb809c6b4 use "val" not "var" 2013-01-30 02:53:54 +00:00
christos
8459845f55 add missing arguments. 2013-01-29 21:54:19 +00:00
christos
aed9f95c54 workaround for gcc/vax 2013-01-29 19:45:47 +00:00
christos
50d02345aa make everything use the generic options parser. 2013-01-29 15:52:25 +00:00
christos
36e6483010 Allow options without values meaning the empty string for string options
and = 1 to numerics.
2013-01-29 14:09:48 +00:00
christos
4f6a0577d9 mention me 2013-01-29 01:52:04 +00:00
christos
2246e723d1 deal with options that don't have a single letter argument. 2013-01-29 01:06:15 +00:00
christos
fa62ba2145 handle some of the options by the generic parser. 2013-01-29 01:05:57 +00:00