Module Name: src Committed By: riastradh Date: Sat Aug 26 05:18:17 UTC 2023
Modified Files: src/sys/ufs/ext2fs: ext2fs.h Log Message: ext2fs.h: Restore e2fs_cgload/cgsave for libsa and userland use. Stop-gap until they can be taught to handle the new version that was moved to ext2fs_vfsops.c, presumably. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/ufs/ext2fs/ext2fs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ext2fs/ext2fs.h diff -u src/sys/ufs/ext2fs/ext2fs.h:1.49 src/sys/ufs/ext2fs/ext2fs.h:1.50 --- src/sys/ufs/ext2fs/ext2fs.h:1.49 Fri Aug 25 16:50:23 2023 +++ src/sys/ufs/ext2fs/ext2fs.h Sat Aug 26 05:18:17 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs.h,v 1.49 2023/08/25 16:50:23 christos Exp $ */ +/* $NetBSD: ext2fs.h,v 1.50 2023/08/26 05:18:17 riastradh Exp $ */ /* * Copyright (c) 1982, 1986, 1993 @@ -498,6 +498,12 @@ void e2fs_sb_bswap(struct ext2fs *, stru # define e2fs_sbsave(old, new) e2fs_sb_bswap((old), (new)) #endif +#ifndef _KERNEL /* XXX */ +/* Group descriptors are not byte swapped */ +#define e2fs_cgload(old, new, size) memcpy((new), (old), (size)) +#define e2fs_cgsave(old, new, size) memcpy((new), (old), (size)) +#endif + /* * Turn file system block numbers into disk block addresses. * This maps file system blocks to device size blocks.