*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> sbwrite (3)              
Title
Content
Arch
Section
 

SBREAD(3)

Contents


NAME    [Toc]    [Back]

     sbread, sbwrite -- read and write superblocks of a UFS filesystem

LIBRARY    [Toc]    [Back]

     UFS File System Access Library (libufs, -lufs)

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/mount.h>
     #include <ufs/ufs/ufsmount.h>
     #include <ufs/ufs/dinode.h>
     #include <ufs/ffs/fs.h>
     #include <libufs.h>

     int
     sbread(struct uufsd *disk);

     int
     sbwrite(struct uufsd *disk, int all);

DESCRIPTION    [Toc]    [Back]

     The sbread() and sbwrite() functions provide superblock reads and writes
     for libufs(3) consumers.  The sbread() and sbwrite() functions operate on
     the superblock field, d_sb, associated with a given userland UFS disk
     structure.  Additionally, the sbwrite() function will write to all
     superblock locations if the all value is non-zero.

     The sbread() and sbwrite() functions return 0 on success or -1 on error.

ERRORS    [Toc]    [Back]

     The function sbread() may fail and set errno for any of the errors specified
 for the library function bread(3).  Additionally, it may follow the
     libufs(3) error methodologies in situations where no usable superblock
     could be found.

     The function sbwrite() may fail and set errno for any of the errors specified
 for the library function bwrite(3).

SEE ALSO    [Toc]    [Back]

      
      
     bread(3), bwrite(3), libufs(3)

HISTORY    [Toc]    [Back]

     These functions first appeared as part of libufs(3) in FreeBSD 5.0.

AUTHORS    [Toc]    [Back]

     Juli Mallett <[email protected]>


FreeBSD 5.2.1			 June 04, 2003			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
bwrite FreeBSD read and write blocks of a UFS filesystem
bread FreeBSD read and write blocks of a UFS filesystem
AFreadmisc IRIX read from / write to / move logical read/write pointer for data in a miscellaneous chunk in an audio file
tis_write_unlock Tru64 Unlocks the specified read-write lock that was acquired for write access
tis_read_unlock Tru64 Unlocks a read-write lock that was acquired for read access
tis_write_lock Tru64 Acquires the specified read-write lock for write access
pthread_rwlock_wrlock Tru64 Acquires a read-write lock for write access
tis_read_lock Tru64 Acquires a read-write lock for read access
pthread_rwlock_rdlock Tru64 Acquires a read-write lock for read access
tis_read_trylock Tru64 Attempts to acquire a read-write lock for read access and does not wait if the lock cannot be immedi...
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service