diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-03-28 19:11:07 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2007-03-28 19:11:07 +0000 |
commit | ec71a94087af0a1c349ce052e48a656c120ad7a5 (patch) | |
tree | d9939c9e0af31d5a7cb42fa18070069494847b85 | |
parent | 3b2580ed612cd4b30918a27b3af9f73a9273fad1 (diff) |
2007-03-28 Thomas Schwinge <tschwinge@gnu.org>
* main.c (diskfs_readonly): Remove variable.
(main): Set `diskfs_readonly' and `diskfs_hard_readonly' to one.
-rw-r--r-- | fatfs/ChangeLog | 5 | ||||
-rw-r--r-- | fatfs/main.c | 12 |
2 files changed, 13 insertions, 4 deletions
diff --git a/fatfs/ChangeLog b/fatfs/ChangeLog index d7d65a94..35874f73 100644 --- a/fatfs/ChangeLog +++ b/fatfs/ChangeLog @@ -1,3 +1,8 @@ +2007-03-28 Thomas Schwinge <tschwinge@gnu.org> + + * main.c (diskfs_readonly): Remove variable. + (main): Set `diskfs_readonly' and `diskfs_hard_readonly' to one. + 2005-07-12 Marcus Brinkmann <marcus@gnu.org> * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT. diff --git a/fatfs/main.c b/fatfs/main.c index 2b14c013..b85d7fe7 100644 --- a/fatfs/main.c +++ b/fatfs/main.c @@ -1,5 +1,8 @@ /* main.c - FAT filesystem. - Copyright (C) 1997, 1998, 1999, 2002, 2003 Free Software Foundation, Inc. + + Copyright (C) 1997, 1998, 1999, 2002, 2003, 2007 + Free Software Foundation, Inc. + Written by Thomas Bushnell, n/BSG and Marcus Brinkmann. This file is part of the GNU Hurd. @@ -42,9 +45,6 @@ int diskfs_link_max = 1; int diskfs_name_max = FAT_NAME_MAX; int diskfs_maxsymlinks = 8; /* XXX */ -/* This filesystem is not capable of writing yet. */ -int diskfs_readonly = 1; - /* Handy source of zeroes. */ vm_address_t zerocluster; @@ -219,6 +219,10 @@ main (int argc, char **argv) fs_uid = default_fs_uid; fs_gid = default_fs_gid; + /* This filesystem is not capable of writing yet. */ + diskfs_readonly = 1; + diskfs_hard_readonly = 1; + /* Initialize the diskfs library, parse arguments, and open the store. This starts the first diskfs thread for us. */ store = diskfs_init_main (&startup_argp, argc, argv, &store_parsed, |