static int probe_zfs(struct blkid_probe *probe, struct blkid_magic *id,
unsigned char *buf)
{
+#if 0
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 dev;
DBG(DEBUG_PROBE,
- printf("need to revalidate %s (cache time %d, stat time %d,\n\t"
+ printf("need to revalidate %s (cache time %lu, stat time %lu,\n\t"
"time since last check %lu)\n",
- dev->bid_name, dev->bid_time, st.st_mtime, (unsigned long)diff));
+ dev->bid_name, (unsigned long)dev->bid_time,
+ (unsigned long)st.st_mtime, (unsigned long)diff));
if ((probe.fd = open(dev->bid_name, O_RDONLY)) < 0) {
DBG(DEBUG_PROBE, printf("blkid_verify: error %s (%d) while "
#include "ext2fs/ext2_fs.h"
#include "ext2fs/ext2fs.h"
+#include "ext2fs/crc16.h"
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
unsigned char sb_uuid[16] = { 0x4f, 0x25, 0xe8, 0xcf, 0xe7, 0x97, 0x48, 0x23,
0xbe, 0xfa, 0xa7, 0x88, 0x4b, 0xae, 0xec, 0xdb };
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
struct ext2_super_block param;
errcode_t retval;
#include <sys/time.h>
#include <sys/ioctl.h>
#include <sys/types.h>
+#include <sys/time.h>
#include "et/com_err.h"
#include "ext2fs/ext2_io.h"
exit(1);
}
blk_num = *(unsigned long *)key.dptr;
- printf(_("Replayed transaction of size %d at location %ld\n"),
+ printf(_("Replayed transaction of size %zd at location %ld\n"),
data.dsize, blk_num);
retval = io_channel_write_blk(channel, blk_num,
-data.dsize, data.dptr);
io_channel_close(channel);
tdb_close(tdb);
+ return 0;
}
static void reserve_inodes(ext2_filsys fs)
{
ext2_ino_t i;
- int group;
for (i = EXT2_ROOT_INO + 1; i < EXT2_FIRST_INODE(fs->super); i++)
ext2fs_inode_alloc_stats2(fs, i, +1, 0);
char *cp, *t;
const char *size_type;
struct str_list list;
- int state = 0;
unsigned long meg;
if (init_list(&list))
const char *def_val)
{
char *ret = 0;
- char **cpp;
int i;
for (i=0; fs_types[i]; i++);
{
int b, c;
int size;
- char *tmp, *tmp2, **cpp;
+ char *tmp, **cpp;
int blocksize = 0;
int inode_ratio = 0;
int inode_size = 0;
printf(_("Overwriting existing filesystem; this can be undone "
"using the command:\n"
" e2undo %s %s\n\n"), tdb_file, name);
-err_out:
+
free(tmp_name);
return retval;
}