diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-04-02 01:17:27 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-04-02 01:17:27 -0800 |
| commit | c0b88a09a663b5bcda389b6f6b898881bb5f0dec (patch) | |
| tree | 63e3fbe50d40205ff71a10462ca129c51a502be7 /include/linux | |
| parent | 0d9d05765157ccf51057360e9e6c483771208d1f (diff) | |
[PATCH] restoring block size upon umount
get_sb_bdev() stores original block size in ->s_old_blocksize and
kill_block_super() restores it.
This kills 99% of crap with "oh, I've mounted/umounted that device and
its behaviour had changed" (remaining 1% can be dealt in pretty similar
ways; ideally I'd like to see ioctls that get/set block size dead and
gone).
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 85ae3dcb6496..cac7a59f6462 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -664,6 +664,7 @@ struct super_block { kdev_t s_dev; unsigned long s_blocksize; unsigned char s_blocksize_bits; + unsigned long s_old_blocksize; unsigned char s_dirt; unsigned long long s_maxbytes; /* Max file size */ struct file_system_type *s_type; |
