xref: /OK3568_Linux_fs/kernel/Documentation/admin-guide/jfs.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun===========================================
2*4882a593SmuzhiyunIBM's Journaled File System (JFS) for Linux
3*4882a593Smuzhiyun===========================================
4*4882a593Smuzhiyun
5*4882a593SmuzhiyunJFS Homepage:  http://jfs.sourceforge.net/
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThe following mount options are supported:
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun(*) == default
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuniocharset=name
12*4882a593Smuzhiyun                Character set to use for converting from Unicode to
13*4882a593Smuzhiyun		ASCII.  The default is to do no conversion.  Use
14*4882a593Smuzhiyun		iocharset=utf8 for UTF-8 translations.  This requires
15*4882a593Smuzhiyun		CONFIG_NLS_UTF8 to be set in the kernel .config file.
16*4882a593Smuzhiyun		iocharset=none specifies the default behavior explicitly.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunresize=value
19*4882a593Smuzhiyun                Resize the volume to <value> blocks.  JFS only supports
20*4882a593Smuzhiyun		growing a volume, not shrinking it.  This option is only
21*4882a593Smuzhiyun		valid during a remount, when the volume is mounted
22*4882a593Smuzhiyun		read-write.  The resize keyword with no value will grow
23*4882a593Smuzhiyun		the volume to the full size of the partition.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunnointegrity
26*4882a593Smuzhiyun                Do not write to the journal.  The primary use of this option
27*4882a593Smuzhiyun		is to allow for higher performance when restoring a volume
28*4882a593Smuzhiyun		from backup media.  The integrity of the volume is not
29*4882a593Smuzhiyun		guaranteed if the system abnormally abends.
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunintegrity(*)
32*4882a593Smuzhiyun                Commit metadata changes to the journal.  Use this option to
33*4882a593Smuzhiyun		remount a volume where the nointegrity option was
34*4882a593Smuzhiyun		previously specified in order to restore normal behavior.
35*4882a593Smuzhiyun
36*4882a593Smuzhiyunerrors=continue
37*4882a593Smuzhiyun                        Keep going on a filesystem error.
38*4882a593Smuzhiyunerrors=remount-ro(*)
39*4882a593Smuzhiyun                        Remount the filesystem read-only on an error.
40*4882a593Smuzhiyunerrors=panic
41*4882a593Smuzhiyun                        Panic and halt the machine if an error occurs.
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunuid=value
44*4882a593Smuzhiyun                Override on-disk uid with specified value
45*4882a593Smuzhiyungid=value
46*4882a593Smuzhiyun                Override on-disk gid with specified value
47*4882a593Smuzhiyunumask=value
48*4882a593Smuzhiyun                Override on-disk umask with specified octal value. For
49*4882a593Smuzhiyun                directories, the execute bit will be set if the corresponding
50*4882a593Smuzhiyun		read bit is set.
51*4882a593Smuzhiyun
52*4882a593Smuzhiyundiscard=minlen, discard/nodiscard(*)
53*4882a593Smuzhiyun                This enables/disables the use of discard/TRIM commands.
54*4882a593Smuzhiyun		The discard/TRIM commands are sent to the underlying
55*4882a593Smuzhiyun                block device when blocks are freed. This is useful for SSD
56*4882a593Smuzhiyun                devices and sparse/thinly-provisioned LUNs.  The FITRIM ioctl
57*4882a593Smuzhiyun		command is also available together with the nodiscard option.
58*4882a593Smuzhiyun		The value of minlen specifies the minimum blockcount, when
59*4882a593Smuzhiyun		a TRIM command to the block device is considered useful.
60*4882a593Smuzhiyun		When no value is given to the discard option, it defaults to
61*4882a593Smuzhiyun		64 blocks, which means 256KiB in JFS.
62*4882a593Smuzhiyun		The minlen value of discard overrides the minlen value given
63*4882a593Smuzhiyun		on an FITRIM ioctl().
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunThe JFS mailing list can be subscribed to by using the link labeled
66*4882a593Smuzhiyun"Mail list Subscribe" at our web page http://jfs.sourceforge.net/
67