Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1976469 Details for
Bug 2223895
ReaR fails to create the rescue environment when a device is shrinking while being read
Home
New
Search
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.rh89 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
systemtap script shrinking file "shrinking" when being read
shrinking.stp (text/plain), 669 bytes, created by
Renaud Métrich
on 2023-07-19 08:30:51 UTC
(
hide
)
Description:
systemtap script shrinking file "shrinking" when being read
Filename:
MIME Type:
Creator:
Renaud Métrich
Created:
2023-07-19 08:30:51 UTC
Size:
669 bytes
patch
obsolete
>global openat >global to_catch >global shrinking_fd >global nread > >probe syscall.openat { > if (execname() != "tar") next > if (filename_unquoted != "shrinking") next > to_catch[tid()] = 1 > openat[tid()] = 1 >} > >probe syscall.openat.return { > if (! openat[tid()]) next > delete openat[tid()] > shrinking_fd = retval > nread = 0 > printf("FD is %ld\n", retval) >} > >probe syscall.close { > if (! to_catch[tid()]) next > if (fd != shrinking_fd) next > delete to_catch[tid()] >} > >probe syscall.read { > if (! to_catch[tid()]) next > if (fd != shrinking_fd) next > nread++ > if (nread < 3) next > printf("Truncating the file\n") > system("truncate -s 25K /dev/shrinking") > mdelay(2000) > exit() >}
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 2223895
: 1976469