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 684284 Details for
Bug 895905
guestmount: link() incorrectly returns ENOENT, when it should be EXDEV
[?]
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.
API-level link test
xdev.pl (text/plain), 729 bytes, created by
Richard W.M. Jones
on 2013-01-21 13:22:50 UTC
(
hide
)
Description:
API-level link test
Filename:
MIME Type:
Creator:
Richard W.M. Jones
Created:
2013-01-21 13:22:50 UTC
Size:
729 bytes
patch
obsolete
>#!/usr/bin/perl -w > >use strict; >use Sys::Guestfs; > >my $disk = "/tmp/test1.img"; >open DISK, ">$disk" or die "$disk: $!"; >truncate DISK, 1024*1024*1024 or die "truncate: $!"; >close DISK or die "close: $!"; > >my $g = Sys::Guestfs->new (); >$g->add_drive ($disk, format => "raw"); >$g->launch (); > >$g->part_init ("/dev/sda", "mbr"); >$g->part_add ("/dev/sda", "p", 1024, 10239); >$g->part_add ("/dev/sda", "p", 10240, 20479); >$g->mkfs ("ext2", "/dev/sda1"); >$g->mkfs ("ext2", "/dev/sda2"); > >$g->mount ("/dev/sda1", "/"); >$g->mkdir ("/boot"); >$g->mount ("/dev/sda2", "/boot"); > >$g->touch ("/foo"); > >eval { > $g->ln ("/foo", "/boot/foo"); >}; >if ($@) { > print STDERR "error: $@\n"; > print STDERR "errno: ", $g->last_errno(), "\n"; >}
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 895905
:
684279
| 684284