Ufs file rewriting bug (sol8/9/10)

I have encountered a problem with the file creation date whe rewriting a file.
In a C compile project with make, make considered to recompile a test.o file.
make called the compiler and test.o was rewritten but the file creation date of test.o was NOT updated which drove make into trouble.
I stripped it down and can reproduce this behavior with following shell:
#!/bin/sh
echo "int main(int argc, char ** argv) { return (1); }" >test.c
CMD="/opt/studio11/SUNWspro/bin/cc -O -c -o test.o test.c"
# determine filesize if test.o
$CMD ;
O_SIZE=`ls -l test.o | awk '{print $5}'`
# create a file test.o filled with zero - length is length of compiler output
dd if=/dev/zero of=test.o bs=$O_SIZE count=1
# set specific date an show
touch 06060606 test.o
echo "`ls -l test.o` `md5sum <test.o`"
# COMPILE and show
echo $CMD; $CMD
echo "`ls -l test.o` `md5sum ><test.o`"
exit
OUTPUT IS:
# $ sh doit
# 1+0 records in
# 1+0 records out
# -rw-r--r-- 1 x2k x2k 1720 Jun 6 06:06 test.o 540f34fd91d826aed8a7db434b3e58f2
# /opt/studio11/SUNWspro/bin/cc -O -c -o test.o test.c
# -rw-r--r-- 1 x2k x2k 1720 Jun 6 06:06 test.o be306e32076d49268f889e4d95183f39
System Info:
Solaris 10 1/06 s10s_u1wos_19a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 07 December 2005
/dev/dsk/c0t1d0s0 /export/home ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev=800080 1158162319
PKG=SPROcc
VERSION=11.0,REV=2005.10.13
PATCH_INFO_12101 5-02=Installed: Fri Jun 16 10:49:43 CEST 2006 From: xxxxxxxxx Obsoletes: Requires: Incompatibles:
When trussing the cc you see something like:
# 12538: open("test.o", O_RDWR|O_CREAT, 0666) = 3
# 12538: fcntl(3, F_GETFD, 0x007CE180) = 0
# 12538: llseek(3, 0, SEEK_END) = 1720
# 12538: munmap(0xFF310000, 8192) = 0
# 12538: munmap(0xFF310000, 8192) = 0
# 12538: fcntl(3, F_FREESP, 0xFFBFF2F4) = 0
# 12538: mmap(0x00000000, 1720, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0xFF310000
# 12538: memcntl(0xFF310000, 1720, MC_SYNC, MS_SYNC, 0, 0) = 0
# 12538: munmap(0xFF310000, 1720) = 0
# 12538: close(3) = 0
removing logging and largefiles options from mount does not help.
This behaviour is not seen on NFS, TMPFS, LOFS ..
I have tried to enter this story into the bug database but cant find any entry up to now.
What is going wrong with ufs - any ideas?
Thanks in advance

Oh, I see. This has nothing to do with 'ctime' or a 'creation date'. It's that the compilation isn't updating the modification time by the compile.
Seems quite odd. It's not doing a write(), but the blocks getting written to the disk should be updating the mod time.
Darren

Similar Messages

  • Windows 8.1 x64 - Serious "file move" bug

    I've reliably replicated a file copy bug in Windows 8.1. It's rather significant, and needs to be fixed ASAP, but this is the only forum I can find where I can even report it.
    Problem: A drag-and-drop (or cut-and-paste) "move" operation where the destination files already exist results in the dropped files being deleted without warning, with the destination files being unchanged.
    How to replicate: Take the following steps, which assume that your Desktop is located on your C: drive.
    Create a folder on the C: drive. Name it "zzz" to make it easy to find.
    Create a folder on the Desktop, then create another "zzz" folder inside of it. Let's name this one "Desktop\Test\zzz" for clarity.
    Copy a couple of files from a different drive into both "zzz" folders, so that the contents of both folders are identical. It is best if the files are at least a few days old, so the last-modified date will be obvious.
    Change one or two of the files in the Desktop's "zzz" folder. The nature of the change doesn't matter.
    Make sure you have two Explorer windows open - one for Desktop\Test and one for C:\ - to facilitate file copying.
    Drag the new "zzz" folder from Desktop\Test into C:\.
    What should happen at this point is that, since you're moving files where the filenames are the same, Windows should show an alert box and prompt you for the correct handling of the situation. However, that's not what happens. The Desktop's "zzz"
    folder quietly vanishes, and the C:\zzz folder retains its old files. The new files are deleted without warning. In addition, if you use Ctrl-Z to Undo the copy...the Desktop "zzz" folder comes back, but it's empty. All of your changes
    are irretrievably gone.
    The folder depth doesn't seem to be relevant; I discovered the bug while working with files several folders deep, but the demonstration shows that it happens at the root level as well. Likewise, there's nothing special about the C: drive; I replicated it
    on R:\ (an external USB hard drive) just as easily. Similarly, I should point out that performing these steps between two different drives (triggering a copy rather than a move) is handled correctly, although using shift-drag to force a move demonstrates the
    same bug.
    When using Cut/Paste instead of (shift-)drag/drop, the same thing happens, but at least there's an alert box. It's not helpful, but it does at least show a message:
    Item Not Found
    Could not find this item
    This is no longer located in (folder name). Verify the item's location and try again.(icon and file information)
    However, none of the three options presented will do you any good; by the time you see this alert box, the source folder and its contents have already been deleted.

    Thing is, I *do* get prompted when there are conflicts while copying folders.  I've been using Windows 8.1 since it came out, professionally and every day, and I've not run across a file-copy gotcha worse than a copy conflict prompt popping
    behind an open window (but it does always get issued).
    I wonder what could now be configured differently between our two setups...  I have installed the program Classic Shell, and it does add some capabilities to Explorer.  However, I don't recall "correcting the handling of folder copy conflicts"
    ever being listed as one of the things it brings to the party.
    Sorry that setting alone didn't correct the whole issue for you.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

  • BUGS: How do I file a Bug Report?

    I have found a reproducible bug in the Oracle XML SQL Utility. How do I file it officially?

    Post the bug you found in a way that we can reproduce it and we will file the bug officially.

  • Not UFS file system

    After deleting all the partitions on my intel Pentium III computer.
    I boot from the first (1/2) CD to start Solaris 8 installation. But
    I got the following message:
    not UFS file system
    Then the computer halted.
    Please help me to overcome the problem
    Thank you!
    Michael

    Ever figure this out? I just DL'ed the CDs and get the same thing, even created a 2G DOS partition with same results!

  • File sharing bug with windows in mountain lion

    File Sharing Bug with Windows
    Hi,
    there are some windows in our firm and we're sharing the files using File Sharing. The problem is that the windowses can see the files not only the ones in public folder, but also whole disk, like Desktop, Library etc. When i installed Lion, it was happened again for one time. But then it fixed in a way which i don't know. After Mountain Lion, this problem occurs again.
    So, why can it be happened and how do i fix it? please help me.
    thank you.
    tanyildiz

    not any guess?

  • More than 1 million files on multi-terabyte UFS file systems

    How do you configure a UFS file system for more than 1 million files when it exceeds 1 terabyte? I've got several Sun RAID subsystems where this is necessary.

    Thanks. You are right on. According to Sun official channels:
    Paula Van Wie wrote:
    Hi Ron,
    This is what I've found out.
    No there is no way around the limitation. I would suggest an alternate
    file system if possible suggest ZFS as they would get the most space
    available as inodes are no longer used.
    Like the customer noted if the inode values were increased significantly
    and an fsck were required there is the possibility that the fsck could
    take days or weeks to complete. So in order to avoid angry customers
    having to wait a day or two for fsck to finish the limit was imposed.
    And so far I've heard that there should not be corruption using zfs and
    raid.
    Paula

  • UFS file system mount options

    I'm doing some performance tuning on a database server. In mounting a particular UFS file system, I need to enable the "forcedirectio" option. However, the "logging" option is already specified. Is there any problem mounting this file system with BOTH "logging" and "forcedirectio" at the same time? I can do it and the system boots just fine but I'm not sure if it's a good idea or not. Anybody know?

    Direct IO bypasses the page cache. Hence the name "direct".
    Thus, for large-block streaming operations that do not access the same data more than once, direct IO will improve performance while reducing memory usage - often significantly.
    IO operations that access data that could otherwise be cached can go MUCH slower with direct IO, especially small ones.

  • How to file a bug report?

    Hi there  I'm using a Sony Z3 Compact with Lollipop 5.1.1 and after the update, there is no longer any message on the lock screen, telling me the remaining charge time. I've read others saying the same thing, so I'm definately not alone. I'd like to file a bug report somewhere, but where does one do so? Kind regards, Martin

    Is it something you can do, or can you point me in the right direction?

  • (noob) Where to file a bug of OS X 10.6 System Preferences?

    Hi there,
    I found a bug in my system preferences. I'm using the german localization and the UI in the preference pane "energy" is broken. Where shall I file this bug so that Apple can fix this?
    To view the broken UI click here: http://skitch.com/yaun/dys8j/bildschirmfoto-2010-04-26-um-23.17.04
    Thanks for your help.

    Tach,
    you can use the official feedback site over here:
    http://www.apple.com/feedback/macosx.html
    If you are an ADC member (free membership is sufficient) you can submit a bugreport:
    https://bugreport.apple.com/

  • How do I officially file a bug?

    ''locking - please stick with your original thread - https://support.mozilla.com/en-US/questions/828126''
    I have been unable to use Firefox from 4.0 onwards on Solaris/SPARC, because it immediately crashes when encountering a Flash page. I posted a question about it which has been ignored. I would like to file a bug report, but there is no bug reporting tool evident on either mozilla.com or mozilla.org.
    Where can I file a bug?

    Just in case, download and run the adware removal tool here >  The Safe Mac » Adware Removal Guide
    Easy, safe, and only takes a minute or two.

  • How to access UVI Workstation .ufs files?

    I can see that Logic Express has support for UVI Workstation files but when I try to insert them into a new track, only the Apple audio files appear in the menu.
    Is there a way to access UVI Workstation .ufs files?

    No.  I had tried to loop back and forth in Quicktime Pro and save the movie as self-contained to the desktop. 
    The computer really didn't like this.  I managed to trash the file as the blinking/flashing was slower when the computer first booted up, giving me time to click and drag the file quickly to the trash.
    Who would have known?
    Thanks again for your assistance.

  • Run Project - of an empty project cause NPE - should I file this bug on sup

    People:
    run project of a new bpm project (empty) cause:
    Performing action Run Project1.jpr[ from oracle.ideimpl.appoverview.AppOverviewEditor ]
    Fatal exception during compiling of project files
    java.lang.NullPointerException
    o.bpm.fusion.builder.BpmBuilder.extractProject(BpmBuilder.java:105)
    o.bpm.fusion.builder.BpmBuilder.build(BpmBuilder.java:51)
    o.bpm.fusion.builder.BuilderAddin$BuildListener.buildWillStart(BuilderAddin.java:45)
    o.j.compiler.JCompiler.invokeListenersBuildBegin(JCompiler.java:1048)
    o.j.compiler.UnifiedBuildSystem$CompileThread.run(UnifiedBuildSystem.java:1368)
    Should I file this bug on metalink/support site ?
    Thanks in advance
    Nico Grossi

    Heidi:
    sorry, yes is the run of jdev. I think that run and debbug buttons sohuld not be enable to select them if it is an empty. I also know that that trying to run/debbug and "empty" project is not expected but NPE is not good also. It will be nice to display a nicer message to de team :)
    Sorry for not been more accurate at first time
    Nico

  • Vexing 10.5.6 file system bugs causing crashes; wose with Server OS 10.5.x

    We continue to experience occasional MacOS 10.5.6 data volume instabilities. Just today, the system reported that it could not repair a purely archival data volume at a time when I was not accessing the volume and had not asked the OS to 'repair' it.
    Then when manually running a repair on that same data volume in Disk Utility, storage services caused a kernel panic crash.
    This problem was more prevalent when I tried the server version of Mac OS 10.5.6, where the OS caused disk volume corruption on the dedicated TimeMachine backup drive, and then started to crash frequently in the face of that self-induced corruption.
    There was no disk volume corruption and no crashes before 10.5.6.
    I would like to know why there should never be a file system condition on data volumes that would induce the entire OS to crash. I would completely understand a forced dismount of the corrupted volumes perhaps, or continuing in a read-only mode until the impacted volume could be repaird, BUT NOT AN OS CRASH. Even attempting to use the repair function on the unmounted volume would cause a crash.
    The reason I know this is a file system bug and not the hardware is that the same system can endlessly zero out the data on the same drives, copy large test files to & from the drives, etc. The only situation where these file system crashes happen is with high file counts as one would encounter on a backup drive or on a data archive drive.

    This evening OS 10.5.6 reported that Time Machine could not write to its target backup volume on one of the new 1.5TB drives...the nightmare cycle of
    1. OS 10.5.6 causes volume corruption
    2. OS 10.5.6 unable to repair volume corruption, crashing instead
    3. OS 10.5.6 crashes over and over as it tries to auto-mount the volume
    4. hard drive has to be physically ejected and wiped using a WINDOWS system so that it can be used again!
    This is a sickening tale of disk corruption woe that started with the OS 10.5.6 update.
    As fast as I opened an AppleCare support case on this issue, they were closing it behind my back without resolving the issue.
    The kernel panics related to the volume mount problem are simply outragrous:
    "jnl: mod block start: buffsize 512 not a multiple of block size 4096\n"
    KERNEL PANICS SHOULD NEVER HAPPEN DUE TO A VOLUME MOUNT ERROR---EVER.
    And yet I see in the support database that this is a recurring theme that has been seen in other OS storage situations, including Xserve storage where the bug would cause much more business damage.
    I want this fixed NOW.

  • Could someone please explain to me how to file a bug report?

    Hi,
    I had a problem recently with a bug in uevnts. I found a workaround for it, However when I went to open a bug that had similar symptoms the user got mad and closed the bug. Could someone please explain to me what I need to do to correctly file a bug report, and please don't say read the wiki. As in order to get log files, I need to know where they are, etc...
    Thanks,
    MarcoRosso.

    What questions remain after consulting the wiki? Maybe you can post the bug report in question, so it will be easier for others to point out how you could have responded more constructively. First general place to look for log files is /var/log/*.
    Last edited by hokasch (2010-04-13 00:55:35)

  • File menu bug in Elements 8 for Mac

    I recently purchased Photoshop Elements 8 for Mac. While the software overall works very well, I noticed a bug which has now started hampering my work. Out of the blue, 'Open', 'Open New Blank File' and 'Browse with Bridge' in the file menu become grey (disabled) and shotrcuts for opening files (Command-O and Command-N) or clicking on the open new file icon yield no result. Preferences menu cannot be accessed as well. As per the software license, I installed Elements on an iMac running OS 10.5.8 and on my MacBook running OS 10.4.11 I am having this problem on both :-( The menus do appear but intermittently. Any help to fix this bug would be deeply appreciated. Thanks in advance.

    I got it!!!!!
    It's a clipboard related problem! Whenever I copy an image (a vector image or graphic specifically) from any application, New 'Image from Clipboard' option (in the file menu) gets enabled in Elements 8 and due to it, all menus relating to opening a new file get disabled including, strangely, preferences. Somehow Elements assumes that the new file/image will be the same as the one in the clipboard. The moment I copy any text in any application (so that the clipboard does not have any graphic in it), the disabled Elements menus get enabled! It seems Elements 8 does not support vector graphics perhaps that's why..

Maybe you are looking for

  • How to restore iTunes library from backup?

    A large percentage of my iTunes songs have become corrupted. (Seemed to happen when I installed 7.3) Luckily I have a recent backup of my hard drive, so I want to reinstall the library. What are the steps to take? Do I simply delete my old iTunes lib

  • Please see blog post on post-ECC5 repairs of SQ01/02 generated queries

    We finally found a way to get our repaired program to run from a transaction - the trick is to delete the old transaction which has a user group/query name in it and create a new parameter transaction with the name of the repaired program as the repo

  • I can't uninstall quicktime player

    Hello, I don't speek anglish very well but I'll try to explain my problem. I think I suppress something and now quicktime (and itunes) not work. When I want use itunes a message : "appName : itunes.exe AppVer : 6.0.5.20 ModName:Quicktimestreaminganth

  • Serial number of Adobe Premiere Pro 2.0

    I have downloaded the old version Adobe Premiere Pro 2.0. During the installation I have to write a serial number. Where I can get it?

  • Deletion of tcode in module pool

    hi, i have created two transaction codes for one program in module pool....now i deleted one tcode...even i deleted that it is showing in the tree how to make it not to display it on left side ?