summaryrefslogtreecommitdiffstats
path: root/lib/libufs
Commit message (Collapse)AuthorAgeFilesLines
* Create a new 32-bit fs_flags word in the superblock. Add code to movemckusick2002-11-271-1/+1
| | | | | | | | | | | | | | | | | the old 8-bit fs_old_flags to the new location the first time that the filesystem is mounted by a new kernel. One of the unused flags in fs_old_flags is used to indicate that the flags have been moved. Leave the fs_old_flags word intact so that it will work properly if used on an old kernel. Change the fs_sblockloc superblock location field to be in units of bytes instead of in units of filesystem fragments. The old units did not work properly when the fragment size exceeeded the superblock size (8192). Update old fs_sblockloc values at the same time that the flags are moved. Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs.
* Use an error message closer to old dumpfs(8) in the case of truncated/nojmallett2002-10-221-1/+1
| | | | | | | | | superblock. Submitted by: kkenn Can't use it verbatim, at least I hate to, as the ", skipped" bit doesn't make much sense in a library, to me.
* Add the concept of a per-disk error string, and a function which prints itjmallett2002-10-226-1/+78
| | | | along with the errno, if one is set.
* Wrap the header to prevent multiple inclusion, and mark the DECLS section.jmallett2002-08-221-0/+9
| | | | Reminded by: Rachel Hestilow <hestilow@ximian.com>
* Initialise disk->d_ufs so that in sblock.c it's always initialisedjmallett2002-08-111-0/+1
| | | | | | | (unless someone tries to use libufs support functions without using _fillout or _ctor to construct a uufsd.) Obtained from: jmallett_libufs Perforce branch.
* Fill out (zero) and fill in (when doing getino()) the minimum and maximumjmallett2002-07-112-2/+4
| | | | inodes in our inoblock (disk->d_ino{min,max}) appropriately.
* No need to explicitly set NOMAN here.ru2002-07-031-1/+0
| | | | Reviewed by: jmallett
* DEBUG is a knob that means something else in FreeBSD, use LIBUFS_DEBUG tojmallett2002-07-011-1/+1
| | | | turn on tracing.
* In getino, have our DEBUG message in the unhandled case mention that itjmallett2002-07-013-1/+5
| | | | | | does not know what sort of UFS filesystem this is. Add some DEBUG(NULL)'s to function entry points.
* Add libufs, a library for dealing with UFS filesystems from userland tojmallett2002-07-016-0/+534
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.
OpenPOWER on IntegriCloud