From ec71a94087af0a1c349ce052e48a656c120ad7a5 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 28 Mar 2007 19:11:07 +0000 Subject: 2007-03-28 Thomas Schwinge * main.c (diskfs_readonly): Remove variable. (main): Set `diskfs_readonly' and `diskfs_hard_readonly' to one. --- fatfs/ChangeLog | 5 +++++ fatfs/main.c | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'fatfs') 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 + + * main.c (diskfs_readonly): Remove variable. + (main): Set `diskfs_readonly' and `diskfs_hard_readonly' to one. + 2005-07-12 Marcus Brinkmann * 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, -- cgit v1.2.3