Can't unmount dmg. Keep getting "Resource Busy"
Solution 1
You can use following command to force unmount it:
hdiutil unmount /Volumes/Workspace -force
Use detach command can help to unmount and then eject the disk if you want.
If the above command reports following error message:
hdiutil: detach failed - No such file or director
It means the path is incorrect, you can use /Volumes/Workspace/*
instead.
Solution 2
It is safe to kill
or Force Quit
the mds
process, and if you have disabled spotlight indexing then it shouldn't start up again.
Related videos on Youtube
sumek
Updated on September 18, 2022Comments
-
sumek almost 2 years
I have a Kotlin data class that is serialised to JSON in a Spring Boot project. I'd like to customise how date is formatted when serialising to JSON. The name of the field should be serialised using default rules. That expresses what I'd like to do:
class ZonedDateTimeSerialiser : JsonSerializer<ZonedDateTime>() { @Throws(IOException::class) fun serialize(value: ZonedDateTime, gen: JsonGenerator, serializers: SerializerProvider?) { val parseDate: String? = value.withZoneSameInstant(ZoneId.of("Europe/Warsaw")) .withZoneSameLocal(ZoneOffset.UTC) .format(DateTimeFormatter.ISO_DATE_TIME) gen.writeString(parseDate) } } data class OrderNotesRequest( @JsonSerialize(using = ZonedDateTimeSerialiser::class) val date: ZonedDateTime = ZonedDateTime.now() )
But I get a type error:
Type mismatch. Required: KClass<out (JsonSerializer<Any!>..JsonSerializer<*>?)> Found: KClass<ZonedDateTimeSerialzier>
I did try switching the parameter to annotation to
contentUsing
but the type error remained the same.