Commit Graph

288 Commits

Author SHA1 Message Date
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
christos e4989541fe - use emalloc and friends
- kill a bunch of global variables, more work to be done here
- homogenize option parsing. more work for cd9660
- use the new options parsing code to print an fs-specific usage
2013-01-28 21:03:26 +00:00
mlelstv 3b0450ca73 Do not use *bp after freeing it in brelse. 2013-01-28 10:16:35 +00:00
christos 863ded0e2b now that msdos works, document it. 2013-01-28 00:23:18 +00:00
christos 0a54bc86e7 use pcbmap instead of the open coded hack now the pcbmap works. 2013-01-28 00:16:48 +00:00
christos 0e23c760cc don't forget to initialize the cache. 2013-01-28 00:16:24 +00:00
christos a61457fac4 fix recursion error handling. top level directory works. 2013-01-27 22:53:03 +00:00
christos 330e688f74 fix root detection (although the code is a noop) 2013-01-27 22:52:38 +00:00
christos 5f60de37ca - don't forget to set de_pmp
- unexpand inserted tabs to the "." and ".." strings!
2013-01-27 22:52:19 +00:00
christos 180d451863 undo c99 2013-01-27 22:09:24 +00:00
christos 1df38ec62e - some more debugging
- use msdosfs_update() -- should not be needed.
- remove <sys/mount.h>
2013-01-27 22:07:19 +00:00
christos e502c2ffd0 This works well enough to populate plain files in the root dir. creating
directories fails.
2013-01-27 20:05:46 +00:00
christos 14d475a7bf the max msdos file size is less than size_t so don't bother checking against it. 2013-01-27 16:03:15 +00:00