wiz
9f55e7c8e5
Sort sections. New sentence, new line. Fix macro.
2013-07-02 20:53:10 +00:00
reinoud
c7950296a0
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.
2013-07-02 14:59:01 +00:00
christos
b8a7bdb609
move proto to small
2013-07-02 01:39:17 +00:00
christos
958c0aac6e
Instead of borrowing the mount code to get the nfs arguments, just use
...
the system call directly. It is shorter and works...
2013-07-01 15:16:33 +00:00
christos
3a4a09ca06
one copy of the name is enough, and free it.
2013-06-29 23:06:29 +00:00
christos
18c826e11c
declare the variables that getnfsargs need in getnfsargs so that they can
...
easily be used from other programs.
2013-06-29 22:56:26 +00:00
christos
da960e0858
Use the protocol we mounted the filesystem with instead of always udp.
...
(untested, but should fail back to udp).
2013-06-29 22:53:04 +00:00
reinoud
052045ad4c
Small rewording of the examples section.
2013-06-29 20:41:47 +00:00
riz
78ae231e57
Display the load address of modules. PR bin/47951.
2013-06-26 17:55:38 +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
cc2e18968d
Revert accidental commit of the change for PR 47911; got rolled into
...
other stuff by mistake.
2013-06-23 04:14:28 +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
de893df3a9
blkoff() -> ffs_blkoff() stragglers
2013-06-19 18:02:21 +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
8c01dce56b
Make this build again. hi christos
2013-06-19 06:15:54 +00:00
christos
d418f0d0f1
make this compile again
2013-06-19 01:07:55 +00:00
christos
855bb66ef7
Prefix most of the cpp macros with lfs_ and LFS_ to avoid conflicts with ffs.
...
This was done so that boot blocks that want to compile both FFS and LFS in
the same file work.
2013-06-18 18:18:57 +00:00
christos
289b275fc3
revert part of previous commit
2013-06-15 12:29:02 +00:00
christos
78f1cd9f5b
handle new lfs split
2013-06-15 01:27:19 +00:00
christos
ec6fb31453
fix compilation
2013-06-15 01:26:48 +00:00
tsutsui
c7276dbc04
Remove old workaround for Cygwin.
...
http://mail-index.netbsd.org/source-changes/2003/05/08/0042.html
16bit dev_t for !__CYGWIN_USE_BIG_TYPES__ was removed in Cygwin 1.7.2
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.32
and __dev32_t has been removed since 1.7.19.
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/types.h?cvsroot=src#rev1.36
2013-06-14 16:28:20 +00:00
christos
2882a9c896
List all cgd's no matter if they are not contiguously allocated
2013-06-09 18:37:40 +00:00
dholland
9daf003ef2
Stick UFS_ in front of these symbols:
...
DIRBLKSIZ
DIRECTSIZ
DIRSIZ
OLDDIRFMT
NEWDIRFMT
Part of PR 47909.
(two stragglers in this commit; oops)
2013-06-09 18:29: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
dholland
dc37d54c5e
Add unsafe hacks to make this build going forward.
...
XXX: unsafe hacks are unsafe -- dump needs to be cleaned up to make
XXX: it more fs-independent.
2013-06-08 23:37:37 +00:00
dholland
602ba1f79c
dp->di_u.inumber -> dp->di_inumber
...
Should have been part of the previous changeset that applied that
change to lfs.h. I'd quite like to know why the test build I ran
didn't trip on this.
2013-06-08 23:12:13 +00:00
dholland
a65dc3fc86
Redo these changes properly:
...
-r1.12 libexec/lfs_cleanerd/Makefile
-r1.15 sbin/fsck_lfs/Makefile
-r1.6 sbin/newfs_lfs/Makefile
hi ad@
2013-06-08 21:13:19 +00:00
dholland
c13a12500a
Tidy up the LFS userland build hacks.
...
Don't use -I${NETBSDSRCDIR}/sys; don't include files other than the
exported LFS headers, which are lfs.h, lfs_inode.h, and (for now)
lfs_extern.h.
2013-06-08 02:16:03 +00:00
dholland
25bc01ad43
DIRBLKSIZ -> LFS_DIRBLKSIZ
...
DIRECTSIZ -> LFS_DIRECTSIZ
DIRSIZ -> LFS_DIRSIZ
OLDDIRFMT -> LFS_OLDDIRFMT
NEWDIRFMT -> LFS_NEWDIRFMT
IFTODT -> LFS_IFTODT
DTTOIF -> LFS_DTTOIF
2013-06-08 02:14:46 +00:00
dholland
4b157546cf
struct direct -> struct lfs_direct
...
struct dirtemplate -> struct lfs_dirtemplate
struct odirtemplate -> struct lfs_odirtemplate
DT_* -> LFS_DT_*
2013-06-08 02:12:56 +00:00
dholland
b6eb36b1f1
Stick LFS_ in front of IFMT, IFIFO, IFREG, etc. so as not to conflict
...
with the UFS copies of these symbols. (Which themselves ought to have
UFS_ stuck on.)
2013-06-08 02:11:11 +00:00
dholland
5fce92dbf7
Move the dinode (on-disk inode) structures to lfs.h, since they are
...
and will be obviously required by userland tools that need to read
the on-disk structures.
Also, DINODE{1,2}_SIZE -> LFS_DINODE{1,2}_SIZE.
2013-06-08 02:09:35 +00:00
dholland
a4fc39c06d
Cleanups and hacks to make lfs userland stuff build:
...
- lfs_cksum.c doesn't actually need ulfs_inode.h any more.
- neither does lfs_itimes.c.
- add hacks to fsck_lfs to make it compile.
- add hacks to newfs_lfs to make it compile.
- fix warning in ulfs_quota.c when quotas are fully disabled
(as I guess is happening with the rumpity version)
XXX: This commit adds -I${NETBSDSRCDIR}/sys to the Makefiles for
XXX: fsck_lfs, newfs_lfs, and lfs_cleanerd. This needs to be cleaned
XXX: up ASAP; but I consider this less problematic in the short term
XXX: than spewing ulfs_*.h into /usr/include.
2013-06-06 00:54:49 +00:00
dholland
f67ddac196
ufs -> ulfs for newfs_lfs
2013-06-06 00:53:12 +00:00
dholland
1ebd9aa225
ufs -> ulfs for fsck_lfs.
2013-06-06 00:52:50 +00:00
wiz
faa87fa7ed
Sync with man page. From jmc@openbsd.
2013-06-02 13:27:20 +00:00
wiz
c9aebf8ce5
Improvements from jmc@openbsd.
2013-06-02 13:27:12 +00:00
wiz
d19a931ddc
De-capitalize `.Nd' macro argument.
...
From Bug Hunting.
2013-05-29 14:56:19 +00:00
wiz
0d33e4d5b7
Instead of 'no space', say 'not enough space' in error message.
2013-05-26 21:26:17 +00:00
christos
cb39557cb2
%td is for ptrdiff_t not for off_t
2013-05-15 00:47:43 +00:00
christos
c3e11c3703
- avoid using globals where it is simple.
...
- simplify: only use stdio for output.
2013-05-13 18:44:11 +00:00
christos
1e2e5a9113
CVE 1020933: Prevent integer overflow by using wider type
2013-05-13 18:01:08 +00:00
christos
7d5016218f
CVE 1020935: Prevent overflow
2013-05-13 17:58:50 +00:00
skrll
4cc906c4aa
Add an arch_endian entry for x86_64.
2013-05-05 15:59:42 +00:00
matt
4fdf02c17a
Make sure to initialize byteorder if native.
2013-05-03 21:23:36 +00:00
matt
b1e3ebd45b
Fix tpyos.
2013-05-03 16:39:00 +00:00
matt
af8f0546ca
Make disklabel a MI tool. It will use MACHINE/MACHINE_ARCH to determine
...
the disklabel params as well as allowing command-line options of -M <machine>
and -B {le,be} to specify MACHINE and byteorder to be used.
2013-05-03 16:05:11 +00:00
christos
c1bdad31a0
avoid initialization bug in vax gcc: int i; foo(&i);
2013-05-03 00:01:15 +00:00
christos
c673655ecf
one less kvm groveller. Use sysctl to get ccd info.
2013-04-27 17:12:36 +00:00