diff options
author | cognet <cognet@FreeBSD.org> | 2009-02-12 15:28:15 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2009-02-12 15:28:15 +0000 |
commit | b0cf082ab57deaa78de6d4efd0876d914830014b (patch) | |
tree | 7b32ee48ffa9a29f34b7b49e7a03ffd292e101d1 /sbin/newfs/newfs.c | |
parent | 822875df79f79fc559eb87bf2366d5ee52e8960b (diff) | |
download | FreeBSD-src-b0cf082ab57deaa78de6d4efd0876d914830014b.zip FreeBSD-src-b0cf082ab57deaa78de6d4efd0876d914830014b.tar.gz |
Don't add a bwrite() symbol, it breaks the build when building newfs
statically.
Instead, bring in a stripped down version of sbwrite(), and add the offset
to every bwrite() calls.
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r-- | sbin/newfs/newfs.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index d27071f..776b45d 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -152,16 +152,6 @@ static void usage(void); ufs2_daddr_t part_ofs; /* partition offset in blocks, used with files */ -/* - * need to replace the library's bwrite so that sbwrite uses this one - */ -ssize_t -bwrite(struct uufsd *disk, ufs2_daddr_t blockno, const void *data, size_t size) -{ - return pwrite(disk->d_fd, data, size, - (off_t)((part_ofs + blockno) * disk->d_bsize)); -} - int main(int argc, char *argv[]) { |