Репозитории ALT
S: | 0.2.2-alt11 |
5.1: | 0.2.2-alt2 |
4.1: | 0.2.2-alt1 |
4.0: | 0.2.0-alt6.1 |
3.0: | 0.2.0-alt6 |
Группа :: Система/Ядро и оборудование
Пакет: e2fsimage
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: e2fsimage-0.2.0-blocksize.patch
Скачать
Скачать
diff -ur e2fsimage-0.2.0.orig/src/main.c e2fsimage-0.2.0/src/main.c
--- e2fsimage-0.2.0.orig/src/main.c 2004-12-08 17:29:57 +0300
+++ e2fsimage-0.2.0/src/main.c 2004-12-08 17:32:30 +0300
@@ -136,7 +136,7 @@
if(! (e2c.curr_path && e2fsfile)) usage (argv[0]);
/* open and read the filesystem image */
- ret = ext2fs_open (e2fsfile, EXT2_FLAG_RW, 1, 1024, unix_io_manager, &e2c.fs);
+ ret = ext2fs_open (e2fsfile, EXT2_FLAG_RW, 0, 0, unix_io_manager, &e2c.fs);
E2_ERR(ret, "Error opening filesystem: ", e2fsfile);
ext2fs_read_inode_bitmap(e2c.fs);
diff -ur e2fsimage-0.2.0.orig/src/mke2fs.c e2fsimage-0.2.0/src/mke2fs.c
--- e2fsimage-0.2.0.orig/src/mke2fs.c 2004-03-01 23:12:30 +0300
+++ e2fsimage-0.2.0/src/mke2fs.c 2004-12-08 17:51:54 +0300
@@ -86,8 +86,8 @@
if (fd) dup2(fd, 1);
setenv("PATH", buf, 1);
- execlp("mkfs.ext2", "mkfs.ext2", "-F", fname, NULL);
- execlp("mke2fs", "mke2fs", "-F", fname, NULL);
+ execlp("mkfs.ext2", "mkfs.ext2", "-F", fname, "-b", "1024", NULL);
+ execlp("mke2fs", "mke2fs", "-F", fname, "-b", "1024", NULL);
fprintf(stderr,"Could not execute 'mkfs.ext2' or 'mke2fs'\n");
}
waitpid(pid, &status, 0);