mirror of https://github.com/vitalif/e2fsprogs
Merge branch 'maint' into next
commit
8aa53bfa69
|
@ -95,8 +95,13 @@ Description: universally unique id library
|
||||||
libuuid generates and parses 128-bit universally unique id's (UUID's).
|
libuuid generates and parses 128-bit universally unique id's (UUID's).
|
||||||
See RFC 4122 for more information.
|
See RFC 4122 for more information.
|
||||||
.
|
.
|
||||||
This package contains the uuidd daemon which is used by libuuid as well as
|
This package contains the uuidgen program and the uuidd daemon.
|
||||||
the uuidgen program.
|
.
|
||||||
|
The uuidd daemon is used to generate universally unique identifiers (UUIDs),
|
||||||
|
especially time-based UUID’s, in a secure and guaranteed-unique fashion,
|
||||||
|
even in the face of large numbers of threads trying to grab UUID’s
|
||||||
|
running on different CPU’s. It is used by by libuuid as well as the
|
||||||
|
uuidgen program.
|
||||||
|
|
||||||
Package: libuuid1-udeb
|
Package: libuuid1-udeb
|
||||||
Section: debian-installer
|
Section: debian-installer
|
||||||
|
@ -213,9 +218,10 @@ Suggests: gpart, parted, e2fsck-static
|
||||||
Conflicts: dump (<< 0.4b4-4), quota (<< 1.55-8.1), initscripts (<< 2.85-4), sysvinit (<< 2.85-4)
|
Conflicts: dump (<< 0.4b4-4), quota (<< 1.55-8.1), initscripts (<< 2.85-4), sysvinit (<< 2.85-4)
|
||||||
Replaces: hurd (<= 20040301-1), libblkid1 (<< 1.38+1.39-WIP-2005.12.10-2), libuuid1 (<< 1.38+1.39-WIP-2005.12.10-2)
|
Replaces: hurd (<= 20040301-1), libblkid1 (<< 1.38+1.39-WIP-2005.12.10-2), libuuid1 (<< 1.38+1.39-WIP-2005.12.10-2)
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Description: ext2 file system utilities and libraries
|
Description: ext2/ext3/ext4 file system utilities
|
||||||
EXT2 stands for "Extended Filesystem", version 2. It's the main
|
The ext2, ext3 and ext4 file systems are successors of the original ext
|
||||||
filesystem type used for hard disks on Debian and other Linux systems.
|
("extended") file system. They are the main file system types used for
|
||||||
|
hard disks on Debian and other Linux systems.
|
||||||
.
|
.
|
||||||
This package contains programs for creating, checking, and maintaining EXT2
|
This package contains programs for creating, checking, and maintaining
|
||||||
filesystems, and the generic `fsck' wrapper.
|
ext-based file systems, and the generic fsck wrapper.
|
||||||
|
|
|
@ -774,6 +774,20 @@ static int probe_jfs(struct blkid_probe *probe,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int probe_zfs(struct blkid_probe *probe, struct blkid_magic *id,
|
||||||
|
unsigned char *buf)
|
||||||
|
{
|
||||||
|
char *vdev_label;
|
||||||
|
const char *pool_name = 0;
|
||||||
|
|
||||||
|
/* read nvpair data for pool name, pool GUID (complex) */
|
||||||
|
#if 0
|
||||||
|
blkid_set_tag(probe->dev, "LABEL", pool_name, sizeof(pool_name));
|
||||||
|
set_uuid(probe->dev, pool_guid, 0);
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int probe_luks(struct blkid_probe *probe,
|
static int probe_luks(struct blkid_probe *probe,
|
||||||
struct blkid_magic *id __BLKID_ATTR((unused)),
|
struct blkid_magic *id __BLKID_ATTR((unused)),
|
||||||
unsigned char *buf)
|
unsigned char *buf)
|
||||||
|
@ -1094,15 +1108,6 @@ static int probe_lvm2(struct blkid_probe *probe,
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* BLKID_BLK_OFFS is at least as large as the highest bim_kboff defined
|
|
||||||
* in the type_array table below + bim_kbalign.
|
|
||||||
*
|
|
||||||
* When probing for a lot of magics, we handle everything in 1kB buffers so
|
|
||||||
* that we don't have to worry about reading each combination of block sizes.
|
|
||||||
*/
|
|
||||||
#define BLKID_BLK_OFFS 64 /* currently reiserfs */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Various filesystem magics that we can check for. Note that kboff and
|
* Various filesystem magics that we can check for. Note that kboff and
|
||||||
* sboff are in kilobytes and bytes respectively. All magics are in
|
* sboff are in kilobytes and bytes respectively. All magics are in
|
||||||
|
@ -1153,6 +1158,10 @@ static struct blkid_magic type_array[] = {
|
||||||
{ "iso9660", 32, 1, 5, "CD001", probe_iso9660 },
|
{ "iso9660", 32, 1, 5, "CD001", probe_iso9660 },
|
||||||
{ "iso9660", 32, 9, 5, "CDROM", probe_iso9660 },
|
{ "iso9660", 32, 9, 5, "CDROM", probe_iso9660 },
|
||||||
{ "jfs", 32, 0, 4, "JFS1", probe_jfs },
|
{ "jfs", 32, 0, 4, "JFS1", probe_jfs },
|
||||||
|
{ "zfs", 8, 0, 8, "\0\0\x02\xf5\xb0\x07\xb1\x0c", probe_zfs },
|
||||||
|
{ "zfs", 8, 0, 8, "\x0c\xb1\x07\xb0\xf5\x02\0\0", probe_zfs },
|
||||||
|
{ "zfs", 264, 0, 8, "\0\0\x02\xf5\xb0\x07\xb1\x0c", probe_zfs },
|
||||||
|
{ "zfs", 264, 0, 8, "\x0c\xb1\x07\xb0\xf5\x02\0\0", probe_zfs },
|
||||||
{ "hfsplus", 1, 0, 2, "BD", probe_hfsplus },
|
{ "hfsplus", 1, 0, 2, "BD", probe_hfsplus },
|
||||||
{ "hfsplus", 1, 0, 2, "H+", 0 },
|
{ "hfsplus", 1, 0, 2, "H+", 0 },
|
||||||
{ "hfs", 1, 0, 2, "BD", 0 },
|
{ "hfs", 1, 0, 2, "BD", 0 },
|
||||||
|
@ -1288,7 +1297,7 @@ try_again:
|
||||||
if (!buf)
|
if (!buf)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (memcmp(id->bim_magic, buf + (id->bim_sboff&0x3ff),
|
if (memcmp(id->bim_magic, buf + (id->bim_sboff & 0x3ff),
|
||||||
id->bim_len))
|
id->bim_len))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -1318,7 +1327,7 @@ try_again:
|
||||||
dev = 0;
|
dev = 0;
|
||||||
goto found_type;
|
goto found_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
found_type:
|
found_type:
|
||||||
if (dev && type) {
|
if (dev && type) {
|
||||||
dev->bid_devno = st.st_rdev;
|
dev->bid_devno = st.st_rdev;
|
||||||
|
@ -1327,7 +1336,7 @@ found_type:
|
||||||
cache->bic_flags |= BLKID_BIC_FL_CHANGED;
|
cache->bic_flags |= BLKID_BIC_FL_CHANGED;
|
||||||
|
|
||||||
blkid_set_tag(dev, "TYPE", type, 0);
|
blkid_set_tag(dev, "TYPE", type, 0);
|
||||||
|
|
||||||
DBG(DEBUG_PROBE, printf("%s: devno 0x%04llx, type %s\n",
|
DBG(DEBUG_PROBE, printf("%s: devno 0x%04llx, type %s\n",
|
||||||
dev->bid_name, (long long)st.st_rdev, type));
|
dev->bid_name, (long long)st.st_rdev, type));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue