Logo54.161.138.15 
  Home  News  Recent  Forums  Search  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   View images
   BBCode test
 
 Content
   Statement of intent
   Terms Of Service
   IRC Channel
   List Content

 In cooperation with
  OS4Depot.net
  OpenAmiga.org
  OS4Welt

 Links
  AmigaOS4
  IntuitionBase
  UtilityBase
  Amiga Flame
  Amiga Spirit
  AmiKit
  Aminet
  AmiBay
  AmigaBounty
  AmigaWorld
  Exec
  Amiga.cz
  View comments
Title  
  Forums
    Software
      AmigaOS 4  
TSKFile notifications and USB memory sticks20110322 17:39
Can somebody tell me why a file notification on a root dir of a USB memory stick causes endless amounts of notifications, when the end user is doing nothing on his computer ? And how to get rid of that ?
Navigate: 1-8 
colinwenzelRe: File notifications and USB memory sticks20110322 21:49  #3116
@TSK

A little more info might help, such as whether you are using FS or DOS notifications and what filesystem is being used, such as CrossDos / FFS-7 ?

I tried all 4 combinations and it works fine here, you may have an old component that has since been fixed, or you may have something nasty running
that is polling the device.

With my latest components it all works ok.
Try running "Snoopy" and see if the last one is not occuring at least.
TSKRe: File notifications and USB memory sticks20110323 02:20  #3123
@colinwenzel

The problem is I have A1-SE which doesn't have a working USB so I can't test it myself. It's one of HyperBench users who have reported this problem. I guess he uses FAT formatted memory stick. I have to ask him if he will do more testing with Snoopy.
TuxedoRe: File notifications and USB memory sticks20110323 07:55  #3124
@TSK

I used a NEC based USB card on my A1SE without problems(simply have to disable the kickstart files that uses the A1SE internal usb chip)...if you can found one you can try it yourself :)
gillooRe: File notifications and USB memory sticks20110323 14:53  #3129
@TSK

Not sure that FAT formatted disks can use file notification. It's FSS and true amiga file system compatible feature...

TSKRe: File notifications and USB memory sticks20110323 14:58  #3130
@gilloo

gilloo wrote:
@TSK

Not sure that FAT formatted disks can use file notification. It's FSS and true amiga file system compatible feature...

That's why it have to fallback to DOS handled notifications (using a dedicated DOS handler).
TSKRe: File notifications and USB memory sticks20110323 16:42  #3133
@colinwenzel

I tested with a FAT/msdos formatted floppy disk (a1floppy.device) and didn't have any issues.
xenicRe: File notifications and USB memory sticks20110323 17:15  #3135
@TSK
All my FAT32 USB sticks have been reformatted at some on my Amiga at point. I tested with the WaitNotify utility and did receive notification when I copied a file to the memory stick. Of course that doesn't tell me if there is repeated notification since WaitNotify exits once there is a notification. However, if I run WaitNotify again after the first notification, it waits until I change something again on the mem stick. The CrossDOSFilesystem documentation states that some additional Amiga info is added within the FAT filesystem using specially formatted directory entries. It's possible that my Amiga formatted act differently than default (Win) formatted memory sticks.

Aside from the above, file notification on removable media doesn't seem like a great idea to me. For example, if I have inserted and removed USB0: before running WaitNotify, it will wait forever. I also wonder what happens if you remove a USB stick, change it in another computer and reinsert it. It just seems like strange results could occur with file notification on removable media.


TSKRe: File notifications and USB memory sticks20110323 18:27  #3139
@xenic

I tested with the WaitNotify utility and did receive notification when I copied a file to the memory stick.

Your comment sounds like notifications are working correctly (with USB sticks).

I'm using notifications to auto update drawers in HyperBench.

Thinking of removing and inserting media you have to check DOS volume list changes as well. When a piece of media is removed you remove it from your programs internal list as well. But if there was a drawer open from that volume then don't remove it (from the internal list). If the end user tries to access it again AmigaOS asks to put that disk/stick back into drive. Of course you can't modify its content if it's removed from the drive so the notifications shouldn't happen at all in that case. When it's inserted again you will add it to the internal list as new entry and handle it as new. So no problems with notifications on any type of media.

Last edited by TSK at 20110323 18:29
Navigate: 1-8 
Home
Snack! forum website engine, Created in 2008 by Björn Hagström