- 论坛徽章:
- 0
|
> Hallo all,\r\n>\r\n> I\'m using kernel 2.4.15-pre6 and I can see my journal file\r\n> on \'/\'. Should I worry ?\r\nNo, apparently the .journal file is visible if you created while the \r\nfilesystem is mounted, but invisible if you create it when the filesystem is \r\nunmounted. Probably because you can\'t mess with the filesystem too much when \r\nits mounted without confusing the filesystem driver, so creating hidden files \r\nis out of the question. In either case, I created my journal with the \r\nfilesystem mounted, and it created a visible, immutable .journal file in my \r\nroot directory, and my filesystem has yet to explode.\r\n\r\n> [root@tony] ls -ali /\r\n> total 65720\r\n> 2 drwxr-xr-x 24 root root 4096 Nov 20 00:26 .\r\n> 2 drwxr-xr-x 24 root root 4096 Nov 20 00:26 ..\r\n> 2930 -rw------- 1 root root 67108864 Nov 18 19:56 .journal\r\n> ^^^^^^^ created as -J size=64\r\n64 * (1024^2) = 67108864\r\nRemember 1K = 1024, and 1M = 1024^2\r\n\r\n>\r\n> [root@tony] tune2fs -l /dev/sda1\r\n> tune2fs 1.25 (20-Sep-2001)\r\n> Filesystem volume name: /\r\n> Last mounted on: <not available>\r\n> Filesystem UUID: b909b36d-8f16-4be1-9614-5049bad90e96\r\n> Filesystem magic number: 0xEF53\r\n> Filesystem revision #: 1 (dynamic)\r\n> Filesystem features: has_journal filetype needs_recovery sparse_super\r\n> ^^^^^^^^^^^^^^\r\n> ??????????????\r\nThe flag \"filetype needs_recovery\" is always set on a mounted filesystem, \r\nit\'s unset once you umount. In the event of power failure, the flag will be \r\nleft set, and fsck knows the it has to recover the filesytem. Pretty clever, \r\neh?\r\n\r\n> Could someone please comment on this ?\r\n> I\'m feeling kind of worried.\r\nEverything seems to be in order...\r\n\r\n-Ryan\r\n-\r\nTo unsubscribe from this list: send the line \"unsubscribe linux-kernel\" in\r\nthe body of a message to majordomo@vger.kernel.org\r\nMore majordomo info at http://vger.kernel.org/majordomo-info.html\r\nPlease read the FAQ at http://www.tux.org/lkml/ |
|