当我尝试在安装在linux(Ubuntu 15.10)目录上的Google云存储桶中创建目录或文件时,我收到输入/输出错误.
我做的步骤:
/mnt/backups目录并运行chown -R transfer /mnt/backupsgcsfuse --implicit-dir backup01-bucket
/mnt/backups.文件系统已成功安装mkdir test并获取错误mkdir: cannot create directory test: Input/output error我错过了什么吗?我想要做的是能够将文件ftp到服务器并将它们存储在google storeage存储桶而不是本地存储中.
更新 我修改了命令以获取一些调试信息:
gcsfuse --implicit-dirs --foreground --debug_gcs --debug_fuse backup01-bucket /mnt/backups
Run Code Online (Sandbox Code Playgroud)
然后mkdir /mnt/backups/test以transfer用户身份运行.
以下是有关的信息:
fuse_debug: Op 0x00000060 connection.go:395] <- GetInodeAttributes (inode 1)
fuse_debug: Op 0x00000060 connection.go:474] -> OK
fuse_debug: Op 0x00000061 connection.go:395] <- LookUpInode (parent 1, name "test")
gcs: Req 0x3a: <- StatObject("test/")
gcs: Req 0x3b: <- ListObjects() …Run Code Online (Sandbox Code Playgroud) 我正在编写我的第一个MVC3应用程序,它是一个简单的订单跟踪应用程序.我想同时编辑订单和细节.当我编辑订单时,Edit的ActionResult返回订单和关联的行(我也使用EF).
public ActionResult Edit(int id)
{
// Get the order with the order lines
var orderWithLines = from o in db.Orders.Include("OrderLines")
where o.ID == id
select o;
// Not sure if this is the best way to do this.
// Need to find a way to cast to "Order" type
List<Order> orderList = orderWithLines.ToList();
Order order = orderList[0];
// Use ViewData rather than passing in the object in the View() method.
ViewData.Model = order;
return View();
}
Run Code Online (Sandbox Code Playgroud)
订单和行显示没有问题,但是当我保存页面时,我没有将任何行传递回控制器.只有订单.这是View代码.
@model OrderTracker.Models.Order …Run Code Online (Sandbox Code Playgroud)