diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-13 13:05:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-13 13:05:36 -0400 |
commit | 54753fdb943ecd28a0666ee4ef105224407a5044 (patch) | |
tree | 1868ec529591703afb7e78a7cae5011db643dac2 | |
parent | 1e103d198eb1effb43173412514ac3385ea6765f (diff) | |
parent | 6dbce5218298c0c77a740b3ffe97cb8c304e1710 (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
ext3: Update documentation about ext3 quota mount options
ext3: Don't update superblock write time when filesystem is read-only
-rw-r--r-- | Documentation/filesystems/ext3.txt | 16 | ||||
-rw-r--r-- | fs/ext3/super.c | 13 |
2 files changed, 24 insertions, 5 deletions
diff --git a/Documentation/filesystems/ext3.txt b/Documentation/filesystems/ext3.txt index 570f9bd9be2b..05d5cf1d743f 100644 --- a/Documentation/filesystems/ext3.txt +++ b/Documentation/filesystems/ext3.txt | |||
@@ -123,10 +123,18 @@ resuid=n The user ID which may use the reserved blocks. | |||
123 | 123 | ||
124 | sb=n Use alternate superblock at this location. | 124 | sb=n Use alternate superblock at this location. |
125 | 125 | ||
126 | quota | 126 | quota These options are ignored by the filesystem. They |
127 | noquota | 127 | noquota are used only by quota tools to recognize volumes |
128 | grpquota | 128 | grpquota where quota should be turned on. See documentation |
129 | usrquota | 129 | usrquota in the quota-tools package for more details |
130 | (http://sourceforge.net/projects/linuxquota). | ||
131 | |||
132 | jqfmt=<quota type> These options tell filesystem details about quota | ||
133 | usrjquota=<file> so that quota information can be properly updated | ||
134 | grpjquota=<file> during journal replay. They replace the above | ||
135 | quota options. See documentation in the quota-tools | ||
136 | package for more details | ||
137 | (http://sourceforge.net/projects/linuxquota). | ||
130 | 138 | ||
131 | bh (*) ext3 associates buffer heads to data pages to | 139 | bh (*) ext3 associates buffer heads to data pages to |
132 | nobh (a) cache disk block mapping information | 140 | nobh (a) cache disk block mapping information |
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 72743d360509..7a520a862f49 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -2321,7 +2321,18 @@ static int ext3_commit_super(struct super_block *sb, | |||
2321 | 2321 | ||
2322 | if (!sbh) | 2322 | if (!sbh) |
2323 | return error; | 2323 | return error; |
2324 | es->s_wtime = cpu_to_le32(get_seconds()); | 2324 | /* |
2325 | * If the file system is mounted read-only, don't update the | ||
2326 | * superblock write time. This avoids updating the superblock | ||
2327 | * write time when we are mounting the root file system | ||
2328 | * read/only but we need to replay the journal; at that point, | ||
2329 | * for people who are east of GMT and who make their clock | ||
2330 | * tick in localtime for Windows bug-for-bug compatibility, | ||
2331 | * the clock is set in the future, and this will cause e2fsck | ||
2332 | * to complain and force a full file system check. | ||
2333 | */ | ||
2334 | if (!(sb->s_flags & MS_RDONLY)) | ||
2335 | es->s_wtime = cpu_to_le32(get_seconds()); | ||
2325 | es->s_free_blocks_count = cpu_to_le32(ext3_count_free_blocks(sb)); | 2336 | es->s_free_blocks_count = cpu_to_le32(ext3_count_free_blocks(sb)); |
2326 | es->s_free_inodes_count = cpu_to_le32(ext3_count_free_inodes(sb)); | 2337 | es->s_free_inodes_count = cpu_to_le32(ext3_count_free_inodes(sb)); |
2327 | BUFFER_TRACE(sbh, "marking dirty"); | 2338 | BUFFER_TRACE(sbh, "marking dirty"); |