File attributes not preserved on copy

Discussion in 'Windows Vista Drivers' started by Priya, Apr 19, 2007.

  1. Priya

    Priya Guest

    Hi,

    I am working on a filesystem driver. I have a weird problem while copying
    files from an NTFS volume to my volume.

    After the file is copied, Windows sends an IRP_MJ_SET_INFORMATION IRP with
    FileBasicInformation information class. Now the attributes field in the
    FILE_BASIC_INFORMATION structure is always zero even if the original file had
    read only, archive and/or hidden attribute set. So the file attributes are
    not preserved on copy unlike a copy between two NTFS harddisks or to a floppy
    disk.

    Is this expected behaviour? Is there anything the filesystem driver needs to
    do during driver startup or volume mount to ensure that Windows sets the
    right file attributes on file copy? Any information is greatly appreciated.

    Thanks,
    Priya
     
    Priya, Apr 19, 2007
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.