Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 937092 Details for
Bug 1141368
mv on a hardlink issues unlink and causes file loss in case mv <a> <b> and mv <b> <a> race
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script that executes racy mv on hardlinks
2mvs.sh (text/plain), 641 bytes, created by
Shyamsundar
on 2014-09-12 19:42:00 UTC
(
hide
)
Description:
Script that executes racy mv on hardlinks
Filename:
MIME Type:
Creator:
Shyamsundar
Created:
2014-09-12 19:42:00 UTC
Size:
641 bytes
patch
obsolete
>#!/bin/bash > >createfiles () { > for i in {1..1000}; do > touch f-$i > ln f-$i fln-$i > done >} > >movefiles () { > sleep 1 > for i in {1..1000}; do > mv $1-$i $2-$i > done >} > >checkfiles () { > for i in {1..1000}; do > if [ ! -f f-$i ]; then > if [ ! -f fln-$i ]; then > echo "Missing file $i"; > fi; > fi; > done >} > >cleanup () { > for i in {1..1000}; do > rm -f f-$i > rm -f fln-$i > done >} > >echo "Creating files in `pwd`" >createfiles > >echo "Moving/renaming files in `pwd`" >movefiles f fln & >movefiles fln f > >echo "Generic wait for background to complete" >sleep 10 > >echo "Checking files" >checkfiles > >echo "Done cleaning up..." >#cleanup
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1141368
: 937092 |
959611