diff options
author | Jim Meyering <meyering@redhat.com> | 2011-05-16 14:33:58 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-05-27 17:07:46 +0200 |
commit | e382adcf855ea7af2644b2cb844b9c54bc83f555 (patch) | |
tree | ad12f52b3a4b7ce20fd51f87bc246c3d54dde06c | |
parent | 48140b7cf9e0d86253dcf46a1979de17bee63077 (diff) | |
download | parted-e382adcf855ea7af2644b2cb844b9c54bc83f555.tar.gz |
ufs: remove all-but-probe FS-related code
-rw-r--r-- | libparted/fs/ufs/Makefile.am | 1 | ||||
-rw-r--r-- | libparted/fs/ufs/ufs.c | 15 |
2 files changed, 1 insertions, 15 deletions
diff --git a/libparted/fs/ufs/Makefile.am b/libparted/fs/ufs/Makefile.am index e913c2d..c63e8d2 100644 --- a/libparted/fs/ufs/Makefile.am +++ b/libparted/fs/ufs/Makefile.am @@ -1,3 +1,4 @@ +AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) partedincludedir = -I$(top_srcdir)/include noinst_LTLIBRARIES = libufs.la diff --git a/libparted/fs/ufs/ufs.c b/libparted/fs/ufs/ufs.c index d082b1d..3dc198e 100644 --- a/libparted/fs/ufs/ufs.c +++ b/libparted/fs/ufs/ufs.c @@ -242,21 +242,6 @@ ufs_probe_hp (PedGeometry* geom) return NULL; } -#ifndef DISCOVER_ONLY -static int -ufs_clobber (PedGeometry* geom) -{ - char buf[1536]; - - if (!ped_geometry_read (geom, buf, 16, 3)) - return 0; - - memset (buf, 0, sizeof(struct ufs_super_block)); - - return ped_geometry_write (geom, buf, 16, 3); -} -#endif /* !DISCOVER_ONLY */ - static PedFileSystemOps ufs_ops_sun = { probe: ufs_probe_sun, }; |