fdisk: use BSD label header
Move bsd specific function definitions into its own header file and include it in fdisk code. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
This commit is contained in:
parent
e11447670a
commit
37eadc1796
|
@ -39,6 +39,7 @@
|
||||||
#include "fdiskaixlabel.h"
|
#include "fdiskaixlabel.h"
|
||||||
#include "fdiskmaclabel.h"
|
#include "fdiskmaclabel.h"
|
||||||
#include "fdiskdoslabel.h"
|
#include "fdiskdoslabel.h"
|
||||||
|
#include "fdiskbsdlabel.h"
|
||||||
|
|
||||||
#ifdef HAVE_LINUX_COMPILER_H
|
#ifdef HAVE_LINUX_COMPILER_H
|
||||||
#include <linux/compiler.h>
|
#include <linux/compiler.h>
|
||||||
|
|
|
@ -185,9 +185,3 @@ static inline int is_cleared_partition(struct partition *p)
|
||||||
p->sys_ind || p->end_head || p->end_sector || p->end_cyl ||
|
p->sys_ind || p->end_head || p->end_sector || p->end_cyl ||
|
||||||
get_start_sect(p) || get_nr_sects(p));
|
get_start_sect(p) || get_nr_sects(p));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* prototypes for fdiskbsdlabel.c */
|
|
||||||
extern void bsd_command_prompt(void);
|
|
||||||
extern int check_osf_label(void);
|
|
||||||
extern int btrydev(char * dev);
|
|
||||||
extern void xbsd_print_disklabel(int);
|
|
||||||
|
|
|
@ -238,4 +238,9 @@ static struct systypes xbsd_fstypes[] = {
|
||||||
#define BSD_D_CHAIN 0x10 /* can do back-back transfers */
|
#define BSD_D_CHAIN 0x10 /* can do back-back transfers */
|
||||||
#define BSD_D_DOSPART 0x20 /* within MSDOS partition */
|
#define BSD_D_DOSPART 0x20 /* within MSDOS partition */
|
||||||
|
|
||||||
|
extern void bsd_command_prompt(void);
|
||||||
|
extern int check_osf_label(void);
|
||||||
|
extern int btrydev(char * dev);
|
||||||
|
extern void xbsd_print_disklabel(int);
|
||||||
|
|
||||||
#endif /* FDISK_BSD_LABEL_H */
|
#endif /* FDISK_BSD_LABEL_H */
|
||||||
|
|
Loading…
Reference in New Issue