Commit Graph

5221 Commits

Author SHA1 Message Date
wiz 9f6042ad7c Fix Dd argument, sort options and option descriptions. 2009-07-18 17:07:12 +00:00
reinoud 69a586f230 Import read-only part of the NiLFS (v2) implementation for NetBSD. It has been
tested with a DEBUG+DIAGNOSTIC+LOCKDEBUG kernel. To summerise NiLFS, i'll
repeat my posting to tech-kern here:

NiLFS stands for New implementation of Logging File System; LFS done
right they claim :) It is at version 2 now and is being developed by NTT, the
Japanese telecom company and recently put into the linux source tree. See
http://www.nilfs.org. The on-disc format is not completely frozen and i expect
at least one minor revision to come in time.

The benefits of NiLFS are build-in fine-grained checkpointing, persistent
snapshots, multiple mounts and very large file and media support. Every
checkpoint can be transformed into a snapshot and v.v. It is said to perform
very well on flash media since it is not overwriting pieces apart from a
incidental update of the superblock, but that might change. It is accompanied
by a cleaner to clean up the segments and recover lost space.

My work is not a port of the linux code; its a new implementation. Porting the
code would be more work since its very linux oriented and never written to be
ported outside linux. The goal is to be fully interchangable. The code is non
intrusive to other parts of the kernel. It is also very light-weight.

The current state of the code is read-only access to both clean and dirty
NiLFS partitions. On mounting a dirty partition it rolls forward the log to
the last checkpoint. Full read-write support is however planned!

Just as the linux code, mount_nilfs allows for the `head' to be mounted
read/write and allows multiple read-only snapshots/checkpoint mounts next to
it.

By allowing the RW mount at a different snapshot for read-write it should be
possible eventually to revert back to a previous state; i.e. try to upgrade a
system and being able to revert to the exact state prior to the upgrade.

Compared to other FS's its pretty light-weight, suitable for embedded use and
on flash media. The read-only code is currently 17kb object code on
NetBSD/i386. I doubt the read-write code will surpass the 50 or 60. Compared
this to FFS being 156kb, UDF being 84 kb and NFS being 130kb. Run-time memory
usage is most likely not very different from other uses though maybe a bit
higher than FFS.
2009-07-18 16:31:41 +00:00
dyoung ca53a4b923 Callers expect getdiskinfo() to return -1 on error, so do that.
Simplify getdiskinfo() a bit while I am here: don't save error
codes that we will never refer to again.
2009-07-16 23:50:32 +00:00
reinoud ac5082b991 Remove the comment on disc space accounting from the bugs section; it has been
fixed.
2009-07-13 17:58:10 +00:00
dyoung 9044aa4f92 Use the keyword 'MAC' so that people looking for a way to change
their MAC address can find the example.
2009-07-02 18:43:47 +00:00
dyoung 53e43e1e70 Deprecate wiconfig's -r, -g, -m options. Note that equivalent
options are available in ifconfig(8).
2009-07-02 17:45:25 +00:00
snj b80e388902 Small grammar tweak. 2009-07-02 00:49:58 +00:00
uwe c03dac31b4 G/c sentence fragment left over from vinum reference (forgotten in 1.69).
Noticed by bad@ in PR bin/41652
2009-07-01 02:43:34 +00:00
stacktic d253d157dc Fixed a_mask to actually use its argument 2009-06-19 12:55:45 +00:00
haad 44141aa6ee Remove bogus warn, which was printed when DIOCGDISKINFO failed. 2009-06-14 21:06:18 +00:00
wiz bba67e2c66 Sync usage with man page. 2009-06-11 08:12:00 +00:00
wiz d28fa3c589 Remove -P from -p section, not from -f one. 2009-06-11 08:11:52 +00:00
jnemeth 59cc9994df -p -P doesn't make much sense since no module will be loaded. 2009-06-10 03:30:32 +00:00
jnemeth cbd3656645 Add the MODCTL_NO_PROP flag to tell the kernel to ignore <module>.prop.
Add the '-P' option to modload(8) to set this flag.
2009-06-09 20:35:02 +00:00
snj 268e5bfd87 Mention a number of keyboard encodings.
From Jukka Ruohonen in PR kern/15955.
2009-06-09 19:46:32 +00:00
jakllsch 7a9caa1f87 Improve "identify" output slightly:
- Capitialize "Name" in World Wide Name.
 - Print the World Wide Name if it exists.
 - Use LBA48 maximum address when available for "total sectors" output.
 - So that geometry will display on more drives, don't be as strict when
   checking for non-ATAPI devices.  (This seemed to be an issue on at least
   one instance of a Caviar SE16 drive.)
 - Check more carefully for valid/relevant queue depth before printing it.
 - Increment the queue depth by one for display.

While here, wrap some long lines that I should have had wrapped before they
were commited in rev. 1.46.
2009-06-08 23:26:13 +00:00
haad 63b509d1c8 Add support for devices which do not support DIOCGDISKINFO ioctl yet. This
change  will restore fsck/newfs on vnd device.
2009-06-06 18:31:29 +00:00
haad 42c8b251b8 Remove debug printfs. 2009-06-06 17:47:50 +00:00
haad e936991891 Remove debuging CFLAGS. 2009-06-06 11:09:16 +00:00
mlelstv 3479599edd make space for a trailing \0 in model,revision and serial buffers. 2009-06-06 09:18:55 +00:00
haad 102c1fe812 Add proplib to list of libraries, ifx fsdb build after my getdiskinfo change. 2009-06-06 08:22:24 +00:00
haad f5b48500f1 Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@.
2009-06-05 21:52:31 +00:00
jnemeth 5ce0121eaa Add a new [-d var] option which when combined with -p and -m will allow
you to delete vars from the existing <module>.prop file.
2009-06-05 11:37:30 +00:00
wiz 0246bc0bc2 Sort options. 2009-06-05 09:31:07 +00:00
jnemeth 3ee4fdb595 Add a "-m plist" option. This option will read in an existing
<module>.prop file and merge any options supplied on the "command
line".

This code will serve as the basis for in-kernel merging.
2009-06-04 02:57:01 +00:00
pooka bd085b2b32 If RUMP_ACTION, treat close() as a rump syscall. 2009-06-02 23:41:35 +00:00
christos 1f751faed6 make this compile one non mbr machines (move #define to the general section) 2009-06-02 21:15:53 +00:00
christos cb3a6fdee7 Delete GPT partitions if we overwrite with MBR to avoid confusion with disks
that have both MBR and a secondary left over GPT partition signature. From
Mike M. Volokhov
2009-06-01 19:57:33 +00:00
pooka 355dcf3a3b Install agr ioctl header and stop putting our hand under the sys skirt
in ifconfig.
2009-05-26 21:58:31 +00:00
pooka 162ca8ac83 Add compile mode which executes rump system calls. This is useful
when figuring out Where In The Kernel Is Carmen Sandiego's ioctl
for an ifconfig command line, since we can simply single-step into
the kernel.

Activated by "make RUMP_ACTION=1".  No changes to normal case.
2009-05-26 16:03:24 +00:00
jnemeth 3431c6b695 fputs() instead of puts() so we don't get the silly extra blank line 2009-05-19 22:55:24 +00:00
wiz 04c4f4a1d1 Sync usage and man page. 2009-05-19 22:39:52 +00:00
wiz d4f65fc8c5 Sort option descriptions. Split usage in SYNOPSIS in two, since there
are two different methods of calling it.
Add arguments to option descriptions.
2009-05-19 22:35:41 +00:00
jnemeth 47371f5f63 Add -p option which outputs a property list suitable for loading with a
module.  This is in preparation for having the kernel load an optional
<module>.prop alongside a module, which is useful for passing options
to autoloaded modules and modules loaded at boot time.
2009-05-19 22:09:59 +00:00
reinoud f30b0e943b Fix newfs_udf to create a valid disc images on bigendian machines. 2009-05-19 12:13:02 +00:00
wiz 983cc93f85 Sort SEE ALSO. 2009-05-18 14:11:30 +00:00
wiz 69f3168bc0 Sort SEE ALSO. 2009-05-18 12:29:31 +00:00
wiz a8df896a15 Sort option descriptions. 2009-05-18 12:17:54 +00:00
mjf 3d68316951 Add an exmaple of unmounting all file systems apart from NFS and MFS
e.g,

	umount -a -t nonfs,mfs

This makes it clear that the "no prefix" only needs to be on the first
file-system argument to -t. The mount(8) man page has a clear example
of this but for some reason umount(8) was missing one.
2009-05-17 14:09:15 +00:00
wiz ed8d5fd9a5 Sort option descriptions. 2009-05-13 22:49:48 +00:00
lukem 2a89584323 Note that FFSv1 is also known as FFS, UFS, or UFS1.
Note that FFSv2 is also known as UFS2.
Add a reference to Kirk's BSDcon03 paper on UFS2.
2009-05-10 13:28:00 +00:00
wiz 3932d28101 New sentence, new line. 2009-05-07 08:27:14 +00:00
lukem 87a1d67eda Consistently use FFSv1 or FFSv2 2009-05-07 06:56:56 +00:00
lukem 51d7a18bc6 Use "FFSv2" instead of "UFS2".
Expand the description of -c.
Xref dumpfs.
2009-05-07 06:54:23 +00:00
wiz 148a07685e Fix typo in Dd argument. 2009-05-04 20:11:30 +00:00
mhitch 0428b65ea1 fix sign-compare issues in vax-specific code. 2009-05-04 18:09:04 +00:00
yamt f0ea152bc0 disable automatic mountd reloading for now because it makes the service
temporary unavailable.  PR/41331 from FUKAUMI Naoki.
2009-05-04 11:41:48 +00:00
dyoung 46db29bcf1 Bring getifaddrs(3) behavior in line with the documentation: the
ifa_data member of every AF_LINK struct ifaddrs points at the
corresponding struct if_data.  In ifconfig(8), do not try to suppress
duplicate AF_LINK ifaddrs by checking for a NULL ifa_data.

Don't copy out two AF_LINK struct ifaddrs for each active link-layer
address. getifaddrs(3) used to copy out one ifaddrs for the kernel's
RTM_IFINFO message, and one more for the kernel's RTM_NEWADDR message.
I suppress the first duplicate with a highly conservative change that
wastes a little bit of ifaddrs storage.  The storage is not leaked.
2009-04-27 20:10:49 +00:00
lukem 10a1256f76 set WARNS=3 -- too many -Wsign-compare issues in the kernel ffs code 2009-04-26 05:57:48 +00:00
dyoung 740c7b59d2 To make sure that we always print the active link-layer address in the
'address: ' field, don't treat the first address as the active address,
but search the link-layer addresses for the ones flagged IFLR_ACTIVE,
and print those.  Extract a subroutine, print_link_addresses(), for
printing link-layer addresses.
2009-04-21 22:46:39 +00:00