2
2
libparted - a library for manipulating disk partitions
3
Copyright (C) 2001, 2007, 2009-2010 Free Software Foundation, Inc.
3
Copyright (C) 2001, 2007, 2009-2012 Free Software Foundation, Inc.
5
5
This program is free software; you can redistribute it and/or modify
6
6
it under the terms of the GNU General Public License as published by
322
#ifndef DISCOVER_ONLY
324
ufs_clobber (PedGeometry* geom)
328
if (!ped_geometry_read (geom, buf, 16, 3))
331
memset (buf, 0, sizeof(struct ufs_super_block));
333
return ped_geometry_write (geom, buf, 16, 3);
335
#endif /* !DISCOVER_ONLY */
337
322
static PedFileSystemOps ufs_ops_sun = {
338
323
probe: ufs_probe_sun,
339
#ifndef DISCOVER_ONLY
340
clobber: ufs_clobber,
350
get_create_constraint: NULL,
351
get_resize_constraint: NULL,
352
get_copy_constraint: NULL
355
326
static PedFileSystemOps ufs_ops_hp = {
356
327
probe: ufs_probe_hp,
357
#ifndef DISCOVER_ONLY
358
clobber: ufs_clobber,
368
get_create_constraint: NULL,
369
get_resize_constraint: NULL,
370
get_copy_constraint: NULL
373
330
static PedFileSystemOps ufs_ops_freebsd = {
374
331
probe: ufs_probe_freebsd,
375
#ifndef DISCOVER_ONLY
376
clobber: ufs_clobber,
386
get_create_constraint: NULL,
387
get_resize_constraint: NULL,
388
get_copy_constraint: NULL
391
334
static PedFileSystemType ufs_type_sun = {
412
355
ped_file_system_ufs_init ()
414
PED_ASSERT (sizeof (struct ufs_super_block) == 1380, return);
357
PED_ASSERT (sizeof (struct ufs_super_block) == 1380);
416
359
ped_file_system_type_register (&ufs_type_sun);
417
360
ped_file_system_type_register (&ufs_type_hp);