The Hurd only supports filesystems with a blocksize of 4096 bytes, and
128 byte inodes. It also doesn't understand the journal. So force
the defaults to be something which the Hurd can handle if "-o hurd" is
specified on the command line.
Addresses-Debian-Bug: #471977
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
const char *size_type;
struct str_list list;
unsigned long meg;
+ int is_hurd = 0;
if (init_list(&list))
return 0;
+ if (creator_os && (!strcasecmp(creator_os, "GNU") ||
+ !strcasecmp(creator_os, "hurd")))
+ is_hurd = 1;
+
if (fs_type)
ext_type = fs_type;
+ else if (is_hurd)
+ ext_type = "ext2";
else if (progname) {
ext_type = strrchr(progname, '/');
if (ext_type)
free(parse_str);
if (profile_type)
free(profile_type);
+ if (is_hurd)
+ push_string(&list, "hurd");
return (list.list);
}
inode_ratio = 4194304
blocksize = -1
}
+ hurd = {
+ blocksize = 4096
+ inode_size = 128
+ }