summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.c
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2009-02-12 15:28:15 +0000
committercognet <cognet@FreeBSD.org>2009-02-12 15:28:15 +0000
commitb0cf082ab57deaa78de6d4efd0876d914830014b (patch)
tree7b32ee48ffa9a29f34b7b49e7a03ffd292e101d1 /sbin/newfs/newfs.c
parent822875df79f79fc559eb87bf2366d5ee52e8960b (diff)
downloadFreeBSD-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.c10
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[])
{
OpenPOWER on IntegriCloud