History log of /freebsd-10-stable/lib/libufs/libufs.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 218601 12-Feb-2011 kib

Replace ERROR() macro with inline function. In-tree gcc cannot tolerate
the construct like printf("%\s", NULL) resulting from macroexpand of
ERROR(u, NULL), making it impossible to use LIBUFS_DEBUGGING.

With inline function, compiler cannot detect the NULL argument to
known function and does not try to convert it into puts().

In collaboration with: pho


# 207141 24-Apr-2010 jeff

- Merge soft-updates journaling from projects/suj/head into head. This
brings in support for an optional intent log which eliminates the need
for background fsck on unclean shutdown.

Sponsored by: iXsystems, Yahoo!, and Juniper.
With help from: McKusick and Peter Holm


# 174668 16-Dec-2007 phk

Add a berase() function which uses ioctl(DIOCGDELETE) to erase a slab
of the disk.


# 163835 31-Oct-2006 pjd

Implement cgwrite1(3) function which stored a given cylinder group on disk.

Sponsored by: home.pl


# 116086 09-Jun-2003 jmallett

Remove ufs_disk_ctor and ufs_disk_dtor, they never came to fruition. I do
not know of any software using them, and there is no "published API" for
libufs, as it were.


# 110066 29-Jan-2003 jmallett

API for opening (and tracking) writable file descriptors per disk.


# 109755 23-Jan-2003 jmallett

API to fillout a blank disk. For e.g. newfs.


# 109518 19-Jan-2003 jmallett

Store not only the current cylinder group in the series (i.e. next that needs
to be read in) but also the last cylinder group in the series (i.e. what is
stored in the structure).


# 109509 18-Jan-2003 jmallett

Add facility to read one, or a string of, cylinger groups.


# 109506 18-Jan-2003 jmallett

Hunt for a disk to operate on, if we're passed a partition mountpoint, etc.

Concept reviewed by: phk


# 109464 18-Jan-2003 jmallett

Fix typo.


# 109462 18-Jan-2003 jmallett

Nuke dumb error reporting code, people can just use disk::d_error. Unify the
DEBUG and d_error initialisation into an ERROR macro, which can both trace and
set the d_error field. Much a more meaningful thing, I should say.


# 105737 22-Oct-2002 jmallett

Add the concept of a per-disk error string, and a function which prints it
along with the errno, if one is set.


# 102296 22-Aug-2002 jmallett

Wrap the header to prevent multiple inclusion, and mark the DECLS section.

Reminded by: Rachel Hestilow <hestilow@ximian.com>


# 99193 30-Jun-2002 jmallett

Add libufs, a library for dealing with UFS filesystems from userland to
the build. It is here to compartmentalise functionality currently duplicated
in many notable programs in the base system. It currently handles block
reads and writes, as well as reading and writing of the filesystem superblock,
and the reading/lookup of inode data. It supports both UFS and UFS2. I
will be maintaining it, and porting programs to use it, however for now, it
is simply being built as part of world.