Skip to content

Commit

Permalink
Integrate carcass of libspl/i/s/vtoc.h into i/s/efi_partition.h
Browse files Browse the repository at this point in the history
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
  • Loading branch information
nabijaczleweli committed Jan 22, 2022
1 parent 37ab2ff commit 1490d2c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 63 deletions.
1 change: 0 additions & 1 deletion cmd/zpool/os/linux/zpool_vdev_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
#include <scsi/sg.h>
#include <sys/efi_partition.h>
#include <sys/stat.h>
#include <sys/vtoc.h>
#include <sys/mntent.h>
#include <uuid/uuid.h>
#include <blkid/blkid.h>
Expand Down
10 changes: 10 additions & 0 deletions include/sys/efi_partition.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ typedef struct efi_gpe_Attrs {
RequiredPartition :1;
} efi_gpe_Attrs_t;

/* MBR partition identification tags */
#define V_UNASSIGNED 0x00 /* unassigned partition */
#define V_USR 0x04 /* Usr filesystem */
#define V_RESERVED 0x0b /* SMI reserved data */

/*
* 6a96237f-1dd2-11b2-99a6-080020736631 V_UNASSIGNED (not used as such)
* 6a898cc3-1dd2-11b2-99a6-080020736631 V_USR
Expand Down Expand Up @@ -355,6 +360,11 @@ struct partition64 {
#endif

#ifndef _KERNEL
#define VT_ERROR (-2) /* errno supplies specific error */
#define VT_EIO (-3) /* I/O error accessing vtoc */
#define VT_EINVAL (-4) /* illegal value in vtoc or request */
#define VT_ENOSPC (-6) /* requested space not found */

_SYS_EFI_PARTITION_H int efi_debug;
_SYS_EFI_PARTITION_H int efi_alloc_and_init(int, uint32_t, struct dk_gpt **);
_SYS_EFI_PARTITION_H int efi_alloc_and_read(int, struct dk_gpt **);
Expand Down
2 changes: 0 additions & 2 deletions lib/libefi/rdwr_efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <libintl.h>
#include <sys/types.h>
#include <sys/dkio.h>
#include <sys/vtoc.h>
#include <sys/mhd.h>
#include <sys/param.h>
#include <sys/dktp/fdisk.h>
Expand Down Expand Up @@ -856,7 +855,6 @@ efi_read(int fd, struct dk_gpt *vtoc)
}

for (i = 0; i < vtoc->efi_nparts; i++) {

UUID_LE_CONVERT(vtoc->efi_parts[i].p_guid,
efi_parts[i].efi_gpe_PartitionTypeGUID);

Expand Down
1 change: 0 additions & 1 deletion lib/libspl/include/sys/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ libspl_HEADERS = \
va_list.h \
varargs.h \
vnode.h \
vtoc.h \
wmsum.h \
zone.h
58 changes: 0 additions & 58 deletions lib/libspl/include/sys/vtoc.h

This file was deleted.

1 change: 0 additions & 1 deletion lib/libzfs/os/linux/libzfs_pool_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <sys/stat.h>
#include <sys/efi_partition.h>
#include <sys/systeminfo.h>
#include <sys/vtoc.h>
#include <sys/zfs_ioctl.h>
#include <sys/vdev_disk.h>
#include <dlfcn.h>
Expand Down

0 comments on commit 1490d2c

Please sign in to comment.