blprobe = blkid_new_probe();if(!blprobe)gotodone;if(blkid_probe_set_device(blprobe, fd,0,0))gotodone; blkid_probe_enable_superblocks(blprobe,1); blkid_probe_set_superblocks_flags(blprobe, BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID | BLKID_SUBLKS_TYPE);if(blkid_do_safeprobe(blprobe))g...
staticintprobe_superblocks(blkid_probe pr){structstatst;intrc;if(fstat(blkid_probe_get_fd(pr), &st))return-1; blkid_probe_enable_partitions(pr,1);if(!S_ISCHR(st.st_mode) && blkid_probe_get_size(pr) <=1024*1440&& blkid_probe_is_wholedisk(pr)) {/* * check if the small disk is...
Expand Up@@ -62,13 +62,13 @@ static int topology_set_logical_sector_size(blkid_probe pr); * Binary interface */ structblkid_struct_topology{ unsigned longalignment_offset; unsigned longminimum_io_size; unsigned longoptimal_io_size;
if (ret >= 0 || blkid_probe_is_cdrom(pr) || blkdid_probe_is_opal_locked(pr)) errno = 0; #ifdef HAVE_OPAL_GET_STATUS else { struct opal_status st = { }; /* If the device is locked with OPAL, we'll fail to read with I/O * errors when probing deep into the block devic...
> +static int is_conventional(blkid_probe pr, uint64_t offset) > +{ > + struct blk_zone_report *rep = NULL; > + size_t rep_size; > + bool conventional; > + int ret; > + > + if (!pr->zone_size) > + return 1;
> > +static int is_conventional(blkid_probe pr, uint64_t offset) > > +{ > > + struct blk_zone_report *rep = NULL; > > + size_t rep_size; > > + bool conventional; > > + int ret; > > + > > + if (!pr->zone_size) ...
extern int probe_exfat(struct blkid_probe *probe, struct blkid_magic *id __BLKID_ATTR((unused)), unsigned char *buf); static int figure_label_len(const unsigned char *label, int len) { const unsigned char *end = label + len - 1; @@ -85,6 +89,11 @@ static unsigned char *ge...
> +static int is_conventional(blkid_probe pr, uint64_t offset) > +{ > + struct blk_zone_report *rep = NULL; > + size_t rep_size; > + int ret; > + uint64_t zone_mask; > + > + if (!pr->zone_size) > + return 1; ...