Displaying 1 result from an estimated 1 matches for "ext2fs_add_journal_inod".
Did you mean:
ext2fs_add_journal_inode
2001 Jun 22
1
tune2fs 1.21 ext2fs_add_journal_inode problem
...t2
filesystem here:
# tunefs -j /dev/hda5
tune2fs 1.21, 15-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Creating journal inode:
tune2fs: Bad file descriptor
while trying to create journal file
which is not surprising, given that the filedescriptor is closed
(and not re-opened) before the fstat in ext2fs_add_journal_inode()
if (mount_flags & EXT2_MF_MOUNTED) {
strcat(jfile, "/.journal");
/* Create the journal file */
if ((fd = open(jfile, O_CREAT|O_WRONLY, 0600)) < 0)
return errno;
close(fd);...