From 105c4bd451b38865b1a8489a60076dbb5e5b7cf6 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 14 Jun 2015 22:34:24 +0000 Subject: [PATCH] Allow multiple volumes with the same name if their creation dates differ. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50821 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/filesys/fat/disk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rom/filesys/fat/disk.c b/rom/filesys/fat/disk.c index 4d8c99a6f3..907de2fb61 100644 --- a/rom/filesys/fat/disk.c +++ b/rom/filesys/fat/disk.c @@ -121,6 +121,10 @@ void DoDiskInsert(struct Globals *glob) { LDF_VOLUMES | LDF_WRITE); UnLockDosList(LDF_VOLUMES | LDF_WRITE); + if (CompareDates(&dl->dol_misc.dol_volume.dol_VolumeDate, + &sb->volume.create_time) != 0) + dl = NULL; + if (dl != NULL) { dl->dol_Task = glob->ourport; sb->doslist = dl; -- 2.11.4.GIT