小编use*_*207的帖子

gcsfuse输入/输出错误

当我尝试在安装在linux(Ubuntu 15.10)目录上的Google云存储桶中创建目录或文件时,我收到输入/输出错误.

我做的步骤:

  • 创建了一个名为transfer的用户
  • 创建了一个/mnt/backups目录并运行chown -R transfer /mnt/backups
  • 随着用户转移,跑了gcsfuse --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/testtransfer用户身份运行.

以下是有关的信息:

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)

linux gcsfuse

10
推荐指数
2
解决办法
9271
查看次数

从MVC视图保存多个对象

我正在编写我的第一个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)

c# asp.net-mvc-3

3
推荐指数
1
解决办法
7291
查看次数

标签 统计

asp.net-mvc-3 ×1

c# ×1

gcsfuse ×1

linux ×1