mkjournal.c (ext2fs_add_journal_inode): Only use fchflags if

HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has
	fchflags without defining UF_NODUMP.  (Addresses Debian
	bug #101361)
bitmap-optimize
Theodore Ts'o 2001-06-22 21:20:47 -04:00
parent d90f3494b2
commit 7833262585
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2001-06-22 Theodore Tso <tytso@valinux.com>
* mkjournal.c (ext2fs_add_journal_inode): Only use fchflags if
HAVE_CHFLAGS and UF_NODUMP are defined, since the Hurd has
fchflags without defining UF_NODUMP. (Addresses Debian
bug #101361)
* flushb.c: Use platform independent method of defining the
BLKFLSBUF and FDFLUSH ioctl's. Also include sys/mount.h
since on newer glibc's BLKFLSBUF is defined there.

View File

@ -330,7 +330,7 @@ errcode_t ext2fs_add_journal_inode(ext2_filsys fs, blk_t size, int flags)
if (fstat(fd, &st) < 0)
return errno;
#if HAVE_CHFLAGS
#if defined(HAVE_CHFLAGS) && defined(UF_NODUMP)
retval = fchflags (fd, UF_NODUMP|UF_IMMUTABLE);
#else
#if HAVE_EXT2_IOCTLS