lkml.org 
[lkml]   [2000]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Quota fixes and a few questions
Hi Jan,

On Wed, Sep 27, 2000 at 02:56:20PM +0200, Jan Kara wrote:
>
> So I've been thinking about fixes in quota (and also writing some parts).

While we're at it, I've attached a patch which I was sent which simply
teaches quota about ext3 as a valid fs type in fstab. It appears to
work fine for me --- let me know if you want me to validate a new
quotautils on ext3.

Cheers,
Stephen
--- quota-2.00-pre3/hasquota.c.ext3 Sun Jul 25 16:08:47 1999
+++ quota-2.00-pre3/hasquota.c Fri Sep 8 17:57:43 2000
@@ -28,7 +28,7 @@
#define min(x,y) ((x) < (y)) ? (x) : (y)

#define CORRECT_FSTYPE(type) \
-(!strcmp(type,MNTTYPE_EXT2))
+(!strcmp(type,MNTTYPE_EXT2) || !strcmp(type,MNTTYPE_EXT3))

char *qfextension[] = INITQFNAMES;
static char *qfname = QUOTAFILENAME;
--- quota-2.00-pre3/mntent.h.ext3 Sun Jul 25 16:08:47 1999
+++ quota-2.00-pre3/mntent.h Fri Sep 8 17:57:43 2000
@@ -11,6 +11,7 @@
#define MNTTYPE_COHERENT "coherent" /* Coherent file system */
#define MNTTYPE_EXT "ext" /* Extended file system */
#define MNTTYPE_EXT2 "ext2" /* Second Extended file system */
+#define MNTTYPE_EXT3 "ext3" /* Second Extended file system w/ journaling */
#define MNTTYPE_HPFS "hpfs" /* OS/2's high performance file system */
#define MNTTYPE_ISO9660 "iso9660" /* ISO CDROM file system */
#define MNTTYPE_MINIX "minix" /* MINIX file system */
--- quota-2.00-pre3/quotacheck.c.ext3 Fri Sep 8 17:57:43 2000
+++ quota-2.00-pre3/quotacheck.c Fri Sep 8 17:58:26 2000
@@ -292,7 +292,7 @@
st.st_nlink, st.st_blocks);

#if defined(EXT2_DIRECT)
- if (!strcmp(mnt->mnt_type, MNTTYPE_EXT2)) {
+ if (!strcmp(mnt->mnt_type, MNTTYPE_EXT2) || !strcmp(mnt->mnt_type, MNTTYPE_EXT3)) {
ext2_direct_scan(mnt_fsname);
} else if (mnt->mnt_dir) {
#else
\
 
 \ /
  Last update: 2005-03-22 12:39    [W:3.069 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site