patch-2.2.9 linux/fs/hfs/super.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/hfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed May 12 13:26:34 1999
- Orig file:
v2.2.8/linux/fs/hfs/super.c
- Orig date:
Sun Nov 8 14:03:06 1998
diff -u --recursive --new-file v2.2.8/linux/fs/hfs/super.c linux/fs/hfs/super.c
@@ -183,6 +183,8 @@
hsb->s_lowercase = 0;
hsb->s_quiet = 0;
hsb->s_afpd = 0;
+ /* default version. 0 just selects the defaults */
+ hsb->s_version = 0;
hsb->s_conv = 'b';
names = '?';
fork = '?';
@@ -197,7 +199,15 @@
*value++ = 0;
}
/* Numeric-valued options */
- if (!strcmp(this_char,"uid")) {
+ if (!strcmp(this_char, "version")) {
+ if (!value || !*value) {
+ return 0;
+ }
+ hsb->s_version = simple_strtoul(value,&value,0);
+ if (*value) {
+ return 0;
+ }
+ } else if (!strcmp(this_char,"uid")) {
if (!value || !*value) {
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)